diff --git a/App_WebReferences/Cancelacion/Reference.svcmap b/App_WebReferences/Cancelacion/Reference.svcmap deleted file mode 100644 index 9a78e9a96..000000000 --- a/App_WebReferences/Cancelacion/Reference.svcmap +++ /dev/null @@ -1,31 +0,0 @@ - - - - false - true - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/Cancelacion/cancelacion.wsdl b/App_WebReferences/Cancelacion/cancelacion.wsdl deleted file mode 100644 index 12503b338..000000000 --- a/App_WebReferences/Cancelacion/cancelacion.wsdl +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Cancela un Cfdi en pruebas - - - - - Obtiene el estatus de un Cfdi en producción - - - - - Obtiene el estatus de un Cfdi en pruebas - - - - - Obtiene los Uuid pendientes de aceptar/rechazar de un Receptor (Producción) - - - - - Obtiene los Uuid pendientes de aceptar/rechazar de un Receptor (Pruebas) - - - - - Acepta/Rechaza una solicitud pendiente de cancelación (Producción) - - - - - Acepta/Rechaza una solicitud pendiente de cancelación (Pruebas) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/Cancelacion/configuration.svcinfo b/App_WebReferences/Cancelacion/configuration.svcinfo deleted file mode 100644 index a17bdeb3c..000000000 --- a/App_WebReferences/Cancelacion/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/Cancelacion/configuration91.svcinfo b/App_WebReferences/Cancelacion/configuration91.svcinfo deleted file mode 100644 index 02af02716..000000000 --- a/App_WebReferences/Cancelacion/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - CancelacionSoap - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Colección) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://juancalderon-001-site6.ftempurl.com/cancelacion.asmx - - - - - - basicHttpBinding - - - CancelacionSoap - - - Cancelacion.CancelacionSoap - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - CancelacionSoap - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService.disco b/App_WebReferences/RCGPSService/RCService.disco deleted file mode 100644 index fc35eddd5..000000000 --- a/App_WebReferences/RCGPSService/RCService.disco +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService.wsdl b/App_WebReferences/RCGPSService/RCService.wsdl deleted file mode 100644 index e4de999c0..000000000 --- a/App_WebReferences/RCGPSService/RCService.wsdl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService.xsd b/App_WebReferences/RCGPSService/RCService.xsd deleted file mode 100644 index 999d861b1..000000000 --- a/App_WebReferences/RCGPSService/RCService.xsd +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - true - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService1.xsd b/App_WebReferences/RCGPSService/RCService1.xsd deleted file mode 100644 index 8e338436c..000000000 --- a/App_WebReferences/RCGPSService/RCService1.xsd +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService2.xsd b/App_WebReferences/RCGPSService/RCService2.xsd deleted file mode 100644 index 0108d9eb2..000000000 --- a/App_WebReferences/RCGPSService/RCService2.xsd +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/RCService3.xsd b/App_WebReferences/RCGPSService/RCService3.xsd deleted file mode 100644 index 32e1c19af..000000000 --- a/App_WebReferences/RCGPSService/RCService3.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/Reference.svcmap b/App_WebReferences/RCGPSService/Reference.svcmap deleted file mode 100644 index fbaf7a130..000000000 --- a/App_WebReferences/RCGPSService/Reference.svcmap +++ /dev/null @@ -1,35 +0,0 @@ - - - - false - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/configuration.svcinfo b/App_WebReferences/RCGPSService/configuration.svcinfo deleted file mode 100644 index e70db96fc..000000000 --- a/App_WebReferences/RCGPSService/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/RCGPSService/configuration91.svcinfo b/App_WebReferences/RCGPSService/configuration91.svcinfo deleted file mode 100644 index 74eb6fcf0..000000000 --- a/App_WebReferences/RCGPSService/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - BasicHttpBinding_IRCService - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://gps.rcontrol.com.mx/Tracking/wcf/RCService.svc - - - - - - basicHttpBinding - - - BasicHttpBinding_IRCService - - - RCGPSService.IRCService - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - BasicHttpBinding_IRCService - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSBancoMexico/DgieWS.wsdl b/App_WebReferences/WSBancoMexico/DgieWS.wsdl deleted file mode 100644 index bbebeba69..000000000 --- a/App_WebReferences/WSBancoMexico/DgieWS.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSBancoMexico/Reference.svcmap b/App_WebReferences/WSBancoMexico/Reference.svcmap deleted file mode 100644 index 254890c08..000000000 --- a/App_WebReferences/WSBancoMexico/Reference.svcmap +++ /dev/null @@ -1,30 +0,0 @@ - - - - false - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSBancoMexico/configuration.svcinfo b/App_WebReferences/WSBancoMexico/configuration.svcinfo deleted file mode 100644 index 72877d3a6..000000000 --- a/App_WebReferences/WSBancoMexico/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSBancoMexico/configuration91.svcinfo b/App_WebReferences/WSBancoMexico/configuration91.svcinfo deleted file mode 100644 index 547a59ce8..000000000 --- a/App_WebReferences/WSBancoMexico/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - DgieWSPortSoapBinding - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://www.banxico.org.mx/DgieWSWeb/DgieWS - - - - - - basicHttpBinding - - - DgieWSPortSoapBinding - - - WSBancoMexico.DgieWSPort - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - DgieWSPort - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSKimberlyClark/Reference.svcmap b/App_WebReferences/WSKimberlyClark/Reference.svcmap deleted file mode 100644 index 0edd3683f..000000000 --- a/App_WebReferences/WSKimberlyClark/Reference.svcmap +++ /dev/null @@ -1,31 +0,0 @@ - - - - false - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSKimberlyClark/Service.disco b/App_WebReferences/WSKimberlyClark/Service.disco deleted file mode 100644 index f7c20e50e..000000000 --- a/App_WebReferences/WSKimberlyClark/Service.disco +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSKimberlyClark/Service.wsdl b/App_WebReferences/WSKimberlyClark/Service.wsdl deleted file mode 100644 index 926141c97..000000000 --- a/App_WebReferences/WSKimberlyClark/Service.wsdl +++ /dev/null @@ -1,1435 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Autenticacion necesaria para la operacion por parte de los prestadores - - - - - Cierre de sesion explicito por parte del prestador - - - - - Inserta un evento, reconoce el prestador por medio del login previo - - - - - Loguea e inserta multiples eventos en modo batch - - - - - Loguea e inserta un evento - - - - - Loguea e inserta un evento indicando ademas de incorporar los sensores - - - - - - - - - Retorna el primer comando de la lista - - - - - Indica que el comando ya fue procesado - - - - - Metodo para informar el estado del comando, retorna verdadero su fue insertado correctamente - - - - - Metodo para el cambio de clave, retorna verdadero si la clave es realmente cambiada. - - - - - Loguea cambia la clave, retorna verdadero si la clave es realmente cambiada. - - - - - Realiza el login y retorna el primer comando de la lista - - - - - Realiza el login y finaliza un comando - - - - - Realiza el login y actualiza el estado de un comando en proceso - - - - - Realiza el login y retorna el primer comando de la lista - - - - - - - Autenticacion necesaria para la operacion por parte de los prestadores - - - - - Cierre de sesion explicito por parte del prestador - - - - - Inserta un evento, reconoce el prestador por medio del login previo - - - - - Loguea e inserta un evento - - - - - - - - - Retorna el primer comando de la lista - - - - - Indica que el comando ya fue procesado - - - - - Metodo para informar el estado del comando, retorna verdadero su fue insertado correctamente - - - - - Metodo para el cambio de clave, retorna verdadero si la clave es realmente cambiada. - - - - - Loguea cambia la clave, retorna verdadero si la clave es realmente cambiada. - - - - - Realiza el login y retorna el primer comando de la lista - - - - - Realiza el login y finaliza un comando - - - - - Realiza el login y actualiza el estado de un comando en proceso - - - - - Realiza el login y retorna el primer comando de la lista - - - - - - - Autenticacion necesaria para la operacion por parte de los prestadores - - - - - Cierre de sesion explicito por parte del prestador - - - - - Inserta un evento, reconoce el prestador por medio del login previo - - - - - Loguea e inserta un evento - - - - - - - - - Retorna el primer comando de la lista - - - - - Indica que el comando ya fue procesado - - - - - Metodo para informar el estado del comando, retorna verdadero su fue insertado correctamente - - - - - Metodo para el cambio de clave, retorna verdadero si la clave es realmente cambiada. - - - - - Loguea cambia la clave, retorna verdadero si la clave es realmente cambiada. - - - - - Realiza el login y retorna el primer comando de la lista - - - - - Realiza el login y finaliza un comando - - - - - Realiza el login y actualiza el estado de un comando en proceso - - - - - Realiza el login y retorna el primer comando de la lista - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSKimberlyClark/configuration.svcinfo b/App_WebReferences/WSKimberlyClark/configuration.svcinfo deleted file mode 100644 index 210b37bc7..000000000 --- a/App_WebReferences/WSKimberlyClark/configuration.svcinfo +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSKimberlyClark/configuration91.svcinfo b/App_WebReferences/WSKimberlyClark/configuration91.svcinfo deleted file mode 100644 index 291b32d20..000000000 --- a/App_WebReferences/WSKimberlyClark/configuration91.svcinfo +++ /dev/null @@ -1,549 +0,0 @@ - - - - - - - ServiceSoap - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - Transport - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - ServiceSoap1 - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - ServiceSoap12 - - - - - - - - - - - - - - - System.ServiceModel.Configuration.TextMessageEncodingElement - - - 64 - - - 16 - - - Soap12 - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - System.ServiceModel.Configuration.HttpsTransportElement - - - False - - - 524288 - - - 65536 - - - False - - - 00:00:00 - - - Anonymous - - - False - - - True - - - StrongWildcard - - - True - - - 65536 - - - 0 - - - System.ServiceModel.Configuration.HttpMessageHandlerFactoryElement - - - (Collection) - - - - - - - - - Anonymous - - - - - - Buffered - - - False - - - True - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - System.ServiceModel.Configuration.WebSocketTransportSettingsElement - - - Never - - - False - - - 00:00:00 - - - - - - False - - - 0 - - - False - - - - - - - - - https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx - - - - - - basicHttpBinding - - - ServiceSoap - - - WSKimberlyClark.ServiceSoap - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - ServiceSoap - - - - - - - - - - - - - https://unigis2.unisolutions.com.ar/HUB/UNIGIS/MAPI/SOAP/GPS/Service.asmx - - - - - - customBinding - - - ServiceSoap12 - - - WSKimberlyClark.ServiceSoap - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - ServiceSoap12 - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRDLC/Reference.svcmap b/App_WebReferences/WSRDLC/Reference.svcmap deleted file mode 100644 index 959e59a23..000000000 --- a/App_WebReferences/WSRDLC/Reference.svcmap +++ /dev/null @@ -1,32 +0,0 @@ - - - - false - true - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRDLC/WebService.disco b/App_WebReferences/WSRDLC/WebService.disco deleted file mode 100644 index 1dd75ae60..000000000 --- a/App_WebReferences/WSRDLC/WebService.disco +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRDLC/WebService.wsdl b/App_WebReferences/WSRDLC/WebService.wsdl deleted file mode 100644 index 2dc431a14..000000000 --- a/App_WebReferences/WSRDLC/WebService.wsdl +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRDLC/configuration.svcinfo b/App_WebReferences/WSRDLC/configuration.svcinfo deleted file mode 100644 index 6e98140ae..000000000 --- a/App_WebReferences/WSRDLC/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRDLC/configuration91.svcinfo b/App_WebReferences/WSRDLC/configuration91.svcinfo deleted file mode 100644 index 8e2129785..000000000 --- a/App_WebReferences/WSRDLC/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - WebServiceSoap1 - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://localhost:7999/WebService.asmx - - - - - - basicHttpBinding - - - WebServiceSoap1 - - - WSRDLC.WebServiceSoap - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - WebServiceSoap1 - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/Reference.svcmap b/App_WebReferences/WSRVConsultas/Reference.svcmap deleted file mode 100644 index b3de84576..000000000 --- a/App_WebReferences/WSRVConsultas/Reference.svcmap +++ /dev/null @@ -1,31 +0,0 @@ - - - - false - true - - false - false - false - - - true - Auto - true - true - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/configuration.svcinfo b/App_WebReferences/WSRVConsultas/configuration.svcinfo deleted file mode 100644 index aa67f4812..000000000 --- a/App_WebReferences/WSRVConsultas/configuration.svcinfo +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/configuration91.svcinfo b/App_WebReferences/WSRVConsultas/configuration91.svcinfo deleted file mode 100644 index 95fb42f85..000000000 --- a/App_WebReferences/WSRVConsultas/configuration91.svcinfo +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - Service1Soap - - - - - - - - - - - - - - - - - - - - - StrongWildcard - - - - - - 65536 - - - - - - - - - System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - System.Text.UTF8Encoding - - - Buffered - - - - - - Text - - - System.ServiceModel.Configuration.BasicHttpSecurityElement - - - None - - - System.ServiceModel.Configuration.HttpTransportSecurityElement - - - None - - - None - - - System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement - - - Never - - - TransportSelected - - - (Collection) - - - - - - System.ServiceModel.Configuration.BasicHttpMessageSecurityElement - - - UserName - - - Default - - - - - - - - - http://generacfdi.com.mx/wsconsultas/service1.asmx - - - - - - basicHttpBinding - - - Service1Soap - - - WSRVConsultas.Service1Soap - - - System.ServiceModel.Configuration.AddressHeaderCollectionElement - - - <Header /> - - - System.ServiceModel.Configuration.IdentityElement - - - System.ServiceModel.Configuration.UserPrincipalNameElement - - - - - - System.ServiceModel.Configuration.ServicePrincipalNameElement - - - - - - System.ServiceModel.Configuration.DnsElement - - - - - - System.ServiceModel.Configuration.RsaElement - - - - - - System.ServiceModel.Configuration.CertificateElement - - - - - - System.ServiceModel.Configuration.CertificateReferenceElement - - - My - - - LocalMachine - - - FindBySubjectDistinguishedName - - - - - - False - - - Service1Soap - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/service1.disco b/App_WebReferences/WSRVConsultas/service1.disco deleted file mode 100644 index de287a9a8..000000000 --- a/App_WebReferences/WSRVConsultas/service1.disco +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/service1.wsdl b/App_WebReferences/WSRVConsultas/service1.wsdl deleted file mode 100644 index b7b24ac5b..000000000 --- a/App_WebReferences/WSRVConsultas/service1.wsdl +++ /dev/null @@ -1,480 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Consultar un CFDI directamente por UUID y Fecha - - - - - Consultar un acuse de Cancelacion por UUID de un RFC - - - - - Consultar un acuse de Timbrado por UUID de un RFC - - - - - Consultar saldo de los timbres actuales de un RFC - - - - - Consultar un CFDI por: Serie, Folio, Fecha, RFC Emisor - - - - - Consultar un CFDI directamente por UUID y Fecha - - - - - Obtener un XML de cancelación - - - - - Consultar los CFDIs emitidos por rango de fecha - - - - - Consultar los CFDIs emitidos por rango de fecha - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App_WebReferences/WSRVConsultas/vssver2.scc b/App_WebReferences/WSRVConsultas/vssver2.scc deleted file mode 100644 index 22737f5b8..000000000 Binary files a/App_WebReferences/WSRVConsultas/vssver2.scc and /dev/null differ diff --git a/Bin/AjaxControlToolkit.StaticResources.dll b/Bin/AjaxControlToolkit.StaticResources.dll index 4da26dce6..454d21560 100644 Binary files a/Bin/AjaxControlToolkit.StaticResources.dll and b/Bin/AjaxControlToolkit.StaticResources.dll differ diff --git a/Bin/AjaxControlToolkit.StaticResources.dll.refresh b/Bin/AjaxControlToolkit.StaticResources.dll.refresh new file mode 100644 index 000000000..60e5ddede Binary files /dev/null and b/Bin/AjaxControlToolkit.StaticResources.dll.refresh differ diff --git a/Bin/es/Microsoft.ReportViewer.Common.resources.dll b/Bin/es/Microsoft.ReportViewer.Common.resources.dll index 46148f3c9..5d799e4f1 100644 Binary files a/Bin/es/Microsoft.ReportViewer.Common.resources.dll and b/Bin/es/Microsoft.ReportViewer.Common.resources.dll differ diff --git a/Bin/es/Microsoft.ReportViewer.DataVisualization.resources.dll b/Bin/es/Microsoft.ReportViewer.DataVisualization.resources.dll index aae634a35..0191c4e91 100644 Binary files a/Bin/es/Microsoft.ReportViewer.DataVisualization.resources.dll and b/Bin/es/Microsoft.ReportViewer.DataVisualization.resources.dll differ diff --git a/Bin/es/Microsoft.ReportViewer.Design.resources.dll b/Bin/es/Microsoft.ReportViewer.Design.resources.dll index 910ec178f..c93bc2047 100644 Binary files a/Bin/es/Microsoft.ReportViewer.Design.resources.dll and b/Bin/es/Microsoft.ReportViewer.Design.resources.dll differ diff --git a/Bin/es/Microsoft.ReportViewer.WebDesign.resources.dll b/Bin/es/Microsoft.ReportViewer.WebDesign.resources.dll index 3d6c17cff..1e243652f 100644 Binary files a/Bin/es/Microsoft.ReportViewer.WebDesign.resources.dll and b/Bin/es/Microsoft.ReportViewer.WebDesign.resources.dll differ diff --git a/Bin/es/Microsoft.ReportViewer.WebForms.resources.dll b/Bin/es/Microsoft.ReportViewer.WebForms.resources.dll index d06338dd4..b53ac4335 100644 Binary files a/Bin/es/Microsoft.ReportViewer.WebForms.resources.dll and b/Bin/es/Microsoft.ReportViewer.WebForms.resources.dll differ diff --git a/Bin/es/Microsoft.ReportViewer.WinForms.resources.dll b/Bin/es/Microsoft.ReportViewer.WinForms.resources.dll index 279cf82c7..aa4d7f04d 100644 Binary files a/Bin/es/Microsoft.ReportViewer.WinForms.resources.dll and b/Bin/es/Microsoft.ReportViewer.WinForms.resources.dll differ diff --git a/Bin/ja/Microsoft.ReportViewer.Common.resources.dll b/Bin/ja/Microsoft.ReportViewer.Common.resources.dll deleted file mode 100644 index 40a32ad1a..000000000 Binary files a/Bin/ja/Microsoft.ReportViewer.Common.resources.dll and /dev/null differ diff --git a/Bin/ja/Microsoft.ReportViewer.DataVisualization.resources.dll b/Bin/ja/Microsoft.ReportViewer.DataVisualization.resources.dll deleted file mode 100644 index 72dca1ac4..000000000 Binary files a/Bin/ja/Microsoft.ReportViewer.DataVisualization.resources.dll and /dev/null differ diff --git a/Bin/ja/Microsoft.ReportViewer.Design.resources.dll b/Bin/ja/Microsoft.ReportViewer.Design.resources.dll deleted file mode 100644 index df45a3886..000000000 Binary files a/Bin/ja/Microsoft.ReportViewer.Design.resources.dll and /dev/null differ diff --git a/Bin/ja/Microsoft.ReportViewer.WebDesign.resources.dll b/Bin/ja/Microsoft.ReportViewer.WebDesign.resources.dll deleted file mode 100644 index e69f37444..000000000 Binary files a/Bin/ja/Microsoft.ReportViewer.WebDesign.resources.dll and /dev/null differ diff --git a/Bin/ja/Microsoft.ReportViewer.WinForms.resources.dll b/Bin/ja/Microsoft.ReportViewer.WinForms.resources.dll deleted file mode 100644 index 206319079..000000000 Binary files a/Bin/ja/Microsoft.ReportViewer.WinForms.resources.dll and /dev/null differ diff --git a/Content/AjaxControlToolkit/Images/HtmlEditorExtender.Buttons.png b/Content/AjaxControlToolkit/Images/HtmlEditorExtender.Buttons.png index 0dbd6e6bc..41281723d 100644 Binary files a/Content/AjaxControlToolkit/Images/HtmlEditorExtender.Buttons.png and b/Content/AjaxControlToolkit/Images/HtmlEditorExtender.Buttons.png differ diff --git a/Content/AjaxControlToolkit/Styles/AjaxFileUpload.min.css b/Content/AjaxControlToolkit/Styles/AjaxFileUpload.min.css index 7a004f769..b7f6c458e 100644 --- a/Content/AjaxControlToolkit/Styles/AjaxFileUpload.min.css +++ b/Content/AjaxControlToolkit/Styles/AjaxFileUpload.min.css @@ -1 +1 @@ -.ajax__fileupload{border:#d3d3d3 1px solid;overflow:auto;padding:4px}.ajax__fileupload_selectFileContainer{display:inline-block;height:24px;line-height:24px;overflow:hidden;position:relative;width:80px}.ajax__fileupload_selectFileButton{background-color:#212121;color:#d0d0d0;cursor:pointer;display:block;font-size:13px;height:24px;line-height:24px;margin-right:4px;text-align:center;width:80px}.ajax__fileupload_selectFileButton:hover{background-color:#000;color:#fff}.ajax__fileupload_topFileStatus{color:#7f7e7e}.ajax__fileupload_ProgressBarHolder{margin-right:70px}.ajax__fileupload_uploadbutton{background-color:#009;color:#fff;cursor:pointer;font-weight:bold;text-align:center;width:60px}.ajax_fileupload_cancelbutton{background-color:#903;color:#fff;cursor:pointer;font-weight:bold;text-align:center;width:60px}.ajax__fileupload_dropzone{border-style:dotted;border-width:1px;line-height:50px;margin-bottom:2px;text-align:center}.ajax__fileupload_queueContainer{border:#a9a9a9 1px solid;border-width:1px;clear:both;margin-top:2px;padding:4px}.ajax__fileupload_progressBar{background-color:#cfc;padding-left:4px}.ajax__fileupload_footer{height:20px;line-height:20px;margin-top:2px}.ajax__fileupload_fileItemInfo{height:20px;line-height:20px;margin-bottom:2px;overflow:hidden;position:relative;z-index:0}.ajax__fileupload_fileItemInfo .filename{font-weight:bold}.ajax__fileupload_fileItemInfo .uploadstatus{font-style:italic}.ajax__fileupload_fileItemInfo .removeButton{background-color:#900;color:#fff;cursor:pointer;display:block;float:left;height:20px;line-height:20px;text-align:center;width:55px}.ajax__fileupload_fileItemInfo .uploadedState{background-color:#fff;color:#060}.ajax__fileupload_fileItemInfo .uploadingState{background-color:#fff;color:#f90}.ajax__fileupload_fileItemInfo .pendingState{background-color:#fff;color:#009}.ajax__fileupload_fileItemInfo .errorState{background-color:red;color:#fff}.ajax__fileupload_fileItemInfo .cancelledState{background-color:#fff;color:#900}.ajax__fileupload_selectFileContainer input{border:medium none;cursor:pointer;height:40px;margin:0;opacity:0;position:absolute;right:0;top:0}.ajax__fileupload_fileItemInfo div.removeButton{position:absolute;right:0;top:0} \ No newline at end of file +.ajax__fileupload{border:1px solid #D3D3D3;overflow:auto;padding:4px}.ajax__fileupload_selectFileContainer{display:inline-block;height:24px;line-height:24px;overflow:hidden;position:relative;width:80px}.ajax__fileupload_selectFileButton{background-color:#212121;color:#D0D0D0;cursor:pointer;display:block;font-size:13px;height:24px;line-height:24px;margin-right:4px;text-align:center;width:80px}.ajax__fileupload_selectFileButton:hover{background-color:#000;color:#fff}.ajax__fileupload_topFileStatus{color:#7f7e7e}.ajax__fileupload_ProgressBarHolder{margin-right:70px}.ajax__fileupload_uploadbutton{background-color:#009;color:#fff;cursor:pointer;font-weight:700;text-align:center;width:60px}.ajax_fileupload_cancelbutton{background-color:#903;color:#fff;cursor:pointer;font-weight:700;text-align:center;width:60px}.ajax__fileupload_dropzone{border-style:dotted;border-width:1px;line-height:50px;margin-bottom:2px;text-align:center}.ajax__fileupload_queueContainer{border:1px solid #A9A9A9;clear:both;margin-top:2px;padding:4px}.ajax__fileupload_progressBar{background-color:#CFC;padding-left:4px}.ajax__fileupload_footer{height:20px;line-height:20px;margin-top:2px}.ajax__fileupload_fileItemInfo{height:20px;line-height:20px;margin-bottom:2px;overflow:hidden;position:relative;z-index:0}.ajax__fileupload_fileItemInfo .filename{font-weight:700}.ajax__fileupload_fileItemInfo .uploadstatus{font-style:italic}.ajax__fileupload_fileItemInfo .removeButton{background-color:#900;color:#fff;cursor:pointer;display:block;float:left;height:20px;line-height:20px;text-align:center;width:55px}.ajax__fileupload_fileItemInfo .uploadedState{background-color:#fff;color:#060}.ajax__fileupload_fileItemInfo .uploadingState{background-color:#fff;color:#F90}.ajax__fileupload_fileItemInfo .pendingState{background-color:#fff;color:#009}.ajax__fileupload_fileItemInfo .errorState{background-color:red;color:#fff}.ajax__fileupload_fileItemInfo .cancelledState{background-color:#fff;color:#900}.ajax__fileupload_selectFileContainer input{border:none;cursor:pointer;height:40px;margin:0;opacity:0;position:absolute;right:0;top:0}.ajax__fileupload_fileItemInfo div.removeButton{position:absolute;right:0;top:0} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/AreaChart.min.css b/Content/AjaxControlToolkit/Styles/AreaChart.min.css index 94810100e..be70568a2 100644 --- a/Content/AjaxControlToolkit/Styles/AreaChart.min.css +++ b/Content/AjaxControlToolkit/Styles/AreaChart.min.css @@ -1 +1 @@ -#LinearGradient1{stop-color:#fff;stop-opacity:0}#LinearGradient2{stop-color:#fff;stop-opacity:.3}#LinearGradient3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#Legend1{fill:#6c1e83;fill-opacity:.4;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend2{fill:#d08ad9;fill-opacity:.4;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend3{fill:#6586a7;fill-opacity:.4;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend4{fill:#0e426c;fill-opacity:.4;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend5{fill:#a156ab;fill-opacity:.4;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend6{fill:#903;fill-opacity:.4;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend7{fill:#690;fill-opacity:.4;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend8{fill:#b85b3e;fill-opacity:.4;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend9{fill:#ffc652;fill-opacity:.4;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#Legend10{fill:#4508a2;fill-opacity:.4;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#AreaPath1{fill:#6c1e83;fill-opacity:.4;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath2{fill:#d08ad9;fill-opacity:.4;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath3{fill:#6586a7;fill-opacity:.4;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath4{fill:#0e426c;fill-opacity:.4;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath5{fill:#a156ab;fill-opacity:.4;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath6{fill:#903;fill-opacity:.4;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath7{fill:#690;fill-opacity:.4;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath8{fill:#b85b3e;fill-opacity:.4;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath9{fill:#ffc652;fill-opacity:.4;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#AreaPath10{fill:#4508a2;fill-opacity:.4;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#SeriesAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#LegendText{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0} \ No newline at end of file +#AreaPath1,#Legend1{fill:#6C1E83;stroke:#6C1E83}#AreaPath2,#Legend2{fill:#D08AD9;stroke:#D08AD9}#AreaPath3,#Legend3{fill:#6586A7;stroke:#6586A7}#AreaPath4,#Legend4{fill:#0E426C;stroke:#0E426C}#AreaPath5,#Legend5{fill:#A156AB;stroke:#A156AB}#AreaPath6,#Legend6{fill:#903;stroke:#903}#AreaPath7,#Legend7{fill:#690;stroke:#690}#AreaPath8,#Legend8{fill:#B85B3E;stroke:#B85B3E}#AreaPath9,#Legend9{fill:#FFC652;stroke:#FFC652}#AreaPath10,#Legend10{fill:#4508A2;stroke:#4508A2}#ChartBackGround,#LegendArea{stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#LinearGradient1,#LinearGradient3{stop-color:#fff;stop-opacity:0}#LinearGradient2{stop-color:#fff;stop-opacity:.3}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1}#Legend1,#Legend10,#Legend2,#Legend3,#Legend4,#Legend5,#Legend6,#Legend7,#Legend8,#Legend9{fill-opacity:.4;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4}#AreaPath1,#AreaPath10,#AreaPath2,#AreaPath3,#AreaPath4,#AreaPath5,#AreaPath6,#AreaPath7,#AreaPath8,#AreaPath9{fill-opacity:.4;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.4;stroke-width:2}#LegendText,#SeriesAxis,#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/Backgrounds.min.css b/Content/AjaxControlToolkit/Styles/Backgrounds.min.css index c53134df0..def318ca3 100644 --- a/Content/AjaxControlToolkit/Styles/Backgrounds.min.css +++ b/Content/AjaxControlToolkit/Styles/Backgrounds.min.css @@ -1 +1 @@ -.ajax__slider_h_rail{background-image:url('../Images/Slider.Rail-Horizontal.gif')}.ajax__slider_v_rail{background-image:url('../Images/Slider.Rail-Vertical.gif')}.ajax__calendar_prev{background-image:url('../Images/Calendar.Arrow-Left.gif')}.ajax__calendar_next{background-image:url('../Images/Calendar.Arrow-Right.gif')}.ajax__dropdown_arrow_image{background-image:url('../Images/DropDown.DropArrow.gif')}.ajax__balloon_popup .rect{background-image:url('../Images/BalloonPopup.RectangleSprite.gif');background-image:url('../Images/BalloonPopup.RectangleSprite.png') !important}.ajax__balloon_popup .cloud{background-image:url('../Images/BalloonPopup.CloudSprite.gif');background-image:url('../Images/BalloonPopup.CloudSprite.png') !important}.ajax__tab_xp .ajax__tab_header{background-image:url('../Images/Tabs.Line.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{background-image:url('../Images/Tabs.Right.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{background-image:url('../Images/Tabs.Left.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{background-image:url('../Images/Tabs.Background.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{background-image:url('../Images/Tabs.HoverRight.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{background-image:url('../Images/Tabs.HoverLeft.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{background-image:url('../Images/Tabs.Hover.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{background-image:url('../Images/Tabs.ActiveRight.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{background-image:url('../Images/Tabs.ActiveLeft.gif')}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{background-image:url('../Images/Tabs.Active.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft{background-image:url('../Images/Tabs.Line.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{background-image:url('../Images/Tabs.Right-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{background-image:url('../Images/Tabs.Left-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{background-image:url('../Images/Tabs.VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{background-image:url('../Images/Tabs.HoverRight-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{background-image:url('../Images/Tabs.HoverLeft-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{background-image:url('../Images/Tabs.Hover-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{background-image:url('../Images/Tabs.ActiveRight-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{background-image:url('../Images/Tabs.ActiveLeft-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{background-image:url('../Images/Tabs.Active-VerticalLeft.gif')}.ajax__tab_xp .ajax__tab_header_verticalright{background-image:url('../Images/Tabs.Line.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{background-image:url('../Images/Tabs.Right-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{background-image:url('../Images/Tabs.Left-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{background-image:url('../Images/Tabs.VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{background-image:url('../Images/Tabs.HoverRight-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{background-image:url('../Images/Tabs.HoverLeft-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{background-image:url('../Images/Tabs.Hover-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{background-image:url('../Images/Tabs.ActiveRight-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{background-image:url('../Images/Tabs.ActiveLeft-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{background-image:url('../Images/Tabs.Active-VerticalRight.gif')}.ajax__tab_xp .ajax__tab_header_bottom{background-image:url('../Images/Tabs.Line.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{background-image:url('../Images/Tabs.Bottom-Right.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{background-image:url('../Images/Tabs.Bottom-Left.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{background-image:url('../Images/Tabs.Bottom.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{background-image:url('../Images/Tabs.Bottom-HoverRight.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{background-image:url('../Images/Tabs.Bottom-HoverLeft.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{background-image:url('../Images/Tabs.Bottom-Hover.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{background-image:url('../Images/Tabs.Bottom-ActiveRight.gif')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{background-image:url('../Images/Tabs.Bottom-ActiveLeft.gif"')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{background-image:url('../Images/Tabs.Bottom-Active.gif"')}.ajax__multi_slider_default .outer_rail_vertical{background-image:url('../Images/MultiHandleSlider.RailOuter-Vertical.gif')}.ajax__multi_slider_default .inner_rail_vertical{background-image:url('../Images/MultiHandleSlider.Rail-Vertical.gif')}.ajax__multi_slider_default .inner_rail_horizontal{background-image:url('../Images/MultiHandleSlider.Rail-Horizontal.gif')}.ajax__multi_slider_default .outer_rail_horizontal{background-image:url('../Images/MultiHandleSlider.RailOuter-Horizontal.gif')}.ajax__multi_slider_default .handle_horizontal{background-image:url('../Images/MultiHandleSlider.Handle-Horizontal.gif')}.ajax__multi_slider_default .handle_horizontal_hover{background-image:url('../Images/MultiHandleSlider.HandleHover-Horizontal.gif')}.ajax__multi_slider_default .handle_horizontal_down{background-image:url('../Images/MultiHandleSlider.HandleDown-Horizontal.gif')}.ajax__multi_slider_default .handle_vertical{background-image:url('../Images/MultiHandleSlider.Handle-Vertical.gif')}.ajax__multi_slider_default .handle_vertical_hover{background-image:url('../Images/MultiHandleSlider.HandleHover-Vertical.gif')}.ajax__multi_slider_default .handle_vertical_down{background-image:url('../Images/MultiHandleSlider.HandleDown-Vertical.gif')}.ajax__combobox_buttoncontainer button{background-image:url('../Images/ComboBox.Arrow-Down.gif')}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{background-image:url('../Images/HtmlEditor.BgiButton.gif')}.ajax__html_editor_extender_button{background-image:url('../Images/HtmlEditorExtender.Buttons.png')}.ajax__html_editor_extender_separator{background-image:url('../Images/HtmlEditorExtender.Buttons.png')} \ No newline at end of file +.ajax__slider_h_rail{background-image:url(../Images/Slider.Rail-Horizontal.gif)}.ajax__slider_v_rail{background-image:url(../Images/Slider.Rail-Vertical.gif)}.ajax__calendar_prev{background-image:url(../Images/Calendar.Arrow-Left.gif)}.ajax__calendar_next{background-image:url(../Images/Calendar.Arrow-Right.gif)}.ajax__dropdown_arrow_image{background-image:url(../Images/DropDown.DropArrow.gif)}.ajax__balloon_popup .rect{background-image:url(../Images/BalloonPopup.RectangleSprite.png)!important}.ajax__balloon_popup .cloud{background-image:url(../Images/BalloonPopup.CloudSprite.png)!important}.ajax__tab_xp .ajax__tab_header{background-image:url(../Images/Tabs.Line.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{background-image:url(../Images/Tabs.Right.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{background-image:url(../Images/Tabs.Left.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{background-image:url(../Images/Tabs.Background.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{background-image:url(../Images/Tabs.HoverRight.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{background-image:url(../Images/Tabs.HoverLeft.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{background-image:url(../Images/Tabs.Hover.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{background-image:url(../Images/Tabs.ActiveRight.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{background-image:url(../Images/Tabs.ActiveLeft.gif)}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{background-image:url(../Images/Tabs.Active.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft{background-image:url(../Images/Tabs.Line.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{background-image:url(../Images/Tabs.Right-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{background-image:url(../Images/Tabs.Left-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{background-image:url(../Images/Tabs.VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{background-image:url(../Images/Tabs.HoverRight-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{background-image:url(../Images/Tabs.HoverLeft-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{background-image:url(../Images/Tabs.Hover-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{background-image:url(../Images/Tabs.ActiveRight-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{background-image:url(../Images/Tabs.ActiveLeft-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{background-image:url(../Images/Tabs.Active-VerticalLeft.gif)}.ajax__tab_xp .ajax__tab_header_verticalright{background-image:url(../Images/Tabs.Line.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{background-image:url(../Images/Tabs.Right-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{background-image:url(../Images/Tabs.Left-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{background-image:url(../Images/Tabs.VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{background-image:url(../Images/Tabs.HoverRight-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{background-image:url(../Images/Tabs.HoverLeft-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{background-image:url(../Images/Tabs.Hover-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{background-image:url(../Images/Tabs.ActiveRight-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{background-image:url(../Images/Tabs.ActiveLeft-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{background-image:url(../Images/Tabs.Active-VerticalRight.gif)}.ajax__tab_xp .ajax__tab_header_bottom{background-image:url(../Images/Tabs.Line.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{background-image:url(../Images/Tabs.Bottom-Right.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{background-image:url(../Images/Tabs.Bottom-Left.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{background-image:url(../Images/Tabs.Bottom.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{background-image:url(../Images/Tabs.Bottom-HoverRight.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{background-image:url(../Images/Tabs.Bottom-HoverLeft.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{background-image:url(../Images/Tabs.Bottom-Hover.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{background-image:url(../Images/Tabs.Bottom-ActiveRight.gif)}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{background-image:url('../Images/Tabs.Bottom-ActiveLeft.gif"')}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{background-image:url('../Images/Tabs.Bottom-Active.gif"')}.ajax__multi_slider_default .outer_rail_vertical{background-image:url(../Images/MultiHandleSlider.RailOuter-Vertical.gif)}.ajax__multi_slider_default .inner_rail_vertical{background-image:url(../Images/MultiHandleSlider.Rail-Vertical.gif)}.ajax__multi_slider_default .inner_rail_horizontal{background-image:url(../Images/MultiHandleSlider.Rail-Horizontal.gif)}.ajax__multi_slider_default .outer_rail_horizontal{background-image:url(../Images/MultiHandleSlider.RailOuter-Horizontal.gif)}.ajax__multi_slider_default .handle_horizontal{background-image:url(../Images/MultiHandleSlider.Handle-Horizontal.gif)}.ajax__multi_slider_default .handle_horizontal_hover{background-image:url(../Images/MultiHandleSlider.HandleHover-Horizontal.gif)}.ajax__multi_slider_default .handle_horizontal_down{background-image:url(../Images/MultiHandleSlider.HandleDown-Horizontal.gif)}.ajax__multi_slider_default .handle_vertical{background-image:url(../Images/MultiHandleSlider.Handle-Vertical.gif)}.ajax__multi_slider_default .handle_vertical_hover{background-image:url(../Images/MultiHandleSlider.HandleHover-Vertical.gif)}.ajax__multi_slider_default .handle_vertical_down{background-image:url(../Images/MultiHandleSlider.HandleDown-Vertical.gif)}.ajax__combobox_buttoncontainer button{background-image:url(../Images/ComboBox.Arrow-Down.gif)}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{background-image:url(../Images/HtmlEditor.BgiButton.gif)}.ajax__html_editor_extender_button,.ajax__html_editor_extender_separator{background-image:url(../Images/HtmlEditorExtender.Buttons.png)} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/BalloonPopup.Cloud.min.css b/Content/AjaxControlToolkit/Styles/BalloonPopup.Cloud.min.css index e6a0e984e..9ff96ac30 100644 --- a/Content/AjaxControlToolkit/Styles/BalloonPopup.Cloud.min.css +++ b/Content/AjaxControlToolkit/Styles/BalloonPopup.Cloud.min.css @@ -1 +1 @@ -@charset "utf-8";.ajax__balloon_popup .cloud .small{height:150px;width:200px}.ajax__balloon_popup .cloud .small .bottom_right{background-position:0 0}.ajax__balloon_popup .cloud .small .bottom_right .ajax__content{padding:33px 25px 33px 35px}*html .ajax__balloon_popup .cloud .small .bottom_right_shadow{background:none}.ajax__balloon_popup .cloud .small .bottom_right_shadow{background-position:-950px 0}.ajax__balloon_popup .cloud .small .bottom_left{background-position:0 -150px}.ajax__balloon_popup .cloud .small .bottom_left .ajax__content{padding:33px 25px 33px 35px}*html .ajax__balloon_popup .cloud .small .bottom_left_shadow{background:none}.ajax__balloon_popup .cloud .small .bottom_left_shadow{background-position:-950px -150px}.ajax__balloon_popup .cloud .small .top_right{background-position:0 -300px}.ajax__balloon_popup .cloud .small .top_right .ajax__content{padding:33px 25px 33px 35px}*html .ajax__balloon_popup .cloud .small .top_right_shadow{background:none}.ajax__balloon_popup .cloud .small .top_right_shadow{background-position:-950px -300px}.ajax__balloon_popup .cloud .small .top_left{background-position:0 -450px}.ajax__balloon_popup .cloud .small .top_left .ajax__content{padding:33px 25px 33px 35px}*html .ajax__balloon_popup .cloud .small .top_left_shadow{background:none}.ajax__balloon_popup .cloud .small .top_left_shadow{background-position:-950px -450px}.ajax__balloon_popup .cloud .medium{height:200px;width:250px}.ajax__balloon_popup .cloud .medium .bottom_right{background-position:-200px 0}.ajax__balloon_popup .cloud .medium .bottom_right .ajax__content{padding:40px}*html .ajax__balloon_popup .cloud .medium .bottom_right_shadow{background:none}.ajax__balloon_popup .cloud .medium .bottom_right_shadow{background-position:-1150px 0}.ajax__balloon_popup .cloud .medium .bottom_left{background-position:-200px -200px}.ajax__balloon_popup .cloud .medium .bottom_left .ajax__content{padding:40px}*html .ajax__balloon_popup .cloud .medium .bottom_left_shadow{background:none}.ajax__balloon_popup .cloud .medium .bottom_left_shadow{background-position:-1150px -200px}.ajax__balloon_popup .cloud .medium .top_right{background-position:-200px -400px}.ajax__balloon_popup .cloud .medium .top_right .ajax__content{padding:40px}*html .ajax__balloon_popup .cloud .medium .top_right_shadow{background:none}.ajax__balloon_popup .cloud .medium .top_right_shadow{background-position:-1150px -400px}.ajax__balloon_popup .cloud .medium .top_left{background-position:-200px -600px}.ajax__balloon_popup .cloud .medium .top_left .ajax__content{padding:40px}*html .ajax__balloon_popup .cloud .medium .top_left_shadow{background:none}.ajax__balloon_popup .cloud .medium .top_left_shadow{background-position:-1150px -600px}.ajax__balloon_popup .cloud .large{height:300px;width:500px}.ajax__balloon_popup .cloud .large .bottom_right{background-position:-450px 0}.ajax__balloon_popup .cloud .large .bottom_right .ajax__content{padding:50px}*html .ajax__balloon_popup .cloud .large .bottom_right_shadow{background:none}.ajax__balloon_popup .cloud .large .bottom_right_shadow{background-position:-1400px 0}.ajax__balloon_popup .cloud .large .bottom_left{background-position:-450px -300px}.ajax__balloon_popup .cloud .large .bottom_left .ajax__content{padding:50px}*html .ajax__balloon_popup .cloud .large .bottom_left_shadow{background:none}.ajax__balloon_popup .cloud .large .bottom_left_shadow{background-position:-1400px -300px}.ajax__balloon_popup .cloud .large .top_right{background-position:-450px -600px}.ajax__balloon_popup .cloud .large .top_right .ajax__content{padding:50px}*html .ajax__balloon_popup .cloud .large .top_right_shadow{background:none}.ajax__balloon_popup .cloud .large .top_right_shadow{background-position:-1400px -600px}.ajax__balloon_popup .cloud .large .top_left{background-position:-450px -900px}.ajax__balloon_popup .cloud .large .top_left .ajax__content{padding:50px}*html .ajax__balloon_popup .cloud .large .top_left_shadow{background:none}.ajax__balloon_popup .cloud .large .top_left_shadow{background-position:-1400px -900px} \ No newline at end of file +@charset "utf-8";.ajax__balloon_popup .cloud .small .bottom_left .ajax__content,.ajax__balloon_popup .cloud .small .bottom_right .ajax__content,.ajax__balloon_popup .cloud .small .top_left .ajax__content,.ajax__balloon_popup .cloud .small .top_right .ajax__content{padding:33px 25px 33px 35px}.ajax__balloon_popup .cloud .small{height:150px;width:200px}.ajax__balloon_popup .cloud .small .bottom_right{background-position:0 0}*html .ajax__balloon_popup .cloud .small .bottom_right_shadow{background:0 0}.ajax__balloon_popup .cloud .small .bottom_right_shadow{background-position:-950px 0}.ajax__balloon_popup .cloud .small .bottom_left{background-position:0 -150px}*html .ajax__balloon_popup .cloud .small .bottom_left_shadow{background:0 0}.ajax__balloon_popup .cloud .small .bottom_left_shadow{background-position:-950px -150px}.ajax__balloon_popup .cloud .small .top_right{background-position:0 -300px}*html .ajax__balloon_popup .cloud .small .top_right_shadow{background:0 0}.ajax__balloon_popup .cloud .small .top_right_shadow{background-position:-950px -300px}.ajax__balloon_popup .cloud .small .top_left{background-position:0 -450px}.ajax__balloon_popup .cloud .medium .bottom_left .ajax__content,.ajax__balloon_popup .cloud .medium .bottom_right .ajax__content,.ajax__balloon_popup .cloud .medium .top_left .ajax__content,.ajax__balloon_popup .cloud .medium .top_right .ajax__content{padding:40px}*html .ajax__balloon_popup .cloud .small .top_left_shadow{background:0 0}.ajax__balloon_popup .cloud .small .top_left_shadow{background-position:-950px -450px}.ajax__balloon_popup .cloud .medium{height:200px;width:250px}.ajax__balloon_popup .cloud .medium .bottom_right{background-position:-200px 0}*html .ajax__balloon_popup .cloud .medium .bottom_right_shadow{background:0 0}.ajax__balloon_popup .cloud .medium .bottom_right_shadow{background-position:-1150px 0}.ajax__balloon_popup .cloud .medium .bottom_left{background-position:-200px -200px}*html .ajax__balloon_popup .cloud .medium .bottom_left_shadow{background:0 0}.ajax__balloon_popup .cloud .medium .bottom_left_shadow{background-position:-1150px -200px}.ajax__balloon_popup .cloud .medium .top_right{background-position:-200px -400px}*html .ajax__balloon_popup .cloud .medium .top_right_shadow{background:0 0}.ajax__balloon_popup .cloud .medium .top_right_shadow{background-position:-1150px -400px}.ajax__balloon_popup .cloud .medium .top_left{background-position:-200px -600px}.ajax__balloon_popup .cloud .large .bottom_left .ajax__content,.ajax__balloon_popup .cloud .large .bottom_right .ajax__content,.ajax__balloon_popup .cloud .large .top_left .ajax__content,.ajax__balloon_popup .cloud .large .top_right .ajax__content{padding:50px}*html .ajax__balloon_popup .cloud .medium .top_left_shadow{background:0 0}.ajax__balloon_popup .cloud .medium .top_left_shadow{background-position:-1150px -600px}.ajax__balloon_popup .cloud .large{height:300px;width:500px}.ajax__balloon_popup .cloud .large .bottom_right{background-position:-450px 0}*html .ajax__balloon_popup .cloud .large .bottom_right_shadow{background:0 0}.ajax__balloon_popup .cloud .large .bottom_right_shadow{background-position:-1400px 0}.ajax__balloon_popup .cloud .large .bottom_left{background-position:-450px -300px}*html .ajax__balloon_popup .cloud .large .bottom_left_shadow{background:0 0}.ajax__balloon_popup .cloud .large .bottom_left_shadow{background-position:-1400px -300px}.ajax__balloon_popup .cloud .large .top_right{background-position:-450px -600px}*html .ajax__balloon_popup .cloud .large .top_right_shadow{background:0 0}.ajax__balloon_popup .cloud .large .top_right_shadow{background-position:-1400px -600px}.ajax__balloon_popup .cloud .large .top_left{background-position:-450px -900px}*html .ajax__balloon_popup .cloud .large .top_left_shadow{background:0 0}.ajax__balloon_popup .cloud .large .top_left_shadow{background-position:-1400px -900px} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/BalloonPopup.Rectangle.min.css b/Content/AjaxControlToolkit/Styles/BalloonPopup.Rectangle.min.css index 646c92faa..75f568911 100644 --- a/Content/AjaxControlToolkit/Styles/BalloonPopup.Rectangle.min.css +++ b/Content/AjaxControlToolkit/Styles/BalloonPopup.Rectangle.min.css @@ -1 +1 @@ -@charset "utf-8";.ajax__balloon_popup .rect .small{height:150px;width:200px}.ajax__balloon_popup .rect .small .bottom_right{background-position:0 0}.ajax__balloon_popup .rect .small .bottom_right .ajax__content{padding:25px 25px 25px 15px}*html .ajax__balloon_popup .rect .small .bottom_right_shadow{background:none}.ajax__balloon_popup .rect .small .bottom_right_shadow{background-position:-950px 0}.ajax__balloon_popup .rect .small .bottom_left{background-position:0 -150px}.ajax__balloon_popup .rect .small .bottom_left .ajax__content{padding:25px 15px 25px 25px}*html .ajax__balloon_popup .rect .small .bottom_left_shadow{background:none}.ajax__balloon_popup .rect .small .bottom_left_shadow{background-position:-950px -150px}.ajax__balloon_popup .rect .small .top_right{background-position:0 -300px}.ajax__balloon_popup .rect .small .top_right .ajax__content{padding:25px 25px 25px 15px}*html .ajax__balloon_popup .rect .small .top_right_shadow{background:none}.ajax__balloon_popup .rect .small .top_right_shadow{background-position:-950px -300px}.ajax__balloon_popup .rect .small .top_left{background-position:0 -450px}.ajax__balloon_popup .rect .small .top_left .ajax__content{padding:25px 15px 25px 25px}*html .ajax__balloon_popup .rect .small .top_left_shadow{background:none}.ajax__balloon_popup .rect .small .top_left_shadow{background-position:-950px -450px}.ajax__balloon_popup .rect .medium{height:200px;width:250px}.ajax__balloon_popup .rect .medium .bottom_right{background-position:-200px 0}.ajax__balloon_popup .rect .medium .bottom_right .ajax__content{padding:30px 25px 25px 15px}*html .ajax__balloon_popup .rect .medium .bottom_right_shadow{background:none}.ajax__balloon_popup .rect .medium .bottom_right_shadow{background-position:-1150px 0}.ajax__balloon_popup .rect .medium .bottom_left{background-position:-200px -200px}.ajax__balloon_popup .rect .medium .bottom_left .ajax__content{padding:30px 15px 35px 35px}*html .ajax__balloon_popup .rect .medium .bottom_left_shadow{background:none}.ajax__balloon_popup .rect .medium .bottom_left_shadow{background-position:-1150px -200px}.ajax__balloon_popup .rect .medium .top_right{background-position:-200px -400px}.ajax__balloon_popup .rect .medium .top_right .ajax__content{padding:30px 30px 35px 15px}*html .ajax__balloon_popup .rect .medium .top_right_shadow{background:none}.ajax__balloon_popup .rect .medium .top_right_shadow{background-position:-1150px -400px}.ajax__balloon_popup .rect .medium .top_left{background-position:-200px -600px}.ajax__balloon_popup .rect .medium .top_left .ajax__content{padding:35px 15px 35px 35px}*html .ajax__balloon_popup .rect .medium .top_left_shadow{background:none}.ajax__balloon_popup .rect .medium .top_left_shadow{background-position:-1150px -600px}.ajax__balloon_popup .rect .large{height:300px;width:500px}.ajax__balloon_popup .rect .large .bottom_right{background-position:-450px 0}.ajax__balloon_popup .rect .large .bottom_right .ajax__content{padding:40px 30px 30px 15px}*html .ajax__balloon_popup .rect .large .bottom_right_shadow{background:none}.ajax__balloon_popup .rect .large .bottom_right_shadow{background-position:-1400px 0}.ajax__balloon_popup .rect .large .bottom_left{background-position:-450px -300px}.ajax__balloon_popup .rect .large .bottom_left .ajax__content{padding:40px 15px 30px 30px}*html .ajax__balloon_popup .rect .large .bottom_left_shadow{background:none}.ajax__balloon_popup .rect .large .bottom_left_shadow{background-position:-1400px -300px}.ajax__balloon_popup .rect .large .top_right{background-position:-450px -600px}.ajax__balloon_popup .rect .large .top_right .ajax__content{padding:30px 30px 45px 15px}*html .ajax__balloon_popup .rect .large .top_right_shadow{background:none}.ajax__balloon_popup .rect .large .top_right_shadow{background-position:-1400px -600px}.ajax__balloon_popup .rect .large .top_left{background-position:-450px -900px}.ajax__balloon_popup .rect .large .top_left .ajax__content{padding:25px 15px 45px 30px}*html .ajax__balloon_popup .rect .large .top_left_shadow{background:none}.ajax__balloon_popup .rect .large .top_left_shadow{background-position:-1400px -900px} \ No newline at end of file +@charset "utf-8";.ajax__balloon_popup .rect .small{height:150px;width:200px}.ajax__balloon_popup .rect .small .bottom_right{background-position:0 0}.ajax__balloon_popup .rect .small .bottom_right .ajax__content{padding:25px 25px 25px 15px}*html .ajax__balloon_popup .rect .small .bottom_right_shadow{background:0 0}.ajax__balloon_popup .rect .small .bottom_right_shadow{background-position:-950px 0}.ajax__balloon_popup .rect .small .bottom_left{background-position:0 -150px}.ajax__balloon_popup .rect .small .bottom_left .ajax__content{padding:25px 15px 25px 25px}*html .ajax__balloon_popup .rect .small .bottom_left_shadow{background:0 0}.ajax__balloon_popup .rect .small .bottom_left_shadow{background-position:-950px -150px}.ajax__balloon_popup .rect .small .top_right{background-position:0 -300px}.ajax__balloon_popup .rect .small .top_right .ajax__content{padding:25px 25px 25px 15px}*html .ajax__balloon_popup .rect .small .top_right_shadow{background:0 0}.ajax__balloon_popup .rect .small .top_right_shadow{background-position:-950px -300px}.ajax__balloon_popup .rect .small .top_left{background-position:0 -450px}.ajax__balloon_popup .rect .small .top_left .ajax__content{padding:25px 15px 25px 25px}*html .ajax__balloon_popup .rect .small .top_left_shadow{background:0 0}.ajax__balloon_popup .rect .small .top_left_shadow{background-position:-950px -450px}.ajax__balloon_popup .rect .medium{height:200px;width:250px}.ajax__balloon_popup .rect .medium .bottom_right{background-position:-200px 0}.ajax__balloon_popup .rect .medium .bottom_right .ajax__content{padding:30px 25px 25px 15px}*html .ajax__balloon_popup .rect .medium .bottom_right_shadow{background:0 0}.ajax__balloon_popup .rect .medium .bottom_right_shadow{background-position:-1150px 0}.ajax__balloon_popup .rect .medium .bottom_left{background-position:-200px -200px}.ajax__balloon_popup .rect .medium .bottom_left .ajax__content{padding:30px 15px 35px 35px}*html .ajax__balloon_popup .rect .medium .bottom_left_shadow{background:0 0}.ajax__balloon_popup .rect .medium .bottom_left_shadow{background-position:-1150px -200px}.ajax__balloon_popup .rect .medium .top_right{background-position:-200px -400px}.ajax__balloon_popup .rect .medium .top_right .ajax__content{padding:30px 30px 35px 15px}*html .ajax__balloon_popup .rect .medium .top_right_shadow{background:0 0}.ajax__balloon_popup .rect .medium .top_right_shadow{background-position:-1150px -400px}.ajax__balloon_popup .rect .medium .top_left{background-position:-200px -600px}.ajax__balloon_popup .rect .medium .top_left .ajax__content{padding:35px 15px 35px 35px}*html .ajax__balloon_popup .rect .medium .top_left_shadow{background:0 0}.ajax__balloon_popup .rect .medium .top_left_shadow{background-position:-1150px -600px}.ajax__balloon_popup .rect .large{height:300px;width:500px}.ajax__balloon_popup .rect .large .bottom_right{background-position:-450px 0}.ajax__balloon_popup .rect .large .bottom_right .ajax__content{padding:40px 30px 30px 15px}*html .ajax__balloon_popup .rect .large .bottom_right_shadow{background:0 0}.ajax__balloon_popup .rect .large .bottom_right_shadow{background-position:-1400px 0}.ajax__balloon_popup .rect .large .bottom_left{background-position:-450px -300px}.ajax__balloon_popup .rect .large .bottom_left .ajax__content{padding:40px 15px 30px 30px}*html .ajax__balloon_popup .rect .large .bottom_left_shadow{background:0 0}.ajax__balloon_popup .rect .large .bottom_left_shadow{background-position:-1400px -300px}.ajax__balloon_popup .rect .large .top_right{background-position:-450px -600px}.ajax__balloon_popup .rect .large .top_right .ajax__content{padding:30px 30px 45px 15px}*html .ajax__balloon_popup .rect .large .top_right_shadow{background:0 0}.ajax__balloon_popup .rect .large .top_right_shadow{background-position:-1400px -600px}.ajax__balloon_popup .rect .large .top_left{background-position:-450px -900px}.ajax__balloon_popup .rect .large .top_left .ajax__content{padding:25px 15px 45px 30px}*html .ajax__balloon_popup .rect .large .top_left_shadow{background:0 0}.ajax__balloon_popup .rect .large .top_left_shadow{background-position:-1400px -900px} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/BarChart.min.css b/Content/AjaxControlToolkit/Styles/BarChart.min.css index febfba31c..30c7b3484 100644 --- a/Content/AjaxControlToolkit/Styles/BarChart.min.css +++ b/Content/AjaxControlToolkit/Styles/BarChart.min.css @@ -1 +1 @@ -#LinearGradient1{stop-color:#fff;stop-opacity:0}#LinearGradient2{stop-color:#fff;stop-opacity:.4}#LinearGradient3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#Legend1{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend2{fill:#d08ad9;fill-opacity:1;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend3{fill:#6586a7;fill-opacity:1;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend4{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend5{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend6{fill:#903;fill-opacity:1;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend7{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend8{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend9{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend10{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Bar1{fill:#6c1e83;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar2{fill:#d08ad9;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar3{fill:#6586a7;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar4{fill:#0e426c;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar5{fill:#a156ab;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar6{fill:#903;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar7{fill:#690;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar8{fill:#b85b3e;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar9{fill:#ffc652;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar10{fill:#4508a2;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#SeriesAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#LegendText{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0} \ No newline at end of file +#Bar1,#Bar10,#Bar2,#Bar3,#Bar4,#Bar6,#Bar7,#Bar8,#Bar9{stroke:#cc5300}#ChartBackGround,#LegendArea{stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#LinearGradient1,#LinearGradient3{stop-color:#fff;stop-opacity:0}#LinearGradient2{stop-color:#fff;stop-opacity:.4}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1}#Legend1{fill:#6C1E83;fill-opacity:1;stroke:#6C1E83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend2{fill:#D08AD9;fill-opacity:1;stroke:#D08AD9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend3{fill:#6586A7;fill-opacity:1;stroke:#6586A7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend4{fill:#0E426C;fill-opacity:1;stroke:#0E426C;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend5{fill:#A156AB;fill-opacity:1;stroke:#A156AB;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend6{fill:#903;fill-opacity:1;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend7{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend8{fill:#B85B3E;fill-opacity:1;stroke:#B85B3E;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend9{fill:#FFC652;fill-opacity:1;stroke:#FFC652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend10{fill:#4508A2;fill-opacity:1;stroke:#4508A2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Bar1{fill:#6C1E83;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar2{fill:#D08AD9;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar3{fill:#6586A7;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar4{fill:#0E426C;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar5{fill:#A156AB;fill-opacity:1;stroke:#cc5300;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar6{fill:#903;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar7{fill:#690;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar8{fill:#B85B3E;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar9{fill:#FFC652;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#Bar10{fill:#4508A2;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendText,#SeriesAxis,#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/BubbleChart.min.css b/Content/AjaxControlToolkit/Styles/BubbleChart.min.css index 27fae3d97..cc74d97bb 100644 --- a/Content/AjaxControlToolkit/Styles/BubbleChart.min.css +++ b/Content/AjaxControlToolkit/Styles/BubbleChart.min.css @@ -1 +1 @@ -#LinearGradient1{stop-color:#fff;stop-opacity:.1}#LinearGradient-Stop2{stop-color:#fff;stop-opacity:.3}#LinearGradient-Stop3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#Legend1{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend2{fill:#d08ad9;fill-opacity:1;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend3{fill:#6586a7;fill-opacity:1;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend4{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend5{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend6{fill:#903;fill-opacity:1;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend7{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend8{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend9{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend10{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Dot1{fill:#6c1e83;fill-opacity:.7;stroke:#6c1e83;stroke-opacity:.7;stroke-width:0}#Dot2{fill:#d08ad9;fill-opacity:.7;stroke:#d08ad9;stroke-opacity:.7;stroke-width:0}#Dot3{fill:#6586a7;fill-opacity:.7;stroke:#6586a7;stroke-opacity:.7;stroke-width:0}#Dot4{fill:#0e426c;fill-opacity:.7;stroke:#0e426c;stroke-opacity:.7;stroke-width:0}#Dot5{fill:#a156ab;fill-opacity:.7;stroke:#a156ab;stroke-opacity:.7;stroke-width:0}#Dot6{fill:#903;fill-opacity:.7;stroke:#903;stroke-opacity:.7;stroke-width:0}#Dot7{fill:#690;fill-opacity:.7;stroke:#690;stroke-opacity:.7;stroke-width:0}#Dot8{fill:#b85b3e;fill-opacity:.7;stroke:#b85b3e;stroke-opacity:.7;stroke-width:0}#Dot9{fill:#ffc652;fill-opacity:.7;stroke:#ffc652;stroke-opacity:.7;stroke-width:0}#Dot10{fill:#4508a2;fill-opacity:.7;stroke:#4508a2;stroke-opacity:.7;stroke-width:0}#SeriesAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#LegendText{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#DotTooltip{background-color:#fff;border:2px solid #b85b3e;color:#0e426c;left:0;padding:10px;position:absolute;top:0;visibility:hidden;z-index:10000}#AxisLabels{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px} \ No newline at end of file +#Dot1,#Legend1{fill:#6C1E83;stroke:#6C1E83}#Dot2,#Legend2{fill:#D08AD9;stroke:#D08AD9}#Dot3,#Legend3{fill:#6586A7;stroke:#6586A7}#Dot4,#Legend4{fill:#0E426C;stroke:#0E426C}#Dot5,#Legend5{fill:#A156AB;stroke:#A156AB}#Dot6,#Legend6{fill:#903;stroke:#903}#Dot7,#Legend7{fill:#690;stroke:#690}#Dot8,#Legend8{fill:#B85B3E;stroke:#B85B3E}#Dot9,#Legend9{fill:#FFC652;stroke:#FFC652}#Dot10,#Legend10{fill:#4508A2;stroke:#4508A2}#ChartBackGround,#LegendArea{stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#LinearGradient1{stop-color:#fff;stop-opacity:.1}#LinearGradient-Stop2{stop-color:#fff;stop-opacity:.3}#LinearGradient-Stop3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#AxisLabels,#LegendText,#SeriesAxis,#ValueAxis{font-family:Arial,Helvetica,sans-serif;font-size:11px}#VerticalLine{fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1}#Legend1,#Legend10,#Legend2,#Legend3,#Legend4,#Legend5,#Legend6,#Legend7,#Legend8,#Legend9{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Dot1,#Dot10,#Dot2,#Dot3,#Dot4,#Dot5,#Dot6,#Dot7,#Dot8,#Dot9{fill-opacity:.7;stroke-opacity:.7;stroke-width:0}#LegendText,#SeriesAxis,#ValueAxis{fill:#232323;fill-opacity:1}#ChartBackGround{fill:#fff;fill-opacity:1}#DotTooltip{background-color:#fff;border:2px solid #b85b3e;color:#0E426C;left:0;padding:10px;position:absolute;top:0;visibility:hidden;z-index:10000}#AxisLabels{fill:#711737;fill-opacity:1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/Calendar.css b/Content/AjaxControlToolkit/Styles/Calendar.css index 2cc732fe0..67aee1fe0 100644 --- a/Content/AjaxControlToolkit/Styles/Calendar.css +++ b/Content/AjaxControlToolkit/Styles/Calendar.css @@ -1,3 +1,9 @@ +.ajax__calendar * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + .ajax__calendar_container { cursor: default; font-family: tahoma,verdana,helvetica; @@ -72,7 +78,11 @@ } .ajax__calendar_footer { - height: 15px; + /* + position: relative; + height: auto; + min-height: 100%; + */ } .ajax__calendar_today { diff --git a/Content/AjaxControlToolkit/Styles/Calendar.min.css b/Content/AjaxControlToolkit/Styles/Calendar.min.css index 9624c9326..91acf346b 100644 --- a/Content/AjaxControlToolkit/Styles/Calendar.min.css +++ b/Content/AjaxControlToolkit/Styles/Calendar.min.css @@ -1 +1 @@ -.ajax__calendar_container{cursor:default;font-family:tahoma,verdana,helvetica;font-size:11px;padding:4px;text-align:center;width:170px}.ajax__calendar_body{height:139px;margin:auto;overflow:hidden;position:relative;width:170px}.ajax__calendar_days,.ajax__calendar_months,.ajax__calendar_years{height:139px;left:0;margin:auto;position:absolute;text-align:center;top:0;width:170px}.ajax__calendar_days table,.ajax__calendar_months table,.ajax__calendar_years table{border-spacing:0}.ajax__calendar_container TABLE{font-size:11px;margin:0;padding:0}.ajax__calendar_container TD{font-size:11px;margin:0;padding:0}.ajax__calendar_header{height:20px;width:100%}.ajax__calendar_prev{background-position:50% 50%;background-repeat:no-repeat;cursor:pointer;float:left;height:15px;width:15px}.ajax__calendar_next{background-position:50% 50%;background-repeat:no-repeat;cursor:pointer;float:right;height:15px;width:15px}.ajax__calendar_title{cursor:pointer;font-weight:bold;margin-left:15px;margin-right:15px}.ajax__calendar_footer{height:15px}.ajax__calendar_today{cursor:pointer;padding-top:3px}.ajax__calendar_dayname{height:17px;padding:0 2px;text-align:right;width:17px}.ajax__calendar_day{cursor:pointer;height:17px;padding:0 2px;text-align:right;width:18px}.ajax__calendar_month{cursor:pointer;height:44px;overflow:hidden;text-align:center;width:40px}.ajax__calendar_year{cursor:pointer;height:44px;overflow:hidden;text-align:center;width:40px}.ajax__calendar .ajax__calendar_container{background-color:#fff;border:1px solid #646464;color:#000}.ajax__calendar .ajax__calendar_footer{border-top:1px solid #f5f5f5}.ajax__calendar .ajax__calendar_dayname{border-bottom:1px solid #f5f5f5}.ajax__calendar .ajax__calendar_day{border:1px solid #fff}.ajax__calendar .ajax__calendar_month{border:1px solid #fff}.ajax__calendar .ajax__calendar_year{border:1px solid #fff}.ajax__calendar .ajax__calendar_active .ajax__calendar_day{background-color:#edf9ff;border-color:#06c;color:#06c}.ajax__calendar .ajax__calendar_active .ajax__calendar_month{background-color:#edf9ff;border-color:#06c;color:#06c}.ajax__calendar .ajax__calendar_active .ajax__calendar_year{background-color:#edf9ff;border-color:#06c;color:#06c}.ajax__calendar .ajax__calendar_today .ajax__calendar_day{border-color:#06c}.ajax__calendar .ajax__calendar_today .ajax__calendar_month{border-color:#06c}.ajax__calendar .ajax__calendar_today .ajax__calendar_year{border-color:#06c}.ajax__calendar .ajax__calendar_other .ajax__calendar_day{background-color:#fff;border-color:#fff;color:#646464}.ajax__calendar .ajax__calendar_other .ajax__calendar_year{background-color:#fff;border-color:#fff;color:#646464}.ajax__calendar .ajax__calendar_hover .ajax__calendar_day{background-color:#edf9ff;border-color:#daf2fc;color:#06c}.ajax__calendar .ajax__calendar_hover .ajax__calendar_month{background-color:#edf9ff;border-color:#daf2fc;color:#06c}.ajax__calendar .ajax__calendar_hover .ajax__calendar_year{background-color:#edf9ff;border-color:#daf2fc;color:#06c}.ajax__calendar .ajax__calendar_hover .ajax__calendar_title{color:#06c}.ajax__calendar .ajax__calendar_hover .ajax__calendar_today{color:#06c}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_day{background-color:#fff;border-color:#fff;color:#646464;cursor:default;text-decoration:line-through}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_month{background-color:#fff;border-color:#fff;color:#646464;cursor:default;text-decoration:line-through}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_year{background-color:#fff;border-color:#fff;color:#646464;cursor:default;text-decoration:line-through}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_today{cursor:default;visibility:hidden} \ No newline at end of file +.ajax__calendar *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.ajax__calendar_container{cursor:default;font-family:tahoma,verdana,helvetica;font-size:11px;padding:4px;text-align:center;width:170px}.ajax__calendar_body{height:139px;margin:auto;overflow:hidden;position:relative;width:170px}.ajax__calendar_days,.ajax__calendar_months,.ajax__calendar_years{height:139px;left:0;margin:auto;position:absolute;text-align:center;top:0;width:170px}.ajax__calendar_days table,.ajax__calendar_months table,.ajax__calendar_years table{border-spacing:0}.ajax__calendar_container TABLE,.ajax__calendar_container TD{font-size:11px;margin:0;padding:0}.ajax__calendar_header{height:20px;width:100%}.ajax__calendar_next,.ajax__calendar_prev{background-position:50% 50%;background-repeat:no-repeat;height:15px;width:15px;cursor:pointer}.ajax__calendar_prev{float:left}.ajax__calendar_next{float:right}.ajax__calendar_title{cursor:pointer;font-weight:700;margin-left:15px;margin-right:15px}.ajax__calendar_today{cursor:pointer;padding-top:3px}.ajax__calendar_dayname{height:17px;padding:0 2px;text-align:right;width:17px}.ajax__calendar_day{cursor:pointer;height:17px;padding:0 2px;text-align:right;width:18px}.ajax__calendar_month,.ajax__calendar_year{cursor:pointer;height:44px;overflow:hidden;text-align:center;width:40px}.ajax__calendar .ajax__calendar_container{background-color:#fff;border:1px solid #646464;color:#000}.ajax__calendar .ajax__calendar_footer{border-top:1px solid #f5f5f5}.ajax__calendar .ajax__calendar_dayname{border-bottom:1px solid #f5f5f5}.ajax__calendar .ajax__calendar_day,.ajax__calendar .ajax__calendar_month,.ajax__calendar .ajax__calendar_year{border:1px solid #fff}.ajax__calendar .ajax__calendar_active .ajax__calendar_day,.ajax__calendar .ajax__calendar_active .ajax__calendar_month,.ajax__calendar .ajax__calendar_active .ajax__calendar_year{background-color:#edf9ff;border-color:#06c;color:#06c}.ajax__calendar .ajax__calendar_today .ajax__calendar_day,.ajax__calendar .ajax__calendar_today .ajax__calendar_month,.ajax__calendar .ajax__calendar_today .ajax__calendar_year{border-color:#06c}.ajax__calendar .ajax__calendar_other .ajax__calendar_day,.ajax__calendar .ajax__calendar_other .ajax__calendar_year{background-color:#fff;border-color:#fff;color:#646464}.ajax__calendar .ajax__calendar_hover .ajax__calendar_day,.ajax__calendar .ajax__calendar_hover .ajax__calendar_month,.ajax__calendar .ajax__calendar_hover .ajax__calendar_year{background-color:#edf9ff;border-color:#daf2fc;color:#06c}.ajax__calendar .ajax__calendar_hover .ajax__calendar_title,.ajax__calendar .ajax__calendar_hover .ajax__calendar_today{color:#06c}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_day,.ajax__calendar .ajax__calendar_invalid .ajax__calendar_month,.ajax__calendar .ajax__calendar_invalid .ajax__calendar_year{background-color:#fff;border-color:#fff;color:#646464;cursor:default;text-decoration:line-through}.ajax__calendar .ajax__calendar_invalid .ajax__calendar_today{cursor:default;visibility:hidden} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/ColorPicker.css b/Content/AjaxControlToolkit/Styles/ColorPicker.css index ead2780ca..11fa40854 100644 --- a/Content/AjaxControlToolkit/Styles/ColorPicker.css +++ b/Content/AjaxControlToolkit/Styles/ColorPicker.css @@ -1,8 +1,7 @@ -.ajax__colorPicker_container { +.ajax__colorPicker_container { background-color: #fff; overflow: hidden; position: absolute; - width: 201px; } .ajax__colorPicker_container table { diff --git a/Content/AjaxControlToolkit/Styles/ColorPicker.min.css b/Content/AjaxControlToolkit/Styles/ColorPicker.min.css index 650628f2e..d6f02dd3a 100644 --- a/Content/AjaxControlToolkit/Styles/ColorPicker.min.css +++ b/Content/AjaxControlToolkit/Styles/ColorPicker.min.css @@ -1 +1 @@ -.ajax__colorPicker_container{background-color:#fff;overflow:hidden;position:absolute;width:201px}.ajax__colorPicker_container table{border:1px solid #646464;border-spacing:1px}.ajax__colorPicker_container table td{padding:0}.ajax__colorPicker_container table td div{cursor:crosshair;height:11px;width:10px} \ No newline at end of file +.ajax__colorPicker_container{background-color:#fff;overflow:hidden;position:absolute}.ajax__colorPicker_container table{border:1px solid #646464;border-spacing:1px}.ajax__colorPicker_container table td{padding:0}.ajax__colorPicker_container table td div{cursor:crosshair;height:11px;width:10px} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/ComboBox.min.css b/Content/AjaxControlToolkit/Styles/ComboBox.min.css index 42623e21c..2bec14e42 100644 --- a/Content/AjaxControlToolkit/Styles/ComboBox.min.css +++ b/Content/AjaxControlToolkit/Styles/ComboBox.min.css @@ -1 +1 @@ -.ajax__combobox_buttoncontainer button{background-position:center;background-repeat:no-repeat;border-color:ButtonFace;height:15px;width:15px}.ajax__combobox_itemlist{background-color:Window;border:solid 1px ButtonShadow;color:WindowText;cursor:default;list-style-type:none;margin:0;padding:0;text-align:left}.ajax__combobox_itemlist li{padding:0 3px 0 2px;white-space:nowrap;width:100%}.ajax__combobox_inputcontainer{border-spacing:0}.ajax__combobox_inputcontainer td{padding:0} \ No newline at end of file +.ajax__combobox_buttoncontainer button{background-position:center;background-repeat:no-repeat;border-color:ButtonFace;height:15px;width:15px}.ajax__combobox_itemlist{background-color:Window;border:1px solid ButtonShadow;color:WindowText;cursor:default;list-style-type:none;margin:0;padding:0;text-align:left}.ajax__combobox_itemlist li{padding:0 3px 0 2px;white-space:nowrap;width:100%}.ajax__combobox_inputcontainer{border-spacing:0}.ajax__combobox_inputcontainer td{padding:0} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/DropDown.min.css b/Content/AjaxControlToolkit/Styles/DropDown.min.css index 8b3265667..4a1b68783 100644 --- a/Content/AjaxControlToolkit/Styles/DropDown.min.css +++ b/Content/AjaxControlToolkit/Styles/DropDown.min.css @@ -1 +1 @@ -.ajax__dropdown_arrow{height:100%;overflow:hidden;position:absolute}.ajax__dropdown_panel{background:#fff;border:1px solid #868686}.ajax__dropdown_frame{border:1px solid #2353b2;cursor:pointer;font-size:1px;overflow:hidden;position:absolute;text-align:right}.ajax__dropdown_frame_line{cursor:pointer;font-size:1px;overflow:hidden;position:absolute}.ajax__dropdown_arrow_wrapper{left:50%;position:absolute;top:50%}.ajax__dropdown_arrow_wrapper img{left:-50%;margin-top:-50%;position:relative;top:-50%}@media screen and (-webkit-min-device-pixel-ratio:0){.ajax__dropdown_arrow_wrapper img{top:0}}.ajax__dropdown_arrow_image{background-position:50% 50%;background-repeat:no-repeat} \ No newline at end of file +.ajax__dropdown_frame,.ajax__dropdown_frame_line{cursor:pointer;font-size:1px;overflow:hidden;position:absolute}.ajax__dropdown_arrow{height:100%;overflow:hidden;position:absolute}.ajax__dropdown_panel{background:#fff;border:1px solid #868686}.ajax__dropdown_frame{border:1px solid #2353B2;text-align:right}.ajax__dropdown_arrow_wrapper{left:50%;position:absolute;top:50%}.ajax__dropdown_arrow_wrapper img{left:-50%;margin-top:-50%;position:relative;top:-50%}@media screen and (-webkit-min-device-pixel-ratio:0){.ajax__dropdown_arrow_wrapper img{top:0}}.ajax__dropdown_arrow_image{background-position:50% 50%;background-repeat:no-repeat} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditor.DesignPanel.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditor.DesignPanel.min.css index cc512d0fc..3ddd2dd2e 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditor.DesignPanel.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditor.DesignPanel.min.css @@ -1 +1 @@ -table{border:#000 1px dashed}td{border:#000 1px dashed}div{border:#00f 1px dashed;margin:0;padding:0}form{border:red 1px dashed}.spell_highlighted{background-color:blue;color:#ff0} \ No newline at end of file +table,td{border:1px dashed #000}div{border:1px dashed #00F;margin:0;padding:0}form{border:1px dashed red}.spell_highlighted{background-color:#00f;color:#ff0} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditor.Document.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditor.Document.min.css index cb38feb92..b63799f22 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditor.Document.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditor.Document.min.css @@ -1 +1 @@ -body{background-color:#fff;border-width:0;color:#404040;margin:0;padding:2px}body,table td{font-family:verdana,sans-serif;font-size:10pt}h1{font-size:24pt}h2{font-size:18pt}h3{font-size:14pt}h4{font-size:12pt}h5{font-size:10pt}h6{font-size:8pt} \ No newline at end of file +body{background-color:#fff;border-width:0;color:#404040;margin:0;padding:2px}body,table td{font-family:verdana,sans-serif;font-size:10pt}h1{font-size:24pt}h2{font-size:18pt}h3{font-size:14pt}h4{font-size:12pt}h5{font-size:10pt}h6{font-size:8pt} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditor.Editor.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditor.Editor.min.css index 98576c1a7..c313f9ea0 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditor.Editor.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditor.Editor.min.css @@ -1 +1 @@ -.ajax__htmleditor_editor_base .ajax__htmleditor_editor_container{border-collapse:separate;empty-cells:show;height:100%;width:100%}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_toptoolbar{cursor:text}.ajax__htmleditor_editor_base .ajax__htmleditor_toolbar_button{border-width:0;cursor:pointer;float:left;height:21px;padding:0;white-space:nowrap}.ajax__htmleditor_editor_base img.ajax__htmleditor_toolbar_button{width:23px}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button span.ajax__htmleditor_toolbar_selectlable{cursor:text;padding:0 2px;vertical-align:middle}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton{height:20px;margin:0;padding:0;vertical-align:middle;width:120px}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton option{vertical-align:middle}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_editpanel{height:100%}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_bottomtoolbar{cursor:text}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_container{border:1px solid #c2c2c2}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar{background-color:#f0f0f0;padding:0 2px 2px 2px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar .ajax__htmleditor_toolbar_button{background-color:#c2c2c2;margin:2px 0 0 0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar .ajax__htmleditor_toolbar_button_hover{background-color:#3c8aff}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button span.ajax__htmleditor_toolbar_selectlable{font-family:Arial;font-size:12px;font-weight:bold}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton{cursor:pointer;font-family:arial;font-size:12px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton option{font-size:12px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_editpanel{border-bottom:1px solid #c2c2c2;border-top:1px solid #c2c2c2;border-width:0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar{background-color:#f0f0f0;padding:0 0 2px 2px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar .ajax__htmleditor_toolbar_button{background-color:#c2c2c2;margin:0 4px 0 0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar .ajax__htmleditor_toolbar_button_hover{background-color:#3c8aff} \ No newline at end of file +.ajax__htmleditor_editor_base .ajax__htmleditor_editor_container{border-collapse:separate;empty-cells:show;height:100%;width:100%}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_toptoolbar{cursor:text}.ajax__htmleditor_editor_base .ajax__htmleditor_toolbar_button{border-width:0;cursor:pointer;float:left;height:21px;padding:0;white-space:nowrap}.ajax__htmleditor_editor_base img.ajax__htmleditor_toolbar_button{width:23px}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button span.ajax__htmleditor_toolbar_selectlable{cursor:text;padding:0 2px;vertical-align:middle}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton{height:20px;margin:0;padding:0;vertical-align:middle;width:120px}.ajax__htmleditor_editor_base div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton option{vertical-align:middle}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_editpanel{height:100%}.ajax__htmleditor_editor_base .ajax__htmleditor_editor_bottomtoolbar{cursor:text}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_container{border:1px solid #C2C2C2}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar{background-color:#F0F0F0;padding:0 2px 2px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar .ajax__htmleditor_toolbar_button{background-color:#C2C2C2;margin:2px 0 0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar .ajax__htmleditor_toolbar_button_hover{background-color:#3C8AFF}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button span.ajax__htmleditor_toolbar_selectlable{font-family:Arial;font-size:12px;font-weight:700}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton{cursor:pointer;font-family:arial;font-size:12px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_toptoolbar div.ajax__htmleditor_toolbar_button select.ajax__htmleditor_toolbar_selectbutton option{font-size:12px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_editpanel{border-bottom:1px solid #C2C2C2;border-top:1px solid #C2C2C2;border-width:0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar{background-color:#F0F0F0;padding:0 0 2px 2px}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar .ajax__htmleditor_toolbar_button{background-color:#C2C2C2;margin:0 4px 0 0}.ajax__htmleditor_editor_default .ajax__htmleditor_editor_bottomtoolbar .ajax__htmleditor_toolbar_button_hover{background-color:#3C8AFF} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditor.HtmlPanel.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditor.HtmlPanel.min.css index b637c81d0..616529854 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditor.HtmlPanel.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditor.HtmlPanel.min.css @@ -1 +1 @@ -.ajax__htmleditor_htmlpanel_default{background-color:#fff;border-width:0;color:#000;font-family:verdana,sans-serif;font-size:10pt;margin:0;overflow:auto;padding:0} \ No newline at end of file +.ajax__htmleditor_htmlpanel_default{background-color:#fff;border-width:0;color:#000;font-family:verdana,sans-serif;font-size:10pt;margin:0;overflow:auto;padding:0} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditor.Popups.AttachedTemplatePopup.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditor.Popups.AttachedTemplatePopup.min.css index dd2387076..4ba4ba737 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditor.Popups.AttachedTemplatePopup.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditor.Popups.AttachedTemplatePopup.min.css @@ -1 +1 @@ -body{background-color:#dfdfdf;color:#404040;margin:0;padding:0}html,body{border-width:0}div.ajax__htmleditor_attachedpopup_default{border:1px solid #b0b0b0;font-family:Arial;font-size:11px;padding:5px}.ajax__htmleditor_attachedpopup_default label,button,div,input,select,td,fieldset{font-family:Tahoma;font-size:11px}.ajax__htmleditor_attachedpopup_default input{height:14px}.ajax__htmleditor_attachedpopup_default img{border:none;margin:0;padding:0}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton{background-color:#c2c2c2;border-width:0;margin:0;padding:0;padding:1px}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton_hover{background-color:#3c8aff;cursor:pointer}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton table{border-width:0;width:100%}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{background-repeat:repeat-x;border-width:0;font-weight:bold;height:19px;overflow:hidden;text-align:center;vertical-align:middle;width:100%}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton_hover{cursor:pointer}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_confirmbutton{float:right;margin-left:5px;margin-top:5px;width:60px}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton_hover span{cursor:pointer} \ No newline at end of file +.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton_hover,.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton_hover span{cursor:pointer}body{background-color:#DFDFDF;color:#404040;margin:0;padding:0}body,html{border-width:0}div.ajax__htmleditor_attachedpopup_default{border:1px solid #B0B0B0;font-family:Arial;font-size:11px;padding:5px}.ajax__htmleditor_attachedpopup_default label,button,div,fieldset,input,select,td{font-family:Tahoma;font-size:11px}.ajax__htmleditor_attachedpopup_default input{height:14px}.ajax__htmleditor_attachedpopup_default img{border:none;margin:0;padding:0}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton{background-color:#C2C2C2;border-width:0;margin:0;padding:1px}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton_hover{background-color:#3C8AFF;cursor:pointer}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_boxbutton table{border-width:0;width:100%}.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{background-repeat:repeat-x;border-width:0;font-weight:700;height:19px;overflow:hidden;text-align:center;vertical-align:middle;width:100%}.ajax__htmleditor_attachedpopup_default div.ajax__htmleditor_popup_confirmbutton{float:right;margin-left:5px;margin-top:5px;width:60px} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.css b/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.css index a03471818..c2f6cfdf6 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.css @@ -19,7 +19,7 @@ padding: 2px 2px 2px 2px; } -.ajax__html_editor_extender_buttoncontainer2 { +.ajax__html_editor_extender_modebuttonscontainer { background-color: #F0F0F0; border-bottom: 1px solid #c2c2c2; border-left: 1px solid #c2c2c2; @@ -184,6 +184,10 @@ background-position: -391px 0; } +.ajax__html_editor_extender_CleanWord { + background-position: -529px 0; +} + .ajax__html_editor_extender_content { background-position: -920px 0; } @@ -192,6 +196,10 @@ background-position: -943px 0; } +.ajax__html_editor_extender_preview { + background-position: -984px 0; +} + .ajax__html_editor_extender_content:active { background-position: -920px -21px; } @@ -200,6 +208,10 @@ background-position: -943px -21px; } +.ajax__html_editor_extender_preview:active { + background-position: -984px -21px; +} + .ajax__html_editor_extender_separator { background-position: -966px 0; background-repeat:no-repeat; diff --git a/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.min.css b/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.min.css index b0a0b76dc..9c513e7ce 100644 --- a/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.min.css +++ b/Content/AjaxControlToolkit/Styles/HtmlEditorExtender.min.css @@ -1 +1 @@ -.ajax__html_editor_extender_button{background-color:#c2c2c2;background-repeat:no-repeat;border:none;cursor:pointer;display:block;float:left}.ajax__html_editor_extender_button:hover{background-color:#3c8aff}.ajax__html_editor_extender_buttoncontainer{background-color:#f0f0f0;border:1px solid #c2c2c2;border-bottom:none;overflow:auto;padding:2px 2px 2px 2px}.ajax__html_editor_extender_buttoncontainer2{background-color:#f0f0f0;border-bottom:1px solid #c2c2c2;border-left:1px solid #c2c2c2;border-right:1px solid #c2c2c2;overflow:auto;padding:2px 2px 2px 2px}.ajax__html_editor_extender_texteditor{border-color:#c2c2c2;border-style:solid;border-width:1px;padding:2px 2px 2px 2px}.ajax__html_editor_extender_footercontainer{background-color:#f0f0f0;border:1px solid #c2c2c2;height:10px;padding:2px 2px 2px 2px}.ajax__html_editor_extender_backcolorclass{float:left}.ajax__html_editor_extender_forecolorclass{float:left}.ajax__html_editor_extender_fontnameclass{float:left}.ajax__html_editor_extender_fontsizeclass{float:left}.ajax__html_editor_extender_Undo{background-position:-0 0}.ajax__html_editor_extender_Redo{background-position:-23px 0}.ajax__html_editor_extender_Bold{background-position:-46px 0}.ajax__html_editor_extender_Italic{background-position:-69px 0}.ajax__html_editor_extender_Underline{background-position:-92px 0}.ajax__html_editor_extender_StrikeThrough{background-position:-115px 0}.ajax__html_editor_extender_Subscript{background-position:-138px 0}.ajax__html_editor_extender_Superscript{background-position:-161px 0}.ajax__html_editor_extender_JustifyLeft{background-position:-230px 0}.ajax__html_editor_extender_JustifyRight{background-position:-276px 0}.ajax__html_editor_extender_JustifyCenter{background-position:-253px 0}.ajax__html_editor_extender_JustifyFull{background-position:-299px 0}.ajax__html_editor_extender_insertOrderedList{background-position:-345px 0}.ajax__html_editor_extender_insertUnorderedList{background-position:-368px 0}.ajax__html_editor_extender_createLink{background-position:-414px 0}.ajax__html_editor_extender_UnLink{background-position:-437px 0}.ajax__html_editor_extender_FormatBlock{background-position:-897px 0}.ajax__html_editor_extender_RemoveFormat{background-position:-460px 0}.ajax__html_editor_extender_InsertImage{background-position:-621px 0}.ajax__html_editor_extender_SelectAll{background-position:-644px 0}.ajax__html_editor_extender_UnSelect{background-position:-667px 0}.ajax__html_editor_extender_Delete{background-position:-690px 0}.ajax__html_editor_extender_Cut{background-position:-483px 0}.ajax__html_editor_extender_Copy{background-position:-713px 0}.ajax__html_editor_extender_Paste{background-position:-736px 0}.ajax__html_editor_extender_BackColor{background-position:-760px -1px;text-indent:-9999px}.ajax__html_editor_extender_ForeColor{background-position:-783px -1px;text-indent:-9999px}.ajax__html_editor_extender_FontName{background-position:-0 48px}.ajax__html_editor_extender_Indent{background-position:-575px 0}.ajax__html_editor_extender_Outdent{background-position:-552px 0}.ajax__html_editor_extender_InsertHorizontalRule{background-position:-391px 0}.ajax__html_editor_extender_content{background-position:-920px 0}.ajax__html_editor_extender_source{background-position:-943px 0}.ajax__html_editor_extender_content:active{background-position:-920px -21px}.ajax__html_editor_extender_source:active{background-position:-943px -21px}.ajax__html_editor_extender_separator{background-position:-966px 0;background-repeat:no-repeat;border:none;display:block;float:left;height:21px;width:13px}.ajax__html_editor_extender_popupDiv{background-color:#fff;border:1px solid #555;border-color:#000;box-shadow:0 4px 30px #000;height:290px;left:50%;margin-left:-250px;margin-top:-145px;overflow:auto;padding:10px;position:fixed;top:50%;width:500px}.ajax__html_editor_extender_popupCancelButton{border:1px solid #bbb;color:#464646;cursor:pointer;line-height:24px;margin-top:10px;text-align:center;width:75px}.ajax__html_editor_extender_popupCancelButton:hover{border:1px solid #666;color:#000} \ No newline at end of file +.ajax__html_editor_extender_button{background-color:#c2c2c2;background-repeat:no-repeat;border:none;cursor:pointer;display:block;float:left}.ajax__html_editor_extender_button:hover{background-color:#3c8aff}.ajax__html_editor_extender_buttoncontainer{background-color:#F0F0F0;border:1px solid #c2c2c2;border-bottom:none;overflow:auto;padding:2px}.ajax__html_editor_extender_modebuttonscontainer{background-color:#F0F0F0;border-bottom:1px solid #c2c2c2;border-left:1px solid #c2c2c2;border-right:1px solid #c2c2c2;overflow:auto;padding:2px}.ajax__html_editor_extender_texteditor{border-color:#c2c2c2;border-style:solid;border-width:1px;padding:2px}.ajax__html_editor_extender_footercontainer{background-color:#F0F0F0;border:1px solid #c2c2c2;height:10px;padding:2px}.ajax__html_editor_extender_backcolorclass,.ajax__html_editor_extender_fontnameclass,.ajax__html_editor_extender_fontsizeclass,.ajax__html_editor_extender_forecolorclass{float:left}.ajax__html_editor_extender_Undo{background-position:0 0}.ajax__html_editor_extender_Redo{background-position:-23px 0}.ajax__html_editor_extender_Bold{background-position:-46px 0}.ajax__html_editor_extender_Italic{background-position:-69px 0}.ajax__html_editor_extender_Underline{background-position:-92px 0}.ajax__html_editor_extender_StrikeThrough{background-position:-115px 0}.ajax__html_editor_extender_Subscript{background-position:-138px 0}.ajax__html_editor_extender_Superscript{background-position:-161px 0}.ajax__html_editor_extender_JustifyLeft{background-position:-230px 0}.ajax__html_editor_extender_JustifyRight{background-position:-276px 0}.ajax__html_editor_extender_JustifyCenter{background-position:-253px 0}.ajax__html_editor_extender_JustifyFull{background-position:-299px 0}.ajax__html_editor_extender_insertOrderedList{background-position:-345px 0}.ajax__html_editor_extender_insertUnorderedList{background-position:-368px 0}.ajax__html_editor_extender_createLink{background-position:-414px 0}.ajax__html_editor_extender_UnLink{background-position:-437px 0}.ajax__html_editor_extender_FormatBlock{background-position:-897px 0}.ajax__html_editor_extender_RemoveFormat{background-position:-460px 0}.ajax__html_editor_extender_InsertImage{background-position:-621px 0}.ajax__html_editor_extender_SelectAll{background-position:-644px 0}.ajax__html_editor_extender_UnSelect{background-position:-667px 0}.ajax__html_editor_extender_Delete{background-position:-690px 0}.ajax__html_editor_extender_Cut{background-position:-483px 0}.ajax__html_editor_extender_Copy{background-position:-713px 0}.ajax__html_editor_extender_Paste{background-position:-736px 0}.ajax__html_editor_extender_BackColor{background-position:-760px -1px;text-indent:-9999px}.ajax__html_editor_extender_ForeColor{background-position:-783px -1px;text-indent:-9999px}.ajax__html_editor_extender_FontName{background-position:0 48px}.ajax__html_editor_extender_Indent{background-position:-575px 0}.ajax__html_editor_extender_Outdent{background-position:-552px 0}.ajax__html_editor_extender_InsertHorizontalRule{background-position:-391px 0}.ajax__html_editor_extender_CleanWord{background-position:-529px 0}.ajax__html_editor_extender_content{background-position:-920px 0}.ajax__html_editor_extender_source{background-position:-943px 0}.ajax__html_editor_extender_preview{background-position:-984px 0}.ajax__html_editor_extender_content:active{background-position:-920px -21px}.ajax__html_editor_extender_source:active{background-position:-943px -21px}.ajax__html_editor_extender_preview:active{background-position:-984px -21px}.ajax__html_editor_extender_separator{background-position:-966px 0;background-repeat:no-repeat;border:none;display:block;float:left;height:21px;width:13px}.ajax__html_editor_extender_popupDiv{background-color:#fff;border:1px solid #000;box-shadow:0 4px 30px #000;height:290px;left:50%;margin-left:-250px;margin-top:-145px;overflow:auto;padding:10px;position:fixed;top:50%;width:500px}.ajax__html_editor_extender_popupCancelButton{border:1px solid #BBB;color:#464646;cursor:pointer;line-height:24px;margin-top:10px;text-align:center;width:75px}.ajax__html_editor_extender_popupCancelButton:hover{border:1px solid #666;color:#000} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/LineChart.min.css b/Content/AjaxControlToolkit/Styles/LineChart.min.css index ab79ad6c0..faeef863b 100644 --- a/Content/AjaxControlToolkit/Styles/LineChart.min.css +++ b/Content/AjaxControlToolkit/Styles/LineChart.min.css @@ -1 +1 @@ -#LinearGradient-Stop1{stop-color:#fff;stop-opacity:0}#LinearGradient-Stop2{stop-color:#fff;stop-opacity:.4}#LinearGradient-Stop3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#Legend1{fill:#ff6800;fill-opacity:1;stroke:#ff6800;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend2{fill:#a0a700;fill-opacity:1;stroke:#a0a700;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend3{fill:#711737;fill-opacity:1;stroke:#711737;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend4{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend5{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend6{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend7{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend8{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend9{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend10{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Dot1{fill:#ff6800;fill-opacity:1;stroke:#ff6800;stroke-opacity:1;stroke-width:2}#Dot2{fill:#a0a700;fill-opacity:1;stroke:#a0a700;stroke-opacity:1;stroke-width:2}#Dot3{fill:#711737;fill-opacity:1;stroke:#711737;stroke-opacity:1;stroke-width:2}#Dot4{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-opacity:1;stroke-width:2}#Dot5{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-opacity:1;stroke-width:2}#Dot6{fill:#690;fill-opacity:1;stroke:#690;stroke-opacity:1;stroke-width:2}#Dot7{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-opacity:1;stroke-width:2}#Dot8{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-opacity:1;stroke-width:2}#Dot9{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-opacity:1;stroke-width:2}#Dot10{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-opacity:1;stroke-width:2}#Line1{fill:none;fill-opacity:1;stroke:#ff6800;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line2{fill:none;fill-opacity:1;stroke:#a0a700;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line3{fill:none;fill-opacity:1;stroke:#711737;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line4{fill:none;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line5{fill:none;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line6{fill:none;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line7{fill:none;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line8{fill:none;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line9{fill:none;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line10{fill:none;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#SeriesAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#LegendText{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0} \ No newline at end of file +#Dot1,#Legend1{fill:#ff6800;stroke:#ff6800}#Dot2,#Legend2{fill:#a0a700;stroke:#a0a700}#Dot4,#Legend4{fill:#B85B3E;stroke:#B85B3E}#Dot5,#Legend5{fill:#4508A2;stroke:#4508A2}#Dot6,#Legend6{fill:#690;stroke:#690}#Dot7,#Legend7{fill:#6C1E83;stroke:#6C1E83}#Dot8,#Legend8{fill:#0E426C;stroke:#0E426C}#Dot9,#Legend9{fill:#A156AB;stroke:#A156AB}#Dot10,#Legend10{fill:#FFC652;stroke:#FFC652}#Dot1,#Legend1,#Line1{stroke:#ff6800}#Dot2,#Legend2,#Line2{stroke:#a0a700}#Dot3,#Legend3,#Line3{stroke:#711737}#Dot4,#Legend4,#Line4{stroke:#B85B3E}#Dot5,#Legend5,#Line5{stroke:#4508A2}#Dot6,#Legend6,#Line6{stroke:#690}#Dot7,#Legend7,#Line7{stroke:#6C1E83}#Dot8,#Legend8,#Line8{stroke:#0E426C}#Dot9,#Legend9,#Line9{stroke:#A156AB}#BaseLine,#HorizontalLine,#LegendArea,#Line1,#Line10,#Line2,#Line3,#Line5,#Line6,#Line7,#Line8,#Line9{fill:none}#Dot10,#Legend10,#Line10{stroke:#FFC652}#ChartBackGround,#LegendArea{stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#LinearGradient-Stop1,#LinearGradient-Stop3{stop-color:#fff;stop-opacity:0}#LinearGradient-Stop2{stop-color:#fff;stop-opacity:.4}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#HorizontalLine,#VerticalLine{fill-opacity:.5;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:1}#BaseLine{fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill-opacity:1}#Legend1,#Legend2{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend3{fill:#711737;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Legend10,#Legend4,#Legend5,#Legend6,#Legend7,#Legend8,#Legend9{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1}#Dot1,#Dot2{fill-opacity:1;stroke-opacity:1;stroke-width:2}#Dot3{fill:#711737;fill-opacity:1;stroke-opacity:1;stroke-width:2}#Dot10,#Dot4,#Dot5,#Dot6,#Dot7,#Dot8,#Dot9{fill-opacity:1;stroke-opacity:1;stroke-width:2}#Line1,#Line2,#Line3{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line4{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#Line10,#Line5,#Line6,#Line7,#Line8,#Line9{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:2}#LegendText,#SeriesAxis,#ValueAxis{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/MultiHandleSlider.min.css b/Content/AjaxControlToolkit/Styles/MultiHandleSlider.min.css index 5cfa4cf31..7facac3fe 100644 --- a/Content/AjaxControlToolkit/Styles/MultiHandleSlider.min.css +++ b/Content/AjaxControlToolkit/Styles/MultiHandleSlider.min.css @@ -1 +1 @@ -.ajax__multi_slider_default .outer_rail_vertical{background:repeat-y;height:150px;position:absolute;width:22px}.ajax__multi_slider_default .inner_rail_vertical{background:repeat-y;position:absolute;width:22px;z-index:100}.ajax__multi_slider_default .inner_rail_horizontal{background:repeat-x;height:22px;position:absolute;z-index:100}.ajax__multi_slider_default .outer_rail_horizontal{background:repeat-x;height:22px;position:absolute;width:150px}.ajax__multi_slider_default .handle_horizontal{background:no-repeat;height:22px;position:absolute;width:10px;z-index:200}.ajax__multi_slider_default .handle_horizontal_hover{background:no-repeat;height:22px;position:absolute;width:10px;z-index:200}.ajax__multi_slider_default .handle_horizontal_down{background:no-repeat;height:22px;position:absolute;width:10px;z-index:200}.ajax__multi_slider_default .handle_vertical{background:no-repeat;height:10px;position:absolute;width:22px;z-index:200}.ajax__multi_slider_default .handle_vertical_hover{background:no-repeat;height:10px;position:absolute;width:22px;z-index:200}.ajax__multi_slider_default .handle_vertical_down{background:no-repeat;height:10px;position:absolute;width:22px;z-index:200} \ No newline at end of file +.ajax__multi_slider_default .outer_rail_vertical{background:repeat-y;height:150px;position:absolute;width:22px}.ajax__multi_slider_default .inner_rail_vertical{background:repeat-y;position:absolute;width:22px;z-index:100}.ajax__multi_slider_default .inner_rail_horizontal{background:repeat-x;height:22px;position:absolute;z-index:100}.ajax__multi_slider_default .outer_rail_horizontal{background:repeat-x;height:22px;position:absolute;width:150px}.ajax__multi_slider_default .handle_horizontal,.ajax__multi_slider_default .handle_horizontal_down,.ajax__multi_slider_default .handle_horizontal_hover{background:no-repeat;height:22px;position:absolute;width:10px;z-index:200}.ajax__multi_slider_default .handle_vertical,.ajax__multi_slider_default .handle_vertical_down,.ajax__multi_slider_default .handle_vertical_hover{background:no-repeat;height:10px;position:absolute;width:22px;z-index:200} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/NumericUpDown.min.css b/Content/AjaxControlToolkit/Styles/NumericUpDown.min.css index 00cb917a3..39a272be2 100644 --- a/Content/AjaxControlToolkit/Styles/NumericUpDown.min.css +++ b/Content/AjaxControlToolkit/Styles/NumericUpDown.min.css @@ -1 +1 @@ -.ajax__numericupdown_container{border-spacing:0} \ No newline at end of file +.ajax__numericupdown_container{border-spacing:0} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/PieChart.min.css b/Content/AjaxControlToolkit/Styles/PieChart.min.css index 52d2343b9..501473bb1 100644 --- a/Content/AjaxControlToolkit/Styles/PieChart.min.css +++ b/Content/AjaxControlToolkit/Styles/PieChart.min.css @@ -1 +1 @@ -#RadialGradient1{stop-color:#fff;stop-opacity:.1}#RadialGradient2{stop-color:#fff;stop-opacity:.3}#RadialGradient3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#Legend1{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend2{fill:#d08ad9;fill-opacity:1;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend3{fill:#6586a7;fill-opacity:1;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend4{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend5{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend6{fill:#903;fill-opacity:1;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend7{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend8{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend9{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Legend10{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Segment1{fill:#6c1e83;fill-opacity:1;stroke:#6c1e83;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:0}#Segment2{fill:#d08ad9;fill-opacity:1;stroke:#d08ad9;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:0}#Segment3{fill:#6586a7;fill-opacity:1;stroke:#6586a7;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:0}#Segment4{fill:#0e426c;fill-opacity:1;stroke:#0e426c;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment5{fill:#a156ab;fill-opacity:1;stroke:#a156ab;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment6{fill:#903;fill-opacity:1;stroke:#903;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment7{fill:#690;fill-opacity:1;stroke:#690;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment8{fill:#b85b3e;fill-opacity:1;stroke:#b85b3e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment9{fill:#ffc652;fill-opacity:1;stroke:#ffc652;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#Segment10{fill:#4508a2;fill-opacity:1;stroke:#4508a2;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#LegendText{fill:#232323;fill-opacity:1;font-family:Arial,Helvetica,sans-serif;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0} \ No newline at end of file +#Legend1,#Segment1{fill:#6C1E83;stroke:#6C1E83}#Legend2,#Segment2{fill:#D08AD9;stroke:#D08AD9}#Legend3,#Segment3{fill:#6586A7;stroke:#6586A7}#Legend4,#Segment4{fill:#0E426C;stroke:#0E426C}#Legend5,#Segment5{fill:#A156AB;stroke:#A156AB}#Legend6,#Segment6{fill:#903;stroke:#903}#Legend7,#Segment7{fill:#690;stroke:#690}#Legend8,#Segment8{fill:#B85B3E;stroke:#B85B3E}#Legend9,#Segment9{fill:#FFC652;stroke:#FFC652}#Legend10,#Segment10{fill:#4508A2;stroke:#4508A2}#ChartTitle,#LegendText{font-family:Arial,Helvetica,sans-serif}#ChartBackGround,#LegendArea{stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:0}#RadialGradient1{stop-color:#fff;stop-opacity:.1}#RadialGradient2{stop-color:#fff;stop-opacity:.3}#RadialGradient3{stop-color:#fff;stop-opacity:0}#ChartTitle{fill:#711737;fill-opacity:1;font-size:16px}#VerticalLine{fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#HorizontalLine{fill:none;fill-opacity:1;stroke:#dfdfdf;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#BaseLine{fill:none;fill-opacity:1;stroke:#8e8e8e;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:1;stroke-width:1}#LegendArea{fill:none;fill-opacity:1}#Legend1,#Legend10,#Legend2,#Legend3,#Legend4,#Legend5,#Legend6,#Legend7,#Legend8,#Legend9{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5}#Segment1,#Segment2,#Segment3{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:0}#Segment10,#Segment4,#Segment5,#Segment6,#Segment7,#Segment8,#Segment9{fill-opacity:1;stroke-linecap:square;stroke-linejoin:round;stroke-opacity:.5;stroke-width:.5}#LegendText{fill:#232323;fill-opacity:1;font-size:11px}#ChartBackGround{fill:#fff;fill-opacity:1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/SlideShow.min.css b/Content/AjaxControlToolkit/Styles/SlideShow.min.css index c03617e3d..ef7ac2c77 100644 --- a/Content/AjaxControlToolkit/Styles/SlideShow.min.css +++ b/Content/AjaxControlToolkit/Styles/SlideShow.min.css @@ -1 +1 @@ -.visible{opacity:1}.invisible{opacity:0}.ajax__slide_show_fadeOut{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;-ms-transition:all 1s ease-in-out;opacity:0;transition:all 1s ease-in-out}.ajax__slide_show_fadeIn{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;-ms-transition:all 1s ease-in-out;opacity:1;transition:all 1s ease-in-out}.ajax__slide_show_Animation{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;transition:all 1s ease-in-out}.ajax__slide_show_scaleX{-webkit-transform:scale(0,1);-moz-transform:scale(0,1);-o-transform:scale(0,1);-ms-transform:scale(0,1);transform:scale(0,1)}.ajax__slide_show_scaleY{-webkit-transform:scale(1,0);-moz-transform:scale(1,0);-o-transform:scale(1,0);-ms-transform:scale(1,0);transform:scale(1,0)}.ajax__slide_show_zoomIn{opacity:1;-webkit-transform:scale(1,1);-webkit-transform-origin:center right;-moz-transform:scale(1,1);-moz-transform-origin:center right;-o-transform:scale(1,1);-o-transform-origin:center right;-ms-transform:scale(1,1);transform:scale(1,1);-ms-transform-origin:center right;transform-origin:center right}.ajax__slide_show_zoomOut{-webkit-transform:scale(0,0);-webkit-transform-origin:center left;-moz-transform:scale(0,0);-moz-transform-origin:center left;-o-transform:scale(0,0);-o-transform-origin:center left;-ms-transform:scale(0,0);transform:scale(0,0);-ms-transform-origin:center left;transform-origin:center left}.ajax__slide_show_rotate{filter:alpha(opacity=0);-webkit-transform:rotate(360deg) scale(0,0);-moz-transform:rotate(360deg) scale(0,0);-o-transform:rotate(360deg) scale(0,0);-ms-transform:rotate(360deg) scale(0,0);transform:rotate(360deg) scale(0,0)}.ajax__slide_show_container{overflow:hidden;position:relative}.ajax__slide_show_slideAnimation{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;transition:all 1s ease-in-out}.ajax__slide_show_sliderUL{margin:0;padding:0;position:relative} \ No newline at end of file +.visible{opacity:1}.invisible{opacity:0}.ajax__slide_show_fadeOut{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;-ms-transition:all 1s ease-in-out;opacity:0;transition:all 1s ease-in-out}.ajax__slide_show_Animation,.ajax__slide_show_fadeIn{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out}.ajax__slide_show_fadeIn{-ms-transition:all 1s ease-in-out;opacity:1;transition:all 1s ease-in-out}.ajax__slide_show_Animation{transition:all 1s ease-in-out}.ajax__slide_show_scaleX{-webkit-transform:scale(0,1);-moz-transform:scale(0,1);-o-transform:scale(0,1);-ms-transform:scale(0,1);transform:scale(0,1)}.ajax__slide_show_scaleY{-webkit-transform:scale(1,0);-moz-transform:scale(1,0);-o-transform:scale(1,0);-ms-transform:scale(1,0);transform:scale(1,0)}.ajax__slide_show_zoomIn{opacity:1;-webkit-transform:scale(1,1);-webkit-transform-origin:center right;-moz-transform:scale(1,1);-moz-transform-origin:center right;-o-transform:scale(1,1);-o-transform-origin:center right;-ms-transform:scale(1,1);transform:scale(1,1);-ms-transform-origin:center right;transform-origin:center right}.ajax__slide_show_zoomOut{-webkit-transform:scale(0,0);-webkit-transform-origin:center left;-moz-transform:scale(0,0);-moz-transform-origin:center left;-o-transform:scale(0,0);-o-transform-origin:center left;-ms-transform:scale(0,0);transform:scale(0,0);-ms-transform-origin:center left;transform-origin:center left}.ajax__slide_show_rotate{filter:alpha(opacity=0);-webkit-transform:rotate(360deg) scale(0,0);-moz-transform:rotate(360deg) scale(0,0);-o-transform:rotate(360deg) scale(0,0);-ms-transform:rotate(360deg) scale(0,0);transform:rotate(360deg) scale(0,0)}.ajax__slide_show_container{overflow:hidden;position:relative}.ajax__slide_show_slideAnimation{-webkit-transition:all 1s ease-in-out;-moz-transition:all 1s ease-in-out;-o-transition:all 1s ease-in-out;transition:all 1s ease-in-out}.ajax__slide_show_sliderUL{margin:0;padding:0;position:relative} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/Slider.min.css b/Content/AjaxControlToolkit/Styles/Slider.min.css index e717666c1..88f6c7387 100644 --- a/Content/AjaxControlToolkit/Styles/Slider.min.css +++ b/Content/AjaxControlToolkit/Styles/Slider.min.css @@ -1 +1 @@ -.ajax__slider_h_rail{background-repeat:repeat-x;height:22px;position:relative;width:150px}.ajax__slider_h_handle{height:22px;position:absolute;width:10px}.ajax__slider_v_rail{background-repeat:repeat-y;height:150px;position:relative;width:22px}.ajax__slider_v_handle{height:10px;position:absolute;width:22px}.ajax__slider_v_handle img{display:block} \ No newline at end of file +.ajax__slider_h_rail{background-repeat:repeat-x;height:22px;position:relative;width:150px}.ajax__slider_h_handle{height:22px;position:absolute;width:10px}.ajax__slider_v_rail{background-repeat:repeat-y;height:150px;position:relative;width:22px}.ajax__slider_v_handle{height:10px;position:absolute;width:22px}.ajax__slider_v_handle img{display:block} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/Tabs.css b/Content/AjaxControlToolkit/Styles/Tabs.css index 628e0cd98..9c7bb8a3c 100644 --- a/Content/AjaxControlToolkit/Styles/Tabs.css +++ b/Content/AjaxControlToolkit/Styles/Tabs.css @@ -1,23 +1,28 @@ /* default layout */ +.ajax__tab_default .ajax__tab { + display: block; + float: left; + height: 21px; + margin-top: 1px; +} + .ajax__tab_default .ajax__tab_header { white-space: normal !important; } .ajax__tab_default .ajax__tab_outer { display: inline-block; - display: -moz-inline-box; } .ajax__tab_default .ajax__tab_inner { display: inline-block; - display: -moz-inline-box; } .ajax__tab_default .ajax__tab_tab { display: inline-block; - display: -moz-inline-box; overflow: hidden; text-align: center; + outline: none; } .ajax__tab_xp .ajax__tab_disabled { @@ -31,7 +36,14 @@ background-repeat: repeat-x; font-family: verdana,tahoma,helvetica; font-size: 11px; - height: 21px; +} + +.ajax__tab_xp .ajax__tab_header:before, .ajax__tab_xp .ajax__tab_header:after { + content: ""; + display: table; +} +.ajax__tab_xp .ajax__tab_header:after { + clear: both; } .ajax__tab_xp .ajax__tab_header .ajax__tab_outer { @@ -86,10 +98,15 @@ border: 1px solid #999999; border-top: 0; font-family: verdana,tahoma,helvetica; + font-size: 10pt; padding: 8px; } /* xp theme vertical left */ +.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab { + float: none; +} + .ajax__tab_xp .ajax__tab_header_verticalleft { background-position: right; background-repeat: repeat-y; diff --git a/Content/AjaxControlToolkit/Styles/Tabs.min.css b/Content/AjaxControlToolkit/Styles/Tabs.min.css index 7eaf91406..6005832a6 100644 --- a/Content/AjaxControlToolkit/Styles/Tabs.min.css +++ b/Content/AjaxControlToolkit/Styles/Tabs.min.css @@ -1 +1 @@ -.ajax__tab_default .ajax__tab_header{white-space:normal !important}.ajax__tab_default .ajax__tab_outer{display:inline-block;display:-moz-inline-box}.ajax__tab_default .ajax__tab_inner{display:inline-block;display:-moz-inline-box}.ajax__tab_default .ajax__tab_tab{display:inline-block;display:-moz-inline-box;overflow:hidden;text-align:center}.ajax__tab_xp .ajax__tab_disabled{color:#a0a0a0;cursor:default}.ajax__tab_xp .ajax__tab_header{background-position:bottom;background-repeat:repeat-x;font-family:verdana,tahoma,helvetica;font-size:11px;height:21px}.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body{background-color:#fff;border:1px solid #999;border-top:0;font-family:verdana,tahoma,helvetica;font-size:12px;padding:8px}.ajax__tab_xp .ajax__tab_header_verticalleft{background-position:right;background-repeat:repeat-y;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active:not(:first-child){margin-top:1px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_verticalleft{background-color:#fff;border:1px solid #999;border-left:0;font-family:verdana,tahoma,helvetica;font-size:10pt;padding:8px}.ajax__tab_xp .ajax__tab_header_verticalright{background-position:left;background-repeat:repeat-y;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active{margin-top:1px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_verticalright{background-color:#fff;border:1px solid #999;border-right:0;font-family:verdana,tahoma,helvetica;font-size:10pt;padding:8px}.ajax__tab_xp .ajax__tab_header_bottom{background-position:top;background-repeat:repeat-x;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{background-repeat:repeat-x;height:17px;margin:0;padding:0 4px 4px 4px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_bottom{background-color:#fff;border:1px solid #999;border-bottom:0;font-family:verdana,tahoma,helvetica;font-size:10pt;padding:8px}.ajax__scroll_horiz{overflow-x:scroll}.ajax__scroll_vert{overflow-y:scroll}.ajax__scroll_both{overflow:scroll}.ajax__scroll_auto{overflow:auto}.ajax__scroll_none{overflow:hidden}.ajax__tab_plain .ajax__tab_outer{border:2px solid #999;text-align:center;vertical-align:middle}.ajax__tab_plain .ajax__tab_inner{text-align:center;vertical-align:middle}.ajax__tab_plain .ajax__tab_body{text-align:center;vertical-align:middle}.ajax__tab_plain .ajax__tab_header{text-align:center;vertical-align:middle}.ajax__tab_plain .ajax__tab_active .ajax__tab_outer{background:#ffffe1} \ No newline at end of file +.ajax__tab_xp .ajax__tab_body,.ajax__tab_xp .ajax__tab_body_bottom,.ajax__tab_xp .ajax__tab_body_verticalleft,.ajax__tab_xp .ajax__tab_body_verticalright{background-color:#fff;font-family:verdana,tahoma,helvetica}.ajax__tab_plain .ajax__tab_body,.ajax__tab_plain .ajax__tab_header,.ajax__tab_plain .ajax__tab_inner,.ajax__tab_plain .ajax__tab_outer{text-align:center;vertical-align:middle}.ajax__tab_default .ajax__tab{display:block;float:left;height:21px;margin-top:1px}.ajax__tab_default .ajax__tab_header{white-space:normal!important}.ajax__tab_default .ajax__tab_inner,.ajax__tab_default .ajax__tab_outer{display:inline-block}.ajax__tab_default .ajax__tab_tab{display:inline-block;overflow:hidden;text-align:center;outline:0}.ajax__tab_xp .ajax__tab_disabled{color:#A0A0A0;cursor:default}.ajax__tab_xp .ajax__tab_header{background-position:bottom;background-repeat:repeat-x;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header:after,.ajax__tab_xp .ajax__tab_header:before{content:"";display:table}.ajax__tab_xp .ajax__tab_header:after{clear:both}.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body{border:1px solid #999;border-top:0;font-size:10pt;padding:8px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab{float:none}.ajax__tab_xp .ajax__tab_header_verticalleft{background-position:right;background-repeat:repeat-y;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active:not(:first-child){margin-top:1px}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_verticalleft{border:1px solid #999;border-left:0;font-size:10pt;padding:8px}.ajax__tab_xp .ajax__tab_header_verticalright{background-position:left;background-repeat:repeat-y;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{background-repeat:repeat-x;margin:0;padding:4px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active{margin-top:1px}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_verticalright{border:1px solid #999;border-right:0;font-size:10pt;padding:8px}.ajax__tab_xp .ajax__tab_header_bottom{background-position:top;background-repeat:repeat-x;font-family:verdana,tahoma,helvetica;font-size:11px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{background-position:right;background-repeat:no-repeat;height:21px;padding-right:4px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{background-repeat:no-repeat;padding-left:3px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{background-repeat:repeat-x;height:17px;margin:0;padding:0 4px 4px}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{background-position:right;background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{background-repeat:no-repeat;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{background-repeat:repeat-x;cursor:pointer}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{background-position:right;background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{background-repeat:no-repeat}.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{background-repeat:repeat-x}.ajax__tab_xp .ajax__tab_body_bottom{border:1px solid #999;border-bottom:0;font-size:10pt;padding:8px}.ajax__scroll_horiz{overflow-x:scroll}.ajax__scroll_vert{overflow-y:scroll}.ajax__scroll_both{overflow:scroll}.ajax__scroll_auto{overflow:auto}.ajax__scroll_none{overflow:hidden}.ajax__tab_plain .ajax__tab_outer{border:2px solid #999}.ajax__tab_plain .ajax__tab_active .ajax__tab_outer{background:#FFFFE1} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/Twitter.min.css b/Content/AjaxControlToolkit/Styles/Twitter.min.css index 1328bb846..3ab385d7a 100644 --- a/Content/AjaxControlToolkit/Styles/Twitter.min.css +++ b/Content/AjaxControlToolkit/Styles/Twitter.min.css @@ -1 +1 @@ -.ajax__twitter{background-color:gray;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#fff;font-family:"lucida grande",lucida,tahoma,helvetica,arial,sans-serif;font-size:12px;width:300px}.ajax__twitter_itemlist{list-style-position:inside;list-style-type:none;margin:0;padding:0;text-indent:0;width:100%}.ajax__twitter_itemlist li{background-color:#000;border-bottom:1px dotted #fff;clear:both;margin:0;padding:10px}.ajax__twitter_itemlist li div{display:block;margin-left:35px}.ajax__twitter_itemlist li div a{color:#4aed05;text-decoration:none !important}.ajax__twitter_itemlist li div a:hover{text-decoration:underline !important}.ajax__twitter_itemlist li img{float:left;height:30px;margin-right:5px;width:30px}.ajax__twitter_header{min-height:34px;padding:10px;position:relative}.ajax__twitter_header img{float:left;height:34px;margin-right:5px;width:34px}.ajax__twitter_header h4{font-size:18px;font-weight:normal;margin:0;padding:0}.ajax__twitter_header h3{font-size:11px;font-weight:normal;margin:0;padding:0}.ajax__twitter_createat{color:#4aed05;font-size:10px}.ajax__twitter_footer{height:36px}.ajax__twitter_footer img{float:right;margin-right:10px;margin-top:6px} \ No newline at end of file +.ajax__twitter{background-color:Gray;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#fff;font-family:"lucida grande",lucida,tahoma,helvetica,arial,sans-serif;font-size:12px;width:300px}.ajax__twitter_itemlist{list-style-position:inside;list-style-type:none;margin:0;padding:0;text-indent:0;width:100%}.ajax__twitter_itemlist li{background-color:#000;border-bottom:1px dotted #fff;clear:both;margin:0;padding:10px}.ajax__twitter_itemlist li div{display:block;margin-left:35px}.ajax__twitter_itemlist li div a{color:#4AED05;text-decoration:none!important}.ajax__twitter_itemlist li div a:hover{text-decoration:underline!important}.ajax__twitter_itemlist li img{float:left;height:30px;margin-right:5px;width:30px}.ajax__twitter_header{min-height:34px;padding:10px;position:relative}.ajax__twitter_header img{float:left;height:34px;margin-right:5px;width:34px}.ajax__twitter_header h4{font-size:18px;font-weight:400;margin:0;padding:0}.ajax__twitter_header h3{font-size:11px;font-weight:400;margin:0;padding:0}.ajax__twitter_createat{color:#4AED05;font-size:10px}.ajax__twitter_footer{height:36px}.ajax__twitter_footer img{float:right;margin-right:10px;margin-top:6px} \ No newline at end of file diff --git a/Content/AjaxControlToolkit/Styles/ValidatorCallout.min.css b/Content/AjaxControlToolkit/Styles/ValidatorCallout.min.css index e40b507dd..ab086ce52 100644 --- a/Content/AjaxControlToolkit/Styles/ValidatorCallout.min.css +++ b/Content/AjaxControlToolkit/Styles/ValidatorCallout.min.css @@ -1 +1 @@ -.ajax__validatorcallout div,.ajax__validatorcallout td{background-color:#fffacd;border:solid 1px #000}.ajax__validatorcallout_popup_table{background-color:transparent;border:none 0;margin:0;padding:0;border-spacing:0}.ajax__validatorcallout_popup_table_row{background-color:transparent;height:100%;margin:0;padding:0;vertical-align:top}.ajax__validatorcallout_callout_cell{background-color:transparent !important;border:none !important;height:100%;margin:0;padding:0;text-align:right;vertical-align:top;width:20px}.ajax__validatorcallout_callout_table{background-color:transparent;border:none 0;height:100%;margin:0;padding:0;border-spacing:0}.ajax__validatorcallout_callout_table_row{background-color:transparent;margin:0;padding:0}.ajax__validatorcallout_callout_arrow_cell{background-color:transparent !important;border:none !important;font-size:1px;margin:0;padding:8px 0 0 0;text-align:right;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell .ajax__validatorcallout_innerdiv{background-color:transparent !important;border-bottom:none !important;border-left:none !important;border-right:none !important;font-size:1px;left:1px;margin:0;padding:0;position:relative;width:15px}.ajax__validatorcallout_callout_arrow_cell .ajax__validatorcallout_innerdiv div{border-bottom:none !important;border-right:none !important;border-top:none !important;height:1px;margin:0 0 0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_leftpos{background-color:transparent !important;border:none !important;font-size:1px;margin:0;padding:8px 0 0 0;text-align:left;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_leftpos .ajax__validatorcallout_innerdiv{background-color:transparent !important;border-bottom:none !important;border-left:none !important;border-right:none !important;font-size:1px;left:-1px;margin:0;padding:0;position:relative;width:15px}.ajax__validatorcallout_callout_arrow_cell_leftpos .ajax__validatorcallout_innerdiv div{border-bottom:none !important;border-left:none !important;border-top:none !important;height:1px;margin:0 auto 0 0;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos,.ajax__validatorcallout_callout_arrow_cell_topleftpos{background-color:transparent !important;border:none !important;font-size:1px;margin:0;padding:0 0 0 8px;text-align:left;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_bottomrightpos,.ajax__validatorcallout_callout_arrow_cell_toprightpos{background-color:transparent !important;border:none !important;font-size:1px;margin:0;padding:0 8px 0 0;text-align:right;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv{background-color:transparent !important;border:none !important;bottom:-1px;font-size:1px;margin:0;padding:0;position:relative;width:30px}.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv{background-color:transparent !important;border:none !important;bottom:-1px;font-size:1px;margin:0 0 0 auto;padding:0;position:relative;width:30px}.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv{background-color:transparent !important;border:none !important;font-size:1px;margin:0;padding:0;position:relative;top:-1px;width:30px}.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv{background-color:transparent !important;border:none !important;font-size:1px;margin:0 0 0 auto;padding:0;position:relative;top:-1px;width:30px}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv div{border-bottom:none !important;border-top:none !important;height:1px;margin:0 auto 0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv .arrowpixel{background-color:transparent !important;border-bottom-style:solid !important;border-bottom-width:1px !important;border-left:none !important;border-right:none !important;border-top:none !important;height:0;margin:0 auto 0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_error_message_cell{border-left:none !important;border-right:none !important;font-family:Verdana;font-size:10px;padding:5px;width:100%}.ajax__validatorcallout_icon_cell{border-right:none !important;margin:0;padding:5px;width:20px}.ajax__validatorcallout_close_button_cell{border-left:none !important;margin:0;padding:0;text-align:right;vertical-align:top}.ajax__validatorcallout_close_button_cell .ajax__validatorcallout_innerdiv{border:none !important;cursor:pointer;padding:2px;text-align:center;width:10px} \ No newline at end of file +.ajax__validatorcallout div,.ajax__validatorcallout td{background-color:#fffacd;border:1px solid #000}.ajax__validatorcallout_popup_table{background-color:transparent;border:0;margin:0;padding:0;border-spacing:0}.ajax__validatorcallout_popup_table_row{background-color:transparent;height:100%;margin:0;padding:0;vertical-align:top}.ajax__validatorcallout_callout_cell{background-color:transparent!important;border:none!important;height:100%;margin:0;padding:0;text-align:right;vertical-align:top;width:20px}.ajax__validatorcallout_callout_table,.ajax__validatorcallout_callout_table_row{background-color:transparent;padding:0;margin:0}.ajax__validatorcallout_callout_table{border:0;height:100%;border-spacing:0}.ajax__validatorcallout_callout_arrow_cell{background-color:transparent!important;border:none!important;font-size:1px;margin:0;padding:8px 0 0;text-align:right;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell .ajax__validatorcallout_innerdiv{background-color:transparent!important;border-bottom:none!important;border-left:none!important;border-right:none!important;font-size:1px;left:1px;margin:0;padding:0;position:relative;width:15px}.ajax__validatorcallout_callout_arrow_cell .ajax__validatorcallout_innerdiv div{border-bottom:none!important;border-right:none!important;border-top:none!important;height:1px;margin:0 0 0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_leftpos{background-color:transparent!important;border:none!important;font-size:1px;margin:0;padding:8px 0 0;text-align:left;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_leftpos .ajax__validatorcallout_innerdiv{background-color:transparent!important;border-bottom:none!important;border-left:none!important;border-right:none!important;font-size:1px;left:-1px;margin:0;padding:0;position:relative;width:15px}.ajax__validatorcallout_callout_arrow_cell_leftpos .ajax__validatorcallout_innerdiv div{border-bottom:none!important;border-left:none!important;border-top:none!important;height:1px;margin:0 auto 0 0;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos,.ajax__validatorcallout_callout_arrow_cell_topleftpos{background-color:transparent!important;border:none!important;font-size:1px;margin:0;padding:0 0 0 8px;text-align:left;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_bottomrightpos,.ajax__validatorcallout_callout_arrow_cell_toprightpos{background-color:transparent!important;border:none!important;font-size:1px;margin:0;padding:0 8px 0 0;text-align:right;vertical-align:top}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv{background-color:transparent!important;border:none!important;bottom:-1px;font-size:1px;margin:0;padding:0;position:relative;width:30px}.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv{background-color:transparent!important;border:none!important;bottom:-1px;font-size:1px;margin:0 0 0 auto;padding:0;position:relative;width:30px}.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv{background-color:transparent!important;border:none!important;font-size:1px;margin:0;padding:0;position:relative;top:-1px;width:30px}.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv{background-color:transparent!important;border:none!important;font-size:1px;margin:0 0 0 auto;padding:0;position:relative;top:-1px;width:30px}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv div,.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv div{border-bottom:none!important;border-top:none!important;height:1px;margin:0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_callout_arrow_cell_bottomleftpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_bottomrightpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_topleftpos .ajax__validatorcallout_innerdiv .arrowpixel,.ajax__validatorcallout_callout_arrow_cell_toprightpos .ajax__validatorcallout_innerdiv .arrowpixel{background-color:transparent!important;border-bottom-style:solid!important;border-bottom-width:1px!important;border-left:none!important;border-right:none!important;border-top:none!important;height:0;margin:0 auto;overflow:hidden;padding:0}.ajax__validatorcallout_error_message_cell{border-left:none!important;border-right:none!important;font-family:Verdana;font-size:10px;padding:5px;width:100%}.ajax__validatorcallout_icon_cell{border-right:none!important;margin:0;padding:5px;width:20px}.ajax__validatorcallout_close_button_cell{border-left:none!important;margin:0;padding:0;text-align:right;vertical-align:top}.ajax__validatorcallout_close_button_cell .ajax__validatorcallout_innerdiv{border:none!important;cursor:pointer;padding:2px;text-align:center;width:10px} \ No newline at end of file diff --git a/Inventarios/RecepcionUsados.aspx b/Inventarios/RecepcionUsados.aspx index e985f6960..86620b160 100644 --- a/Inventarios/RecepcionUsados.aspx +++ b/Inventarios/RecepcionUsados.aspx @@ -428,7 +428,7 @@
- +
diff --git a/Inventarios/RepEntregaAlmacenRuta.aspx.cs b/Inventarios/RepEntregaAlmacenRuta.aspx.cs index 3b24611ad..b459da736 100644 --- a/Inventarios/RepEntregaAlmacenRuta.aspx.cs +++ b/Inventarios/RepEntregaAlmacenRuta.aspx.cs @@ -542,17 +542,12 @@ public partial class General_RepEntregaAlmacenRuta : ClsPaginas { if (ObjGenerales.CancelarTimbreTimbrado(CveTimbre, NowADS(), CvePACCancelacion, ObjCancelacion.CancelacionAcuse, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)) - { + { //regenero el timbre - if (TimbreTipoDocto == "Tra") + if (TimbreTipoDocto.Contiene("Ent","Tra")) { - CveTimbre = ObjGenerales.AddGralTimbre("Tra", CveSubProyecto, NowADS(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEntregaAlmacen: CveEntregaAlmacen, AplicaCP: true); + CveTimbre = ObjGenerales.AddGralTimbre(TimbreTipoDocto, CveSubProyecto, NowADS(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEntregaAlmacen: CveEntregaAlmacen, AplicaCP: true); } - ////regenero el timbre - //if (TimbreTipoDocto == "Ent") - //{ - // CveTimbre = ObjGenerales.AddGralTimbre("Ent", CveSubProyecto, NowADS(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEntregaAlmacen: CveEntregaAlmacen, AplicaCP: true); - //} ProcesoOK = true; } } diff --git a/Scripts/AjaxControlToolkit/Debug/Accordion.debug.js b/Scripts/AjaxControlToolkit/Debug/Accordion.debug.js index 374a56b0d..525e27f2c 100644 --- a/Scripts/AjaxControlToolkit/Debug/Accordion.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Accordion.debug.js @@ -208,29 +208,25 @@ Sys.Extended.UI.AccordionBehavior = function(element) { // has content at div 2i+1). Sys.Extended.UI.AccordionBehavior.initializeBase(this, [element]); + // The _selectedIndex variable is used to track the currently visible content + // pane. It is persisted via ClientState so that it can be restored on PostBack. + // If 0 <= _selectedIndex < _panes.Length is not true, then no pane is selected + // (and they all appear collapsed). While any index outside the bounds of the + // _panes array indicates that no pane is selected, we don't automatically set + // the value to a sentinel like -1 (especially on the server) because it's + // possible for additional panes to be added at any time. We abstract this + // problem using the getPane() function which returns the selected pane when + // it's called with no arguments (and returns null when the current selected + // index is invalid). + /// - /// The _selectedIndex variable is used to track the currently visible content - /// pane. It is persisted via ClientState so that it can be restored on PostBack. - /// If 0 <= _selectedIndex < _panes.Length is not true, then no pane is selected - /// (and they all appear collapsed). While any index outside the bounds of the - /// _panes array indicates that no pane is selected, we don't automatically set - /// the value to a sentinel like -1 (especially on the server) because it's - /// possible for additional panes to be added at any time. We abstract this - /// problem using the getPane() function which returns the selected pane when - /// it's called with no arguments (and returns null when the current selected - /// index is invalid). + /// The index of a pane selected to display its content. /// ///get_selectedIndex ///set_selectedIndex - /// + /// this._selectedIndex = 0; - /// - /// Panes count. - /// - ///getCount - /// - // The _panes array represents the collection of Accordion panes. Each element of // the array is an object of the form {header, content, animation} corresponding // to that pane's header section, content section, and the animation used to open @@ -251,58 +247,58 @@ Sys.Extended.UI.AccordionBehavior = function(element) { this._panes = []; /// - /// Whether or not to fade the accordion panes when transitioning + /// True - to use the fading transition effect for Accordion panes, false - for standard transitions. /// ///get_fadeTransitions ///set_fadeTransitions - /// + /// this._fadeTransitions = false; /// - /// Length of time to transition between Accordion sections in - /// milleseconds. The default value is 250ms. + /// The number of milliseconds a transition effect takes to complete. + /// The default value is 250ms. /// ///get_transitionDuration ///set_transitionDuration - /// + /// this._duration = 0.25; /// - /// A number of steps per second in transition animations. + /// The number of steps per second in transition animations. /// The default value is 30 frames per second. /// ///get_framesPerSecond ///set_framesPerSecond - /// + /// this._framesPerSecond = 30; /// - /// Determines how to control resizing of the Accordion. - /// If it is set to None, then the Accordion can grow as large or as small as necessary. - /// If it is set to Limit, then the Accordion will always be less than or equal to its available space. - /// If it is set to Fill, then it will always be equal to its available space. + /// Controls how the Accordion changes its size to occupy space on a web page. /// + /// + /// If set to None, the Accordion grows/shrinks vertically without restriction when its pane is expanded/collapsed; this can cause other elements on a web page to move up and down with it. + /// If set to Limit, the Accordion never grows larger than the value specified by its Height property; this will cause the Accordion content to scroll if it is too large to be displayed. + /// If set to Fill, the Accordion always keeps the same size as its Height property. This will cause the content to be expanded or shrunk if it isn't of the right size. + /// ///get_autoSize - /// + /// this._autoSize = Sys.Extended.UI.AutoSize.None; /// - /// Whether or not clicking the header will close the currently opened pane (which - /// leaves all the Accordion's panes closed). + /// True - to force the Accordion to always have one pane expanded, false - to enable end-users to close all panes. /// ///get_requireOpenedPane ///set_requireOpenedPane - /// + /// this._requireOpenedPane = true; /// - /// Whether or not we suppress the client-side click handlers of any elements - /// (including server controls like Button or HTML elements like anchor) in the header - /// sections of the Accordion. + /// A Boolean value specifying whether the Accordion control will not be interrupted by the default click event of the anchor tag specified in the header element's template. + /// If set to true, this property prevents any client event handler that may interrupt the activity of the Accordion control. /// ///get_suppressHeaderPostbacks ///set_suppressHeaderPostbacks - /// + /// this._suppressHeaderPostbacks = false; // Size of all the headers @@ -313,19 +309,19 @@ Sys.Extended.UI.AccordionBehavior = function(element) { this._headerClickHandler = null; /// - /// The _headerSelectedCssClass is the css class applied to the selected header. + /// The name of the CSS class applied to headers. /// ///get_headerCssClass ///set_headerCssClass - /// + /// this._headerCssClass = ''; /// - /// The _headerSelectedCssClass is the css class applied to the selected header. + /// The name of the CSS class applied to the selected header. /// ///get_headerSelectedCssClass ///get_headerSelectedCssClass - /// + /// this._headerSelectedCssClass = ''; // The _resizeHandler is a reference to the global event handler used to patch @@ -334,6 +330,8 @@ Sys.Extended.UI.AccordionBehavior = function(element) { // Check the browser version and document mode to see if IE8 in standards-compliant mode is used this._isIE8InStandardMode = (Sys.Browser.agent == Sys.Browser.InternetExplorer && Sys.Browser.version > 7 && Sys.Browser.documentMode != 0); + + this._paneHeaderClassNames = []; } Sys.Extended.UI.AccordionBehavior.prototype = { // The initialize function is responsible for getting the selected index from @@ -415,13 +413,12 @@ Sys.Extended.UI.AccordionBehavior.prototype = { }, /// - /// Create a new Accordion pane given references to its header and content divs - /// and add it to the _panes collection. We also wrap the content div in a new - /// container div, add a click handler to the header div, etc. + /// Creates a new Accordion pane and adds it to the Panes collection. + /// The method provides references to the created pane's header and content DIVs. /// /// header element of the new Accordion pane /// content element of the new Accordion pane - /// + /// addPane: function(header, content) { // New pane object added to the end of the Accordion's pane collection. The pane // is an object of the form {header, content, animation} corresponding to that @@ -467,6 +464,8 @@ Sys.Extended.UI.AccordionBehavior.prototype = { // Add the new pane at the bottom of the accordion Array.add(this._panes, pane); + this._paneHeaderClassNames.push(pane.header.className); + // Setup the layout attributes for the pane so that it will be in a proper opened or // closed state (we don't bother setting the opacity of the wrapper with // $common.setElementOpacity(wrapper, selected ? 1 : 0); because it will @@ -637,7 +636,9 @@ Sys.Extended.UI.AccordionBehavior.prototype = { } } - pane.header.className = this._selectedIndex === index ? (this._headerSelectedCssClass || this._headerCssClass) : this._headerCssClass; + pane.header.className = this._selectedIndex === index + ? (this._headerSelectedCssClass || this._headerCssClass) + : (this._paneHeaderClassNames[index] || this._headerCssClass); }, _addResizeHandler: function() { @@ -813,7 +814,7 @@ Sys.Extended.UI.AccordionBehavior.prototype = { //This sets the header CSS class to the non-selected case. if(lastPane) { - lastPane.header.className = this._headerCssClass; + lastPane.header.className = this._paneHeaderClassNames[lastIndex] || this._headerCssClass; } //This sets the selected header CSS class if available. @@ -1099,9 +1100,9 @@ Sys.Extended.UI.AccordionBehavior.prototype = { }, /// - /// Fires when an Accordion pane is clicked, but before Accordion changes the pane. + /// Fires after a pane header is clicked but before the Accordion changes the selected pane. /// - /// + /// /// add_selectedIndexChanging: function(handler) { this.get_events().addHandler('selectedIndexChanging', handler); @@ -1121,9 +1122,9 @@ Sys.Extended.UI.AccordionBehavior.prototype = { }, /// - /// Fires when an Accordion pane is clicked, but after Accordion changes the pane. + /// Fires after a pane header is clicked and the Accordion changes the selected pane. /// - /// + /// /// add_selectedIndexChanged: function(handler) { this.get_events().addHandler('selectedIndexChanged', handler); @@ -1143,12 +1144,12 @@ Sys.Extended.UI.AccordionBehavior.prototype = { }, /// - /// Get a specific Accordion pane given its index. If no index is provided, get the currently selected pane. + /// Returns an Accordion pane specified by its index. If no index is provided, the currently selected pane is returned. /// /// index of the desired Accordion pane. If the index is not provided, we use /// the currently selected index. In the event the provided index (or the currently /// selected index) is outside the bounds of the panes collection, we return null. - /// + /// getPane: function(index) { if(index === undefined || index === null) { index = this._selectedIndex; @@ -1161,9 +1162,9 @@ Sys.Extended.UI.AccordionBehavior.prototype = { }, /// - /// Panes count. + /// Returns the total number of panes. /// - /// + /// getCount: function() { return this._panes ? this._panes.length : 0; }, diff --git a/Scripts/AjaxControlToolkit/Debug/AjaxFileUpload.debug.js b/Scripts/AjaxControlToolkit/Debug/AjaxFileUpload.debug.js index 4e06d9cb7..f59e51cfe 100644 --- a/Scripts/AjaxControlToolkit/Debug/AjaxFileUpload.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/AjaxFileUpload.debug.js @@ -2,6 +2,11 @@ // Utils Sys.Extended.UI.AjaxFileUpload.Utils = function() { + + function getExtension(filename) { + var extensionStartIndex = filename.lastIndexOf('.') + 1; + return extensionStartIndex ? filename.substring(extensionStartIndex) : ""; + } this.generateGuid = function() { var result, i, j; @@ -41,7 +46,7 @@ Sys.Extended.UI.AjaxFileUpload.Utils = function() { } } - return encodeURIComponent(result); + return result; }; this.getFileType = function(file) { @@ -49,7 +54,7 @@ Sys.Extended.UI.AjaxFileUpload.Utils = function() { throw 'file must defined or not null'; if(!file.value && file.name) - return file.name.substring(file.name.lastIndexOf('.') + 1); + return getExtension(file.name); if(file.value) file = file.value; @@ -57,7 +62,7 @@ Sys.Extended.UI.AjaxFileUpload.Utils = function() { if(typeof (file) !== "string") throw "can't resolve file type."; - return file.substring(file.lastIndexOf('.') + 1); + return getExtension(file); }; this.sizeToString = function(bytes) { @@ -155,18 +160,19 @@ Sys.Extended.UI.AjaxFileUpload.Item.prototype = { }); this._fileName = utils.getFileName(file); - var fileNameToDisplay = decodeURIComponent(this._fileName); + + var htmlEncode = Sys.Extended.UI.htmlEncode; if(isHtml5Support) { this._fileSize = file.size; - var fType = file.type ? '(' + file.type + ')' : ''; - fileInfoText.innerHTML = '' + fileNameToDisplay + ' ' + var fType = file.type ? '(' + htmlEncode(file.type) + ')' : ''; + fileInfoText.innerHTML = '' + htmlEncode(this._fileName) + ' ' + fType + ' - ' + utils.sizeToString(file.size) + ' '; this._fileType = file.type; } else { - fileInfoText.innerHTML = '' + fileNameToDisplay + ''; + fileInfoText.innerHTML = '' + htmlEncode(this._fileName) + ''; this._fileType = utils.getFileType(file); } @@ -302,13 +308,19 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { }; - if(control.fileTypeIsValid(fileItem.type)) { - control.addFileToQueue(fileItem); - this.createInputFileElement(); - } else { + if(!control.fileTypeIsValid(fileItem.type)) { control.confirmFileIsInvalid(fileItem); + return; } + if(control.fileSizeExceeded(fileItem.value.size)) { + control.confirmFileIsTooLarge(fileItem); + return; + } + + control.addFileToQueue(fileItem); + this.createInputFileElement(); + }; this.createInputFileElement = function() { @@ -331,7 +343,8 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { zIndex: 0, cursor: 'pointer', position: 'absolute' - } + }, + multiple: true } }, currentInputFile.parentNode); @@ -374,7 +387,12 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { // only add 1 file input element to be uploaded form.appendChild(inputElement); - form.setAttribute("action", control._uploadUrl + '?contextKey=' + control.get_id() + '&fileId=' + control._currentFileId + '&fileName=' + fileItem._fileName + '&usePoll=' + (control.get_serverPollingSupport() ? "true" : "false")); + form.setAttribute("action", control.get_uploadHandlerPath() + + '?contextKey=' + control.get_contextKey() + + '&controlID=' + control.get_id() + + '&fileId=' + control._currentFileId + + '&fileName=' + encodeURIComponent(fileItem._fileName) + + '&usePoll=' + (control.get_serverPollingSupport() ? "true" : "false")); // upload it now form.submit(); @@ -389,7 +407,12 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { if(xhrPoll) xhrPoll.abort(); - xhr.open("POST", '?contextKey=' + control.get_id() + "&cancel=1&guid=" + control._currentFileId, true); + xhr.open("POST", + '?contextKey=' + control.get_contextKey() + + '&controlID=' + control.get_id() + + '&cancel=1&guid=' + control._currentFileId + + self.getQueryString(), true); + xhr.onreadystatechange = function() { self.setThrobber(false); if(xhr.readyState == 4) { @@ -405,6 +428,10 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { xhr.send(null); }, + this.getQueryString = function() { + return "&" + window.location.search.replace("?", ""); + }, + this.createIFrame = function() { var name = this._iframeName, @@ -486,7 +513,10 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { if(!value || !control._currentFileId) return; - xhrPoll.open("GET", '?contextKey=' + control.get_id() + "&poll=1&guid=" + control._currentFileId, true); + xhrPoll.open("GET", + '?contextKey=' + control.get_contextKey() + + '&controlID=' + control.get_id() + + '&poll=1&guid=' + control._currentFileId, true); xhrPoll.send(null); }; @@ -516,13 +546,16 @@ Sys.Extended.UI.AjaxFileUpload.Processor = function(control, elements) { this.raiseUploadError = function(xhr) { control.raise_uploadError(xhr); - control.setFileStatus(control._currentFileId, 'error', Sys.Extended.UI.Resources.AjaxFileUpload_error); if(xhrPoll) xhrPoll.abort(); control._currentFileId = null; }; + this.resetUI = function() { + control.setFileStatus(control._currentFileId, 'error', Sys.Extended.UI.Resources.AjaxFileUpload_error); + }; + }; // ProcessorHtml5 @@ -557,7 +590,16 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { this.onFileDroppedHandler = function(e) { e.stopPropagation(); e.preventDefault(); + + if(!control.get_enabled()) + return; + this.addFilesToQueue(e.dataTransfer.files); + + if (control.get_autoStartUpload()) { + control.startUpload(); + } + }; this.onFileDragOverHandler = function(e) { @@ -568,11 +610,15 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { this.onFileSelectedHandler = function(e) { this.addFilesToQueue(e.target.files); this.createInputFileElement(); + + if (control.get_autoStartUpload()) { + control.startUpload(); + } }; this.createInputFileElement = function() { var currentInputFile = elements.inputFile; - + delete currentInputFile; // create new input file element in same location @@ -587,7 +633,8 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { zIndex: 0, cursor: 'pointer', position: 'absolute' - } + }, + multiple: true } }, currentInputFile.parentNode); @@ -607,10 +654,10 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { // #endregion - this.addFilesToQueue = function(files) { - // Validate and generate file item from HTML5 files. + this.addFilesToQueue = function (files) { - for(var i = 0; i < files.length; i++) { + // Validate and generate file item from HTML5 files. + for (var i = 0; i < files.length; i++) { var blob = files[i], slices = 0; @@ -630,12 +677,19 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { }; // validate it, add it if it's OK - if(control.fileTypeIsValid(fileItem.type)) { - if(!control.addFileToQueue(fileItem)) - break; - } else { + if(!control.fileTypeIsValid(fileItem.type)) { control.confirmFileIsInvalid(fileItem); + continue; } + + if(control.fileSizeExceeded(fileItem.value.size)) + { + control.confirmFileIsTooLarge(fileItem); + continue; + } + + if(!control.addFileToQueue(fileItem)) + break; } // reset input file value so 'change' event can be fired again with same file name. @@ -668,6 +722,15 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { } }; + this.resetUI = function() { + $common.setVisible(elements.progressBarContainer, false); + $common.setVisible(control._elements.uploadOrCancelButton, false); + + var fileItem = control.getNextFile(); + fileItem._isUploaded = true; + fileItem._isUploading = false; + }, + this.upload = function(fileItem) { if(!control._isUploading) return; @@ -680,7 +743,6 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { // preparing upload data var blob = fileItem.get_inputElementValue(), - fileName = fileItem._fileName, chunked = fileItem._slices && (fileItem._slices > 0), firstChunk = fileItem._sliceIndex == 0; @@ -701,7 +763,15 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { xhrReq.addEventListener("load", xhrDelegate(this.onUploadCompleteHandler), false); xhrReq.addEventListener("error", xhrDelegate(this.onUploadFailedHandler), false); xhrReq.addEventListener("abort", xhrDelegate(this.onUploadCanceledHandler), false); - xhrReq.open("POST", control._uploadUrl + '?contextKey=' + control.get_id() + '&fileId=' + id + '&fileName=' + fileName + '&chunked=' + (chunked ? "true" : "false") + '&firstChunk=' + firstChunk, true); + xhrReq.open("POST", + control.get_uploadHandlerPath() + + '?contextKey=' + control.get_contextKey() + + '&controlID=' + control.get_id() + + '&fileId=' + id + + '&fileName=' + encodeURIComponent(fileItem._fileName) + + '&chunked=' + (chunked ? "true" : "false") + + '&firstChunk=' + firstChunk, true); + form.append("act-file-data", blob); xhrReq.send(form); }; @@ -761,7 +831,7 @@ Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5 = function(control, elements) { // set statuses as uploaded fileItem.setStatus('uploaded', Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded); control.setStatusMessage(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_UploadingHtml5File, - file.name, utils.sizeToString(file.size))); + Sys.Extended.UI.htmlEncode(file.name), utils.sizeToString(file.size))); // finalizing and upload next file control.doneAndUploadNextFile(fileItem); @@ -896,13 +966,24 @@ Sys.Extended.UI.AjaxFileUpload.Control = function(element) { this._postBackUrl = null; /// - /// How AjaxFileUpload displays a progress bar. + /// Specifies how AjaxFileUpload uploads files. + /// If set to Auto or Client and the client browser supports HTML 5, AjaxFileUpload uploads files using AJAX requests. + /// If set to Server or the browser does not support HTML 5, AjaxFileUpload uploads files by posting the HTML form. + /// The default is Auto. /// /// get_mode /// set_mode /// this._mode = 0; + /// + /// Whether or not automatically start upload files after drag/drop or select in file dialog. The default is false + /// + /// get_autoStartUpload + /// set_autoStartUpload + /// + this._autoStartUpload = false; + /// /// Whether or not AjaxFileUpload supports server polling. /// @@ -947,8 +1028,37 @@ Sys.Extended.UI.AjaxFileUpload.Control = function(element) { this._clearFileListAfterUpload = false; - // fields - this._uploadUrl = 'AjaxFileUploadHandler.axd'; + /// + /// Whether or not to use absolute path for AjaxFileUploadHandler + /// + /// get_useAbsoluteHandlerPath + /// set_useAbsoluteHandlerPath + /// + this._useAbsoluteHandlerPath = true; + + /// + /// The maximum size of a file to be uploaded in Kbytes. + /// A non-positive value means the size is unlimited. + /// + /// get_maxFileSize + /// set_maxFileSize + /// + this._maxFileSize = 0; + + /// + /// The path to the upload handler. + /// + /// get_uploadHandlerPath + /// set_uploadHandlerPath + /// + this._uploadHandlerPath = ''; + /// + /// Whether the control is enabled. + /// + /// get_enabled + /// set_enabled + /// + this._enabled = true; this._useHtml5Support = false; this._elements = null; this._processor = null; @@ -1055,6 +1165,10 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { }, _onUploadOrCancelButtonClickedHandler: function(e) { var files = this._filesInQueue; + + if(!this.validateFiles(files)) + return; + if(!files.length) { alert(Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload); return; @@ -1083,8 +1197,11 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { var xhr = new XMLHttpRequest(), self = this; - xhr.open("POST", '?contextKey=' + this.get_id() - + "&start=1&queue=" + this._filesInQueue.length); + xhr.open("POST", + '?contextKey=' + this.get_contextKey() + + '&controlID=' + this.get_id() + + '&start=1&queue=' + this._filesInQueue.length + + this.getQueryString()); xhr.onreadystatechange = function() { if(xhr.readyState == 4) { if(xhr.status == 200) { @@ -1092,6 +1209,7 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { self.raise_uploadStart(Sys.Serialization.JavaScriptSerializer.deserialize(xhr.responseText)); } else { self.raise_uploadError(xhr); + self.setFileStatus(fileItem, 'error', Sys.Extended.UI.Resources.AjaxFileUpload_error); throw "Failed to starting upload."; } } @@ -1111,6 +1229,30 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { } }, + /// + /// Validates files in queue before uploading. + /// Returns true if validation is passed, otherwise false + /// + /// + /// An array of files in the upload queue + validateFiles: function(files) + { + return true; + }, + + /// + /// Manually starts upload process + /// + /// + startUpload: function () { + if (this._isUploading || !this._filesInQueue.length) { + return; + } + + this._onUploadOrCancelButtonClickedHandler(); + }, + + /// /// If set to true, it will set the control state to enabled (ready to upload), /// otherwise the control will be disabled and the button state turns to the Cancel button. @@ -1147,10 +1289,13 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { self = this, currentFile = this._filesInQueue[this._currentQueueIndex - 1]; - xhr.open("POST", '?contextKey=' + this.get_id() - + "&complete=1&queue=" + this._filesInQueue.length - + "&uploaded=" + (this._currentQueueIndex - (currentFile._isUploaded ? 0 : 1)) - + "&reason=" + (this._canceled ? "cancel" : "done")); + xhr.open("POST", + '?contextKey=' + this.get_contextKey() + + '&controlID=' + this.get_id() + + '&complete=1&queue=' + this._filesInQueue.length + + '&uploaded=' + (this._currentQueueIndex - (currentFile._isUploaded ? 0 : 1)) + + '&reason=' + (this._canceled ? "cancel" : "done") + + this.getQueryString()); xhr.onreadystatechange = function() { if(xhr.readyState == 4) { @@ -1158,12 +1303,13 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { self.raise_uploadCompleteAll(Sys.Serialization.JavaScriptSerializer.deserialize(xhr.responseText)); } else { self.raise_uploadError(xhr); + self.setFileStatus(fileItem, 'error', Sys.Extended.UI.Resources.AjaxFileUpload_error); throw "Failed to completing upload."; } } }; xhr.send(null); - + if(this.get_clearFileListAfterUpload()) { for(var i = 0; i < this._filesInQueue.length; i += 1) { var item = this._filesInQueue[i]; @@ -1272,16 +1418,43 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { return false; }, + /// + /// Checks if the file size is larger than the upload size limit. + /// + /// + /// File size in bytes + fileSizeExceeded: function(fileSize) { + if(this.get_maxFileSize() <= 0) + return false; + + return fileSize > this.getMaxFileSizeInBytes(); + }, + /// /// Sends alert to a user that the file type is not acceptable. The processor uses this method after validation. /// /// - /// File trying to be added to queue + /// A file attempting to be added to the upload queue. confirmFileIsInvalid: function(fileItem) { var utils = new Sys.Extended.UI.AjaxFileUpload.Utils(); alert(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_WrongFileType, utils.getFileName(fileItem.value), fileItem.type)); }, + /// + /// Sends alert to a user that the file size is too large. The processor uses this method after validation. + /// + /// + /// A file attempting to be added to the upload queue. + confirmFileIsTooLarge: function(fileItem) { + var utils = new Sys.Extended.UI.AjaxFileUpload.Utils(); + alert(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_TooLargeFile, utils.getFileName(fileItem.value), this.get_maxFileSize())); + }, + + getMaxFileSizeInBytes: function() + { + return this.get_maxFileSize() * 1024; + }, + /// /// Marks fileItem as uploaded, and uploads the next file in a queue. /// @@ -1292,10 +1465,15 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { var xhr = new XMLHttpRequest(), self = this; - xhr.open("POST", "?contextKey=" + this.get_id() + "&done=1&guid=" + fileItem._id, true); + xhr.open("POST", + '?contextKey=' + this.get_contextKey() + + '&controlID=' + this.get_id() + + '&done=1&guid=' + fileItem._id + + this.getQueryString(), true); + xhr.onreadystatechange = function(e) { if(xhr.readyState == 4) { - if(xhr.status == 200) { + if(xhr.status == 200 && xhr.responseText != "") { // Mark as done and invoke event handler self.raise_uploadComplete(Sys.Serialization.JavaScriptSerializer.deserialize(xhr.responseText)); @@ -1311,7 +1489,11 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { } } }; - xhr.send(null); + xhr.send(); + }, + + getQueryString: function() { + return "&" + window.location.search.replace("?", ""); }, /// @@ -1349,7 +1531,7 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { this._currentQueueIndex = Array.indexOf(this._filesInQueue, fileItem) + 1; this.setFileStatus(fileItem, 'uploading', Sys.Extended.UI.Resources.AjaxFileUpload_Uploading); - this.setStatusMessage('Uploading ' + this._currentQueueIndex + ' of ' + this._filesInQueue.length + ' file(s)'); + this.setStatusMessage(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_UploadingFileInQueue, this._currentQueueIndex, this._filesInQueue.length)); }, /// @@ -1419,6 +1601,13 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { this._mode = value; }, + get_autoStartUpload: function () { + return this._autoStartUpload; + }, + set_autoStartUpload: function (value) { + this._autoStartUpload = value; + }, + get_serverPollingSupport: function() { return this._serverPollingSupport; }, @@ -1449,7 +1638,7 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { /// /// Whether or not to hide the file upload list container after uploading finished - /// /// get_clearQueueContainerAfterUpload /// set_clearQueueContainerAfterUpload /// @@ -1460,6 +1649,33 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { this._clearFileListAfterUpload = value; }, + get_useAbsoluteHandlerPath: function() { + return this._useAbsoluteHandlerPath; + }, + set_useAbsoluteHandlerPath: function(value) { + this._useAbsoluteHandlerPath = value; + }, + + get_maxFileSize: function() { + return this._maxFileSize; + }, + set_maxFileSize: function(value) { + this._maxFileSize = value; + }, + + get_uploadHandlerPath: function () { + return this._uploadHandlerPath; + }, + set_uploadHandlerPath: function (value) { + this._uploadHandlerPath = value; + }, + get_enabled: function () { + return this.enabled; + }, + set_enabled: function (value) { + this.enabled = value; + }, + /// /// Occurs when the file upload starts /// @@ -1570,8 +1786,11 @@ Sys.Extended.UI.AjaxFileUpload.Control.prototype = { eh(this, e); } + this._processor.resetUI(); + this._canceled = false; this._isUploading = false; + this._isUploaded = true; this.enableControls(true); }, diff --git a/Scripts/AjaxControlToolkit/Debug/Animation.debug.js b/Scripts/AjaxControlToolkit/Debug/Animation.debug.js index 60ad603d9..a67a3ae34 100644 --- a/Scripts/AjaxControlToolkit/Debug/Animation.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Animation.debug.js @@ -212,8 +212,8 @@ Sys.Extended.UI.Animation.AnimationBehavior.prototype = { /// /// Generic OnMouseOver Animation's behavior /// - /// get_onLoadBehavior - /// + /// get_onMouseOverBehavior + /// get_onMouseOverBehavior: function() { return this._onMouseOver; }, @@ -379,8 +379,8 @@ Sys.Extended.UI.Animation.AnimationBehavior.prototype = { /// /// Generic OnHoverOut Animation's behavior /// - /// get_onHoverOverBehavior - /// + /// get_onHoverOutBehavior + /// get_onHoverOutBehavior: function() { return this._onHoverOut; }, diff --git a/Scripts/AjaxControlToolkit/Debug/AnimationScripts.debug.js b/Scripts/AjaxControlToolkit/Debug/AnimationScripts.debug.js index de48097d4..7e583d873 100644 --- a/Scripts/AjaxControlToolkit/Debug/AnimationScripts.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/AnimationScripts.debug.js @@ -233,17 +233,22 @@ $AA.createAnimation = function(obj, defaultTarget) { // In the Xml comments for each of the animations below, there is a special tag // that describes how the animation is referenced from a generic XML animation description +/// +/// Animation is an abstract base class used as a starting point for all the other animations. +/// It provides the basic mechanics for the animation (playing, pausing, stopping, timing, etc.) +/// and leaves the actual animation to be done in the abstract methods getAnimatedValue +/// and setValue. +/// +/// + +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. $AA.Animation = function(target, duration, fps) { - // Animation is an abstract base class used as a starting point for all the other animations. - // It provides the basic mechanics for the animation (playing, pausing, stopping, timing, etc.) - // and leaves the actual animation to be done in the abstract methods getAnimatedValue - // and setValue. // Animations need to be as fast as possible - even in debug mode. Don't add validation code to - // methods involved in every step of the animation. - // - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. + // methods involved in every step of the animation. // // The DynamicProperties collection is used to associate JavaScript expressions with // properties. The expressions are evaluated just before the animation is played @@ -260,16 +265,40 @@ $AA.Animation = function(target, duration, fps) { // raised when setting dynamic properties (including both JavaScript evaluation errors // and other exceptions raised by property setters) will only be propogated when // debugging. - + $AA.Animation.initializeBase(this); - // Length of the animation in seconds + /// + /// Length of the animation in seconds. The default is 1. + /// + ///get_duration + ///set_duration + /// this._duration = 1; - // Number of steps per second + /// + /// Number of steps per second. The default is 25. + /// + ///get_fps + ///set_fps + /// this._fps = 25; - // Target Sys.UI.DomElement of the animation + /// + /// Target Sys.UI.DomElement of the animation. If the target of this animation is null and + /// the animation has a parent, then it will recursively use the target of + /// the parent animation instead. + /// + /// + /// Do not set this property in a generic Xml animation description. It should be set + /// using either the extender's TargetControlID or the AnimationTarget property (the latter + /// maps to Sys.Extended.UI.Animation.set_animationTarget). The only valid way to + /// set this property in the generic Xml animation description is to use the dynamic + /// property TargetScript="$get('myElement')". + /// + ///get_target + ///set_target + /// this._target = null; // Tick event handler @@ -278,7 +307,12 @@ $AA.Animation = function(target, duration, fps) { // Animation timer this._timer = null; - // Percentage of the animation already played + /// + /// Percentage of the animation already played. + /// + ///get_percentComplete + ///set_percentComplete + /// this._percentComplete = 0; // Percentage of the animation to play on each step @@ -326,10 +360,14 @@ $AA.Animation.prototype = { $AA.Animation.callBaseMethod(this, 'dispose'); }, + /// + /// Play the animation from the beginning or where it was left off when paused. + /// + /// + /// If this animation is the child of another, you must call play on its parent instead. + /// + /// play: function() { - // Play the animation from the beginning or where it was left off when paused. - // If this animation is the child of another, you must call play on its parent instead. - // If ownership of this animation has been claimed, then we'll require the parent to // handle playing the animation (this is very important because then the entire animation // tree runs on the same timer and updates consistently) @@ -361,11 +399,15 @@ $AA.Animation.prototype = { } }, + /// + /// Pause the animation if it is playing. Calling play will resume where + /// the animation left off. + /// + /// + /// If this animation is the child of another, you must call pause on its parent instead. + /// + /// pause: function() { - // Pause the animation if it is playing. Calling play will resume where - // the animation left off. - // If this animation is the child of another, you must call pause on its parent instead. - if(!this._owner) { if(this._timer) { this._timer.set_enabled(false); @@ -375,15 +417,18 @@ $AA.Animation.prototype = { } }, + /// + /// Stop playing the animation. + /// + /// + /// If this animation is the child of another, you must call stop on + /// its parent instead. + /// + /// + /// Whether or not stopping the animation should leave the target element in a state + /// consistent with the animation playing completely by performing the last step. + /// The default value is true. stop: function(finish) { - // Stop playing the animation. - // If this animation is the child of another, you must call stop on - // its parent instead. - // - // "finish" - Whether or not stopping the animation should leave the target element in a state - // consistent with the animation playing completely by performing the last step. - // The default value is true. - if(!this._owner) { var t = this._timer; this._timer = null; @@ -405,9 +450,12 @@ $AA.Animation.prototype = { } }, + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. - this.raiseStarted(); + this.raise_started(); // Initialize any dynamic properties for(var property in this.DynamicProperties) { @@ -423,46 +471,59 @@ $AA.Animation.prototype = { } }, + /// + /// The onStep method is called repeatedly to progress the animation through each frame. + /// + /// + /// Percentage of the animation already complete. onStep: function(percentage) { - // The onStep method is called repeatedly to progress the animation through each frame - // - // "percentage" - percentage of the animation already complete this.setValue(this.getAnimatedValue(percentage)); - this.raiseStep(); + this.raise_step(); }, + /// + /// The onEnd method is called just after the animation is played each time. + /// + /// onEnd: function() { - this.raiseEnded(); + this.raise_ended(); }, + /// + /// Determine the state of the animation after the given percentage of its duration has elapsed. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Determine the state of the animation after the given percentage of its duration has elapsed // Returns state of the animation after the given percentage of its duration has elapsed that will // be passed to setValue - // - // "percentage" - percentage of the animation already complete - throw Error.notImplemented(); }, + /// + /// Set the current state of the animation. + /// + /// + /// Animation state. setValue: function(value) { - // Set the current state of the animation // Returns current state of the animation (as retreived from getAnimatedValue) throw Error.notImplemented(); }, + /// + /// The interpolate function is used to find the appropriate value between starting and + /// ending values given the current percentage. + /// + /// + /// Start of the range to interpolate. + /// End of the range to interpolate. + /// Percentage completed in the range to interpolate. interpolate: function(start, end, percentage) { - // The interpolate function is used to find the appropriate value between starting and - // ending values given the current percentage. // In the future, we hope to make several implementations of this available so we can dynamically // change the apparent speed of the animations, although it may make more sense to modify the // _updatePercentComplete function instead. - // Returns the desired percentage between the start and end values - // - // "start"- start of the range to interpolate - // "end" - end of the range to interpolate - // "percentage" - percentage completed in the range to interpolate - + // Returns the desired percentage between the start and end values + return start + (end - start) * (percentage / 100); }, @@ -494,67 +555,79 @@ $AA.Animation.prototype = { } }, + /// + /// Makes this animation the child of another animation. + /// + /// + /// Parent animation. setOwner: function(owner) { - // Make this animation the child of another animation - // - // "owner" - parent animation this._owner = owner; }, - raiseStarted: function() { - var handlers = this.get_events().getHandler('started'); - if(handlers) { - handlers(this, Sys.EventArgs.Empty); - } - }, - + /// + /// Occurs each time before animation starts playing. + /// + /// + /// add_started: function(handler) { this.get_events().addHandler("started", handler); }, - remove_started: function(handler) { this.get_events().removeHandler("started", handler); }, - - raiseEnded: function() { - var handlers = this.get_events().getHandler('ended'); - if(handlers) { + raise_started: function() { + var handlers = this.get_events().getHandler('started'); + if(handlers) handlers(this, Sys.EventArgs.Empty); - } + }, + raiseStarted: function() { + Sys.Extended.Deprecated("raiseStarted()", "raise_started()"); + this.raise_started(); }, + /// + /// Occurs each time after animation stops playing. + /// + /// + /// add_ended: function(handler) { this.get_events().addHandler("ended", handler); }, - remove_ended: function(handler) { this.get_events().removeHandler("ended", handler); }, - - raiseStep: function() { - var handlers = this.get_events().getHandler('step'); - if(handlers) { + raise_ended: function() { + var handlers = this.get_events().getHandler('ended'); + if(handlers) handlers(this, Sys.EventArgs.Empty); - } + }, + raiseEnded: function() { + Sys.Extended.Deprecated("raiseEnded()", "raise_ended()"); + this.raise_ended(); }, + /// + /// Occurs on animation's each frame. + /// + /// + /// add_step: function(handler) { this.get_events().addHandler("step", handler); }, - remove_step: function(handler) { this.get_events().removeHandler("step", handler); }, + raise_step: function() { + var handlers = this.get_events().getHandler('step'); + if(handlers) + handlers(this, Sys.EventArgs.Empty); + }, + raiseStep: function() { + Sys.Extended.Deprecated("raiseStep()", "raise_step()"); + this.raise_ended(); + }, get_target: function() { - // Target of the animation. If the target of this animation is null and - // the animation has a parent, then it will recursively use the target of - // the parent animation instead. - // Do not set this property in a generic Xml animation description. It should be set - // using either the extender's TargetControlID or the AnimationTarget property (the latter - // maps to Sys.Extended.UI.Animation.set_animationTarget). The only valid way to - // set this property in the generic Xml animation description is to use the dynamic - // property TargetScript="$get('myElement')". if(!this._target && this._parentAnimation) { return this._parentAnimation.get_target(); } @@ -567,11 +640,14 @@ $AA.Animation.prototype = { } }, - set_animationTarget: function(id) { - // ID of a Sys.UI.DomElement or Sys.UI.Control to use as the target of the animation - // If no Sys.UI.DomElement or Sys.UI.Control can be found for the given ID, an - // argument exception will be thrown. - + /// + /// Set the animation target by its identifier. + /// + /// + /// ID of a Sys.UI.DomElement or Sys.UI.Control to use as the target of the animation + /// If no Sys.UI.DomElement or Sys.UI.Control can be found for the given ID, an + /// argument exception will be thrown. + setAnimationTarget: function(id) { // Try to find a Sys.UI.DomElement var target = null; var element = $get(id); @@ -595,9 +671,12 @@ $AA.Animation.prototype = { throw Error.argument('id', String.format(Sys.Extended.UI.Resources.Animation_TargetNotFound, id)); } }, + set_animationTarget: function(id) { + Sys.Extended.Deprecated("setAnimationTarget(id)", "set_animationTarget(id)"); + this.setAnimationTarget(id); + }, get_duration: function() { - // Length of the animation in seconds. The default is 1. return this._duration; }, set_duration: function(value) { @@ -609,7 +688,6 @@ $AA.Animation.prototype = { }, get_fps: function() { - // Number of steps per second. The default is 25. return this._fps; }, set_fps: function(value) { @@ -620,10 +698,20 @@ $AA.Animation.prototype = { } }, + /// + /// A boolean value that determines whether or not animation is active. + /// + ///get_isActive + /// get_isActive: function() { return (this._timer !== null); }, + /// + /// A boolean value that determines whether or not animation is currently playing. + /// + ///get_isPlaying + /// get_isPlaying: function() { return (this._timer !== null) && this._timer.get_enabled(); }, @@ -659,7 +747,7 @@ $AA.Animation.prototype = { // // "value" - value to convert if it's a string // "type" - type of the enum to convert to - + if(String.isInstanceOfType(value) && type && type.parse) { return type.parse(value); } @@ -669,24 +757,25 @@ $AA.Animation.prototype = { $AA.Animation.registerClass('Sys.Extended.UI.Animation.Animation', Sys.Component); $AA.registerAnimation('animation', $AA.Animation); +/// +/// The ParentAnimation serves as a base class for all animations that contain children (such as +/// Sys.Extended.UI.Animation.ParallelAnimation, Sys.Extended.UI.SequenceAnimation, +/// etc.). It does not actually play the animations, so any classes that inherit from it must do so. Any animation +/// that requires nested child animations must inherit from this class, although it will likely want to inherit off of +/// Sys.Extended.UI.Animation.ParallelAnimation or Sys.Extended.UI.SequenceAnimation +/// which will actually play their child animations. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations to be played. $AA.ParentAnimation = function(target, duration, fps, animations) { - // The ParentAnimation serves as a base class for all animations that contain children (such as - // Sys.Extended.UI.Animation.ParallelAnimation, Sys.Extended.UI.SequenceAnimation, - // etc.). It does not actually play the animations, so any classes that inherit from it must do so. Any animation - // that requires nested child animations must inherit from this class, although it will likely want to inherit off of - // Sys.Extended.UI.Animation.ParallelAnimation or Sys.Extended.UI.SequenceAnimation - // which will actually play their child animations. - // - // "target"- target of the animation - // "duration"- length of the animation in seconds. he default is 1. - // "fps" - number of steps per second. The default is 25. - // "animations" - array of child animations to be played $AA.ParentAnimation.initializeBase(this, [target, duration, fps]); - // Array of child animations (there are no assumptions placed on order because - // it will matter for some derived animations like SequenceAnimation, but not - // for others like ParallelAnimation) that is demand created in add this._animations = []; // Add any child animations passed into the constructor @@ -718,18 +807,24 @@ $AA.ParentAnimation.prototype = { $AA.ParentAnimation.callBaseMethod(this, 'dispose'); }, + /// + /// Array of child animations to be played (there are no assumptions placed on order because it will matter for some + /// derived animations like Sys.Extended.UI.Animation.SequenceAnimation, but not for + /// others like Sys.Extended.UI.Animation.ParallelAnimation). To manipulate the child + /// animations, use the functions add, clear, remove, and removeAt. + /// + ///get_target + /// get_animations: function() { - // Array of child animations to be played (there are no assumptions placed on order because it will matter for some - // derived animations like Sys.Extended.UI.Animation.SequenceAnimation, but not for - // others like Sys.Extended.UI.Animation.ParallelAnimation). To manipulate the child - // animations, use the functions add, clear, remove, and removeAt. return this._animations; }, + /// + /// Add an animation as a child of this animation. + /// + /// + /// Child animation to add. add: function(animation) { - // Add an animation as a child of this animation. - // - // "animation" - child animation to add if(this._animations) { if(animation) { animation._parentAnimation = this; @@ -739,12 +834,13 @@ $AA.ParentAnimation.prototype = { } }, + /// + /// Remove the animation from the array of child animations. + /// This will dispose the removed animation. + /// + /// + /// Child animation to remove. remove: function(animation) { - // Remove the animation from the array of child animations. - // This will dispose the removed animation. - // - // "animation" - child animation to remove - if(this._animations) { if(animation) { animation.dispose(); @@ -754,10 +850,12 @@ $AA.ParentAnimation.prototype = { } }, + /// + /// Remove the animation at a given index from the array of child animations. + /// + /// + /// Index of the child animation to remove. removeAt: function(index) { - // Remove the animation at a given index from the array of child animations. - // - // "index" - Index of the child animation to remove if(this._animations) { var animation = this._animations[index]; if(animation) { @@ -768,9 +866,12 @@ $AA.ParentAnimation.prototype = { } }, + /// + /// Clear the array of child animations. + /// This will dispose the cleared child animations. + /// + /// clear: function() { - // Clear the array of child animations. - // This will dispose the cleared child animations. if(this._animations) { for(var i = this._animations.length - 1; i >= 0; i--) { this._animations[i].dispose(); @@ -785,33 +886,41 @@ $AA.ParentAnimation.prototype = { $AA.ParentAnimation.registerClass('Sys.Extended.UI.Animation.ParentAnimation', $AA.Animation); $AA.registerAnimation('parent', $AA.ParentAnimation); +/// +/// The ParallelAnimation plays several animations simultaneously. It inherits from +/// Sys.Extended.UI.Animation.ParentAnimation, but makes itself the owner of all +/// its child animations to allow the use a single timer and syncrhonization mechanisms shared with +/// all the children (in other words, the duration properties of any child animations +/// are ignored in favor of the parent's duration). It is very useful in creating +/// sophisticated effects through combination of simpler animations. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations. $AA.ParallelAnimation = function(target, duration, fps, animations) { - // The ParallelAnimation plays several animations simultaneously. It inherits from - // Sys.Extended.UI.Animation.ParentAnimation, but makes itself the owner of all - // its child animations to allow the use a single timer and syncrhonization mechanisms shared with - // all the children (in other words, the duration properties of any child animations - // are ignored in favor of the parent's duration). It is very useful in creating - // sophisticated effects through combination of simpler animations. - // - // "target"- target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "animations" - array of child animations $AA.ParallelAnimation.initializeBase(this, [target, duration, fps, animations]); } $AA.ParallelAnimation.prototype = { + /// + /// Add an animation as a child of this animation and make ourselves its owner. + /// + /// + /// Child animation to add. add: function(animation) { - // Add an animation as a child of this animation and make ourselves its owner. - // - // "animation" - child animation to add - $AA.ParallelAnimation.callBaseMethod(this, 'add', [animation]); animation.setOwner(this); }, + /// + /// Get the child animations ready to play. + /// + /// onStart: function() { - // Get the child animations ready to play $AA.ParallelAnimation.callBaseMethod(this, 'onStart'); var animations = this.get_animations(); for(var i = 0; i < animations.length; i++) { @@ -819,18 +928,23 @@ $AA.ParallelAnimation.prototype = { } }, + /// + /// Progress the child animations through each frame. + /// + /// + /// Percentage of the animation already complete. onStep: function(percentage) { - // Progress the child animations through each frame - // - // "percentage" - percentage of the animation already complete var animations = this.get_animations(); for(var i = 0; i < animations.length; i++) { animations[i].onStep(percentage); } }, + /// + /// Finish playing all of the child animations. + /// + /// onEnd: function() { - // Finish playing all of the child animations var animations = this.get_animations(); for(var i = 0; i < animations.length; i++) { animations[i].onEnd(); @@ -841,23 +955,27 @@ $AA.ParallelAnimation.prototype = { $AA.ParallelAnimation.registerClass('Sys.Extended.UI.Animation.ParallelAnimation', $AA.ParentAnimation); $AA.registerAnimation('parallel', $AA.ParallelAnimation); +/// +/// The SequenceAnimation runs several animations one after the other. It can also +/// repeat the sequence of animations for a specified number of iterations (which defaults to a +/// single iteration, but will repeat forever if you specify zero or less iterations). Also, the +/// SequenceAnimation cannot be a child of a Sys.Extended.UI.Animation.ParallelAnimation +/// (or any animation inheriting from it). +/// +/// +/// +/// The SequenceAnimation ignores the duration and fps +/// properties, and will let each of its child animations use any settings they please. +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations. +/// Number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence +/// will repeat forever. The default value is 1 iteration. $AA.SequenceAnimation = function(target, duration, fps, animations, iterations) { - // The SequenceAnimation runs several animations one after the other. It can also - // repeat the sequence of animations for a specified number of iterations (which defaults to a - // single iteration, but will repeat forever if you specify zero or less iterations). Also, the - // SequenceAnimation cannot be a child of a Sys.Extended.UI.Animation.ParallelAnimation - // (or any animation inheriting from it). - // The SequenceAnimation ignores the duration and fps - // properties, and will let each of its child animations use any settings they please. - // - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps"- number of steps per second. The default is 25. - // "animations" - array of child animations - // "iterations" - number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence - // will repeat forever. The default value is 1 iteration. - $AA.SequenceAnimation.initializeBase(this, [target, duration, fps, animations]); // Handler used to determine when an animation has finished @@ -873,7 +991,13 @@ $AA.SequenceAnimation = function(target, duration, fps, animations, iterations) // Counter used when playing the animation to determine the remaining number of times to play the entire sequence this._remainingIterations = 0; - // Number of iterations + /// + /// Number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence + /// will repeat forever. The default value is 1 iteration. + /// + ///get_iterations + ///set_iterations + /// this._iterations = (iterations !== undefined) ? iterations : 1; } $AA.SequenceAnimation.prototype = { @@ -882,12 +1006,16 @@ $AA.SequenceAnimation.prototype = { $AA.SequenceAnimation.callBaseMethod(this, 'dispose'); }, + /// + /// Stop playing the entire sequence of animations. + /// + /// + /// Stopping this animation will perform the last step of each child animation, thereby leaving their + /// target elements in a state consistent with the animation playing completely. If this animation is + /// the child of another, you must call stop on its parent instead. + /// + /// stop: function() { - // Stop playing the entire sequence of animations - // Stopping this animation will perform the last step of each child animation, thereby leaving their - // target elements in a state consistent with the animation playing completely. If this animation is - // the child of another, you must call stop on its parent instead. - if(this._playing) { var animations = this.get_animations(); if(this._index < animations.length) { @@ -906,10 +1034,15 @@ $AA.SequenceAnimation.prototype = { } }, + /// + /// Pause the animation if it is playing. Calling play will resume where + /// the animation left off. + /// + /// + /// If this animation is the child of another, you must call pause on its parent instead. + /// + /// pause: function() { - // Pause the animation if it is playing. Calling play will resume where - // the animation left off. - // If this animation is the child of another, you must call pause on its parent instead. if(this.get_isPlaying()) { var current = this.get_animations()[this._index]; if(current != null) { @@ -920,10 +1053,14 @@ $AA.SequenceAnimation.prototype = { } }, + /// + /// Play the sequence of animations from the beginning or where it was left off when paused. + /// + /// + /// If this animation is the child of another, you must call play on its parent instead. + /// + /// play: function() { - // Play the sequence of animations from the beginning or where it was left off when paused - // If this animation is the child of another, you must call play on its parent instead - var animations = this.get_animations(); if(!this._playing) { this._playing = true; @@ -950,8 +1087,11 @@ $AA.SequenceAnimation.prototype = { } }, + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time $AA.SequenceAnimation.callBaseMethod(this, 'onStart'); this._remainingIterations = this._iterations - 1; @@ -988,15 +1128,21 @@ $AA.SequenceAnimation.prototype = { } }, + /// + /// Raises an invalid operation exception because this will only be called if a SequenceAnimation + /// has been nested inside an Sys.Extended.UI.Animation.ParallelAnimation (or a derived type). + /// + /// + /// Percentage of the animation already complete. onStep: function(percentage) { - // Raises an invalid operation exception because this will only be called if a SequenceAnimation - // has been nested inside an (or a derived type). - // "percentage" - percentage of the animation already complete throw Error.invalidOperation(Sys.Extended.UI.Resources.Animation_CannotNestSequence); }, + /// + /// The onEnd method is called just after the animation is played each time. + /// + /// onEnd: function() { - // The onEnd method is called just after the animation is played each time. this._remainingIterations = 0; $AA.SequenceAnimation.callBaseMethod(this, 'onEnd'); }, @@ -1010,8 +1156,6 @@ $AA.SequenceAnimation.prototype = { }, get_iterations: function() { - // Number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence - // will repeat forever. The default value is 1 iteration. return this._iterations; }, set_iterations: function(value) { @@ -1022,6 +1166,11 @@ $AA.SequenceAnimation.prototype = { } }, + /// + /// A boolean value that determines whether or not animation runs in an infinite loop until it is explicitly stopped. + /// + ///get_isInfinite + /// get_isInfinite: function() { return this._iterations <= 0; } @@ -1029,16 +1178,21 @@ $AA.SequenceAnimation.prototype = { $AA.SequenceAnimation.registerClass('Sys.Extended.UI.Animation.SequenceAnimation', $AA.ParentAnimation); $AA.registerAnimation('sequence', $AA.SequenceAnimation); +/// +/// The SelectionAnimation will run a single animation chosen from of its child animations. It is +/// important to note that the SelectionAnimation ignores the duration and fps +/// properties, and will let each of its child animations use any settings they please. This is a base class with no +/// functional implementation, so consider using ConditionAnimation or CaseAnimation instead. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations to be played. $AA.SelectionAnimation = function(target, duration, fps, animations) { - // The SelectionAnimation will run a single animation chosen from of its child animations. It is - // important to note that the SelectionAnimation ignores the duration and fps - // properties, and will let each of its child animations use any settings they please. This is a base class with no - // functional implementation, so consider using ConditionAnimation or CaseAnimation instead. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "animations" - array of child animations $AA.SelectionAnimation.initializeBase(this, [target, duration, fps, animations]); // Index of the animation selected to play @@ -1048,15 +1202,20 @@ $AA.SelectionAnimation = function(target, duration, fps, animations) { this._selected = null; } $AA.SelectionAnimation.prototype = { + /// + /// Get the index of the animation that is selected to be played. If this returns an index outside the bounds of + /// the child animations array, then nothing is played. + /// + /// getSelectedIndex: function() { - // Get the index of the animation that is selected to be played. If this returns an index outside the bounds of - // the child animations array, then nothing is played. - // returns index of the selected child animation to play throw Error.notImplemented(); }, + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. $AA.SelectionAnimation.callBaseMethod(this, 'onStart'); var animations = this.get_animations(); @@ -1070,16 +1229,22 @@ $AA.SelectionAnimation.prototype = { } }, + /// + /// The onStep method is called repeatedly to progress the animation through each frame. + /// + /// + /// Percentage of the animation already complete. onStep: function(percentage) { - // The onStep method is called repeatedly to progress the animation through each frame - // "percentage" - percentage of the animation already complete if(this._selected) { this._selected.onStep(percentage); } }, + /// + /// The onEnd method is called just after the animation is played each time. + /// + /// onEnd: function() { - // The onEnd method is called just after the animation is played each time. if(this._selected) { this._selected.onEnd(); this._selected.setOwner(null); @@ -1092,28 +1257,35 @@ $AA.SelectionAnimation.prototype = { $AA.SelectionAnimation.registerClass('Sys.Extended.UI.Animation.SelectionAnimation', $AA.ParentAnimation); $AA.registerAnimation('selection', $AA.SelectionAnimation); +/// +/// The ConditionAnimation is used as a control structure to play a specific child animation +/// depending on the result of executing the conditionScript. If the conditionScript +/// evaluates to true, the first child animation is played. If it evaluates to false, +/// the second child animation is played (although nothing is played if a second animation is not present). +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations to be played. +/// JavaScript that should evaluate to true or false to determine which child +/// animation to play. $AA.ConditionAnimation = function(target, duration, fps, animations, conditionScript) { - // The ConditionAnimation is used as a control structure to play a specific child animation - // depending on the result of executing the conditionScript. If the conditionScript - // evaluates to true, the first child animation is played. If it evaluates to false, - // the second child animation is played (although nothing is played if a second animation is not present). - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "animations" - array of child animations - // "conditionScript" - javaScript that should evaluate to true or false to determine which child - // animation to play. $AA.ConditionAnimation.initializeBase(this, [target, duration, fps, animations]); // Condition to determine which index we will play this._conditionScript = conditionScript; } $AA.ConditionAnimation.prototype = { + /// + /// Get the index of the animation that is selected to be played. If this returns an index outside the bounds of + /// the child animations array, then nothing is played. + /// + /// getSelectedIndex: function() { - // Get the index of the animation that is selected to be played. If this returns an index outside the bounds of - // the child animations array, then nothing is played. - // returns index of the selected child animation to play var selected = -1; if(this._conditionScript && this._conditionScript.length > 0) { try { @@ -1124,9 +1296,14 @@ $AA.ConditionAnimation.prototype = { return selected; }, + /// + /// JavaScript that should evaluate to true or false to determine which + /// child animation to play. + /// + /// get_conditionScript + /// set_conditionScript + /// get_conditionScript: function() { - // JavaScript that should evaluate to true or false to determine which - // child animation to play. return this._conditionScript; }, set_conditionScript: function(value) { @@ -1139,28 +1316,35 @@ $AA.ConditionAnimation.prototype = { $AA.ConditionAnimation.registerClass('Sys.Extended.UI.Animation.ConditionAnimation', $AA.SelectionAnimation); $AA.registerAnimation('condition', $AA.ConditionAnimation); +/// +/// The CaseAnimation is used as a control structure to play a specific child animation depending on +/// the result of executing the selectScript, which should return the index of the child animation to +/// play (this is similar to the case or select statements in C#/VB, etc.). If the provided +/// index is outside the bounds of the child animations array (or if nothing was returned) then we will not play anything. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Array of child animations to be played. +/// JavaScript that should evaluate to the index of the appropriate child animation to play. +/// If this returns an index outside the bounds of the child animations array, then nothing is played. $AA.CaseAnimation = function(target, duration, fps, animations, selectScript) { - // The CaseAnimation is used as a control structure to play a specific child animation depending on - // the result of executing the selectScript, which should return the index of the child animation to - // play (this is similar to the case or select statements in C#/VB, etc.). If the provided - // index is outside the bounds of the child animations array (or if nothing was returned) then we will not play anything. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "animations" - array of child animations - // "selectScript" - JavaScript that should evaluate to the index of the appropriate child animation to play. - // If this returns an index outside the bounds of the child animations array, then nothing is played. $AA.CaseAnimation.initializeBase(this, [target, duration, fps, animations]); // Condition to determine which index we will play this._selectScript = selectScript; } $AA.CaseAnimation.prototype = { + /// + /// Get the index of the animation that is selected to be played. If this returns an index outside the bounds of + /// the child animations array, then nothing is played. + /// + /// getSelectedIndex: function() { - // Get the index of the animation that is selected to be played. If this returns an index outside the bounds of - // the child animations array, then nothing is played. - // returns index of the selected child animation to play var selected = -1; if(this._selectScript && this._selectScript.length > 0) { try { @@ -1173,9 +1357,14 @@ $AA.CaseAnimation.prototype = { return selected; }, + /// + /// JavaScript that should evaluate to the index of the appropriate child animation to play. + /// If this returns an index outside the bounds of the child animations array, then nothing is played. + /// + /// get_selectScript + /// set_selectScript + /// get_selectScript: function() { - // JavaScript that should evaluate to the index of the appropriate child animation to play. - // If this returns an index outside the bounds of the child animations array, then nothing is played. return this._selectScript; }, set_selectScript: function(value) { @@ -1199,23 +1388,28 @@ $AA.FadeEffect.prototype = { } $AA.FadeEffect.registerEnum("Sys.Extended.UI.Animation.FadeEffect", false); +/// +/// The FadeAnimation is used to fade an element in or out of view, depending on the +/// provided Sys.Extended.UI.Animation.FadeEffect, by settings its opacity. +/// The minimum and maximum opacity values can be specified to precisely control the fade. +/// You may also consider using FadeInAnimation or FadeOutAnimation if you know the only direction you +/// are fading. +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// determine whether to fade the element in or fade the element out. The possible values are FadeIn +/// and FadeOut. The default value is FadeOut. +/// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. +/// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. +/// whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its +/// background color (the latter is required in case the user has ClearType enabled). The default value is true. +/// This is obviously ignored when working in other browsers. $AA.FadeAnimation = function(target, duration, fps, effect, minimumOpacity, maximumOpacity, forceLayoutInIE) { - // The FadeAnimation is used to fade an element in or out of view, depending on the - // provided , by settings its opacity. - // The minimum and maximum opacity values can be specified to precisely control the fade. - // You may also consider using FadeInAnimation or FadeOutAnimation if you know the only direction you - // are fading. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "effect" - determine whether to fade the element in or fade the element out. The possible values are FadeIn - // and FadeOut. The default value is FadeOut. - // "minimumOpacity" - minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. - // "maximumOpacity" - maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. - // "forceLayoutInIE" - whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. $AA.FadeAnimation.initializeBase(this, [target, duration, fps]); // The effect determines whether or not we fade in or out @@ -1288,8 +1482,11 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. $AA.FadeAnimation.callBaseMethod(this, 'onStart'); this._currentTarget = this.get_target(); @@ -1301,16 +1498,21 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// Determine the current opacity after the given percentage of its duration has elapsed. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Determine the current opacity after the given percentage of its duration has elapsed - // "percentage" - percentage of the animation already complete - // returns - current opacity after the given percentage of its duration has elapsed that will be passed to setValue return this.interpolate(this._start, this._end, percentage); }, + /// + /// Set the current opacity of the element. + /// + /// + /// Current opacity (as retreived from getAnimatedValue). setValue: function(value) { - // Set the current opacity of the element. - // "value" - current opacity (as retreived from getAnimatedValue) // This method will be replaced by a dynamically generated function that requires no logic // to determine whether it should use filters or the style's opacity. if(this._currentTarget) { @@ -1318,9 +1520,14 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// Determine whether to fade the element in or fade the element out. The possible values are + /// FadeIn and FadeOut. The default value is FadeOut. + /// + ///get_effect + ///set_effect + /// get_effect: function() { - // Determine whether to fade the element in or fade the element out. The possible values are - // FadeIn and FadeOut. The default value is FadeOut. return this._effect; }, set_effect: function(value) { @@ -1332,9 +1539,14 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. + /// The default value is 0. + /// + ///get_minimumOpacity + ///set_minimumOpacity + /// get_minimumOpacity: function() { - // Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. - // The default value is 0. return this._min; }, set_minimumOpacity: function(value) { @@ -1346,9 +1558,14 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. + /// The default value is 1. + /// + ///get_maximumOpacity + ///set_maximumOpacity + /// get_maximumOpacity: function() { - // Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. - // The default value is 1. return this._max; }, set_maximumOpacity: function(value) { @@ -1360,10 +1577,15 @@ $AA.FadeAnimation.prototype = { } }, + /// + /// Whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its + /// background color (the latter is required in case the user has ClearType enabled). The default value is true. + /// This is obviously ignored when working in other browsers. + /// + ///get_forceLayoutInIE + ///set_forceLayoutInIE + /// get_forceLayoutInIE: function() { - // Whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. return this._forceLayoutInIE; }, set_forceLayoutInIE: function(value) { @@ -1374,32 +1596,48 @@ $AA.FadeAnimation.prototype = { } }, - set_startValue: function(value) { - // Set the start value (so that child animations can set the current opacity as the start value when fading in or out) + /// + /// Set the start value (so that child animations can set the current opacity as the start value when fading in or out). + /// + /// + /// Opacity to start fade animation with. + setStartValue: function(value) { value = this._getFloat(value); this._start = value; + }, + set_startValue: function(value) { + Sys.Extended.Deprecated("setStartValue(value)", "set_startValue(value)"); + this.setStartValue(value); } } $AA.FadeAnimation.registerClass('Sys.Extended.UI.Animation.FadeAnimation', $AA.Animation); $AA.registerAnimation('fade', $AA.FadeAnimation); +/// +/// The FadeInAnimation will fade the target in by moving from hidden to visible. +/// It starts the animation the target's current opacity. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. +/// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. +/// whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its +/// background color (the latter is required in case the user has ClearType enabled). The default value is true. +/// This is obviously ignored when working in other browsers. $AA.FadeInAnimation = function(target, duration, fps, minimumOpacity, maximumOpacity, forceLayoutInIE) { - // The FadeInAnimation will fade the target in by moving from hidden to visible. - // It starts the animation the target's current opacity. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "minimumOpacity" - minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. - // "maximumOpacity" - maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. - // "forceLayoutInIE" - whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. $AA.FadeInAnimation.initializeBase(this, [target, duration, fps, $AA.FadeEffect.FadeIn, minimumOpacity, maximumOpacity, forceLayoutInIE]); } $AA.FadeInAnimation.prototype = { + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. $AA.FadeInAnimation.callBaseMethod(this, 'onStart'); if(this._currentTarget) { @@ -1411,22 +1649,31 @@ $AA.FadeInAnimation.registerClass('Sys.Extended.UI.Animation.FadeInAnimation', $ $AA.registerAnimation('fadeIn', $AA.FadeInAnimation); +/// +/// The FadeOutAnimation will fade the element out by moving from visible to hidden. It starts the animation +/// at the element's current opacity. +/// +/// + +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. +/// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. +/// whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its +/// background color (the latter is required in case the user has ClearType enabled). The default value is true. +/// This is obviously ignored when working in other browsers. $AA.FadeOutAnimation = function(target, duration, fps, minimumOpacity, maximumOpacity, forceLayoutInIE) { - // The FadeInAnimation will fade the element out by moving from visible to hidden. It starts the animation - // at the element's current opacity. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "minimumOpacity" - minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. - // "maximumOpacity" - maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. - // "forceLayoutInIE" - whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. $AA.FadeOutAnimation.initializeBase(this, [target, duration, fps, $AA.FadeEffect.FadeOut, minimumOpacity, maximumOpacity, forceLayoutInIE]); } $AA.FadeOutAnimation.prototype = { + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. $AA.FadeOutAnimation.callBaseMethod(this, 'onStart'); if(this._currentTarget) { @@ -1437,23 +1684,28 @@ $AA.FadeOutAnimation.prototype = { $AA.FadeOutAnimation.registerClass('Sys.Extended.UI.Animation.FadeOutAnimation', $AA.FadeAnimation); $AA.registerAnimation('fadeOut', $AA.FadeOutAnimation); +/// +/// The PulseAnimation fades an element in and our repeatedly to create a pulsating +/// effect. The iterations determines how many pulses there will be (which defaults +/// to three, but it will repeat infinitely if given zero or less). The duration +/// property defines the duration of each fade in or fade out, not the duration of +/// the animation as a whole. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence +/// will repeat forever. The default value is 1 iteration. +/// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. +/// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. +/// whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its +/// background color (the latter is required in case the user has ClearType enabled). The default value is true. +/// This is obviously ignored when working in other browsers. $AA.PulseAnimation = function(target, duration, fps, iterations, minimumOpacity, maximumOpacity, forceLayoutInIE) { - // The PulseAnimation fades an element in and our repeatedly to create a pulsating - // effect. The iterations determines how many pulses there will be (which defaults - // to three, but it will repeat infinitely if given zero or less). The duration - // property defines the duration of each fade in or fade out, not the duration of - // the animation as a whole. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "iterations" - number of times to repeatedly play the sequence. If zero or less iterations are specified, the sequence - // will repeat forever. The default value is 1 iteration. - // "minimumOpacity" - minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. - // "maximumOpacity" - maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. - // "forceLayoutInIE" - whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. $AA.PulseAnimation.initializeBase(this, [target, duration, fps, null, ((iterations !== undefined) ? iterations : 3)]); // Create the FadeOutAnimation @@ -1465,9 +1717,13 @@ $AA.PulseAnimation = function(target, duration, fps, iterations, minimumOpacity, this.add(this._in); } $AA.PulseAnimation.prototype = { - + /// + /// Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. + /// + ///get_minimumOpacity + ///set_minimumOpacity + /// get_minimumOpacity: function() { - // Minimum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 0. return this._out.get_minimumOpacity(); }, set_minimumOpacity: function(value) { @@ -1477,8 +1733,13 @@ $AA.PulseAnimation.prototype = { this.raisePropertyChanged('minimumOpacity'); }, + /// + /// Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. + /// + ///get_maximumOpacity + ///set_maximumOpacity + /// get_maximumOpacity: function() { - // Maximum opacity to use when fading in or out. Its value can range from between 0 to 1. The default value is 1. return this._out.get_maximumOpacity(); }, set_maximumOpacity: function(value) { @@ -1488,10 +1749,15 @@ $AA.PulseAnimation.prototype = { this.raisePropertyChanged('maximumOpacity'); }, + /// + /// Whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its + /// background color (the latter is required in case the user has ClearType enabled). The default value is true. + /// This is obviously ignored when working in other browsers. + /// + ///get_forceLayoutInIE + ///set_forceLayoutInIE + /// get_forceLayoutInIE: function() { - // Whether or not we should force a layout to be created for Internet Explorer by giving it a width and setting its - // background color (the latter is required in case the user has ClearType enabled). The default value is true. - // This is obviously ignored when working in other browsers. return this._out.get_forceLayoutInIE(); }, set_forceLayoutInIE: function(value) { @@ -1501,39 +1767,60 @@ $AA.PulseAnimation.prototype = { this.raisePropertyChanged('forceLayoutInIE'); }, - set_duration: function(value) { - // Override the duration property + /// + /// Override the duration property. + /// + /// + /// Length of the animation in seconds. + setDuration: function(value) { value = this._getFloat(value); $AA.PulseAnimation.callBaseMethod(this, 'set_duration', [value]); this._in.set_duration(value); this._out.set_duration(value); }, + set_duration: function(value) { + Sys.Extended.Deprecated("setDuration(value)", "set_duration(value)"); + this.setDuration(value); + }, - set_fps: function(value) { - // Override the fps property + /// + /// Override the fps property. + /// + /// + /// Number of steps per second.. + setFps: function(value) { value = this._getInteger(value); $AA.PulseAnimation.callBaseMethod(this, 'set_fps', [value]); this._in.set_fps(value); this._out.set_fps(value); + }, + set_fps: function(value) { + Sys.Extended.Deprecated("setFps(value)", "set_fps(value)"); + this.setFps(value); } } $AA.PulseAnimation.registerClass('Sys.Extended.UI.Animation.PulseAnimation', $AA.SequenceAnimation); $AA.registerAnimation('pulse', $AA.PulseAnimation); +/// +/// The PropertyAnimation is a useful base animation that will assign the value from +/// getAnimatedValue to a specified property. You can provide the name of +/// a property alongside an optional propertyKey (which indicates the value +/// property[propertyKey], like style['backgroundColor']). +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Property of the target element to set when animating. +/// optional key of the property to be set (which indicates the value property[propertyKey], +/// like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly +/// format (i.e. backgroundColor instead of background-color). $AA.PropertyAnimation = function(target, duration, fps, property, propertyKey) { - // The PropertyAnimation is a useful base animation that will assign the value from - // getAnimatedValue to a specified property. You can provide the name of - // a property alongside an optional propertyKey (which indicates the value - // property[propertyKey], like style['backgroundColor']). - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "property" - property of the target element to set when animating - // "propertyKey" - optional key of the property to be set (which indicates the value property[propertyKey], - // like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly - // format (i.e. backgroundColor instead of background-color). $AA.PropertyAnimation.initializeBase(this, [target, duration, fps]); // Name of the property to set @@ -1549,13 +1836,21 @@ $AA.PropertyAnimation = function(target, duration, fps, property, propertyKey) { this._currentTarget = null; } $AA.PropertyAnimation.prototype = { + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { - // The onStart method is called just before the animation is played each time. $AA.PropertyAnimation.callBaseMethod(this, 'onStart'); this._currentTarget = this.get_target(); }, + /// + /// Set the property's value. + /// + /// + /// Value to set. setValue: function(value) { var element = this._currentTarget; if(element && this._property && this._property.length > 0) { @@ -1567,6 +1862,10 @@ $AA.PropertyAnimation.prototype = { } }, + /// + /// Get the property's current value. + /// + /// getValue: function() { var element = this.get_target(); if(element && this._property && this._property.length > 0) { @@ -1581,6 +1880,12 @@ $AA.PropertyAnimation.prototype = { return null; }, + /// + /// A string value specifying the name of the target element's property to be set when animation plays. + /// + /// get_property + /// set_property + /// get_property: function() { return this._property; }, @@ -1591,9 +1896,14 @@ $AA.PropertyAnimation.prototype = { } }, + /// + /// Optional key of the property to be set (which indicates the value property[propertyKey], like style['backgroundColor']). + /// Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color). + /// + /// get_propertyKey + /// set_propertyKey + /// get_propertyKey: function() { - // Optional key of the property to be set (which indicates the value property[propertyKey], like style['backgroundColor']). - // Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color). return this._propertyKey; }, set_propertyKey: function(value) { @@ -1606,35 +1916,46 @@ $AA.PropertyAnimation.prototype = { $AA.PropertyAnimation.registerClass('Sys.Extended.UI.Animation.PropertyAnimation', $AA.Animation); $AA.registerAnimation('property', $AA.PropertyAnimation); +/// +/// The DiscreteAnimation inherits from Sys.Extended.UI.Animation.PropertyAnimation +/// and sets the value of the property to the elements in a provided array of values. +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Property of the target element to set when animating. +/// optional key of the property to be set (which indicates the value property[propertyKey], +/// like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly +/// format (i.e. backgroundColor instead of background-color). +/// Array of possible values of the property that will be iterated over as the animation is played. $AA.DiscreteAnimation = function(target, duration, fps, property, propertyKey, values) { - // The DiscreteAnimation inherits from - // and sets the value of the property to the elements in a provided array of values. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "property" - property of the target element to set when animating - // "propertyKey" - optional key of the property to be set (which indicates the value property[propertyKey], - // like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly - // format (i.e. backgroundColor instead of background-color). - // "values" - array of possible values of the property that will be iterated over as the animation is played $AA.DiscreteAnimation.initializeBase(this, [target, duration, fps, property, propertyKey]); // Values to assign to the property this._values = (values && values.length) ? values : []; } $AA.DiscreteAnimation.prototype = { + /// + /// Assign the value whose index corresponds to the current percentage. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Assign the value whose index corresponds to the current percentage - // "percentage" - percentage of the animation already complete - // returns - state of the animation after the given percentage of its duration has elapsed that will - // be passed to setValue var index = Math.floor(this.interpolate(0, this._values.length - 1, percentage)); return this._values[index]; }, + /// + /// Array of possible values of the property that will be iterated over as the animation is played + /// + /// get_values + /// set_values + /// get_values: function() { - // Array of possible values of the property that will be iterated over as the animation is played return this._values; }, set_values: function(value) { @@ -1647,19 +1968,24 @@ $AA.DiscreteAnimation.prototype = { $AA.DiscreteAnimation.registerClass('Sys.Extended.UI.Animation.DiscreteAnimation', $AA.PropertyAnimation); $AA.registerAnimation('discrete', $AA.DiscreteAnimation); +/// +/// The InterpolatedAnimation assigns a range of values between startValue +/// and endValue to the designated property. +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Property of the target element to set when animating. +/// optional key of the property to be set (which indicates the value property[propertyKey], +/// like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly +/// format (i.e. backgroundColor instead of background-color). +/// Start of the range of values. +/// End of the range of values. $AA.InterpolatedAnimation = function(target, duration, fps, property, propertyKey, startValue, endValue) { - // The InterpolatedAnimation assigns a range of values between startValue - // and endValue to the designated property. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "property" - property of the target element to set when animating. The default value is 'style'. - // "propertyKey" - optional key of the property to be set (which indicates the value property[propertyKey], - // like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly - // format (i.e. backgroundColor instead of background-color). - // "startValue" - start of the range of values - // "endValue" - end of the range of values $AA.InterpolatedAnimation.initializeBase(this, [target, duration, fps, ((property !== undefined) ? property : 'style'), propertyKey]); // Start and end values @@ -1667,6 +1993,12 @@ $AA.InterpolatedAnimation = function(target, duration, fps, property, propertyKe this._endValue = endValue; } $AA.InterpolatedAnimation.prototype = { + /// + /// Specifies the start value of the value range. + /// + /// get_startValue + /// set_startValue + /// get_startValue: function() { return this._startValue; }, @@ -1678,6 +2010,12 @@ $AA.InterpolatedAnimation.prototype = { } }, + /// + /// Specifies the end value of the value range. + /// + /// get_endValue + /// set_endValue + /// get_endValue: function() { return this._endValue; }, @@ -1692,19 +2030,25 @@ $AA.InterpolatedAnimation.prototype = { $AA.InterpolatedAnimation.registerClass('Sys.Extended.UI.Animation.InterpolatedAnimation', $AA.PropertyAnimation); $AA.registerAnimation('interpolated', $AA.InterpolatedAnimation); +/// +/// The ColorAnimation transitions the value of the property between +/// two colors (although it does ignore the alpha channel). The colors must be 7-character hex strings +/// (like #246ACF). +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Property of the target element to set when animating. +/// optional key of the property to be set (which indicates the value property[propertyKey], +/// like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly +/// format (i.e. backgroundColor instead of background-color). +/// Start of the range of values. +/// End of the range of values. $AA.ColorAnimation = function(target, duration, fps, property, propertyKey, startValue, endValue) { - // The ColorAnimation transitions the value of the property between - // two colors (although it does ignore the alpha channel). The colors must be 7-character hex strings - // (like #246ACF). - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "property" - property of the target element to set when animating. The default value is 'style'. - // "propertyKey" - optional key of the property to be set (which indicates the value property[propertyKey], - // like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color). - // "startValue" - start of the range of colors - // "endValue" - end of the range of colors $AA.ColorAnimation.initializeBase(this, [target, duration, fps, property, propertyKey, startValue, endValue]); // Cached start/end RBG triplets @@ -1717,8 +2061,11 @@ $AA.ColorAnimation = function(target, duration, fps, property, propertyKey, star this._interpolateBlue = false; } $AA.ColorAnimation.prototype = { + /// + /// Determine which dimensions of color will be animated. + /// + /// onStart: function() { - // Determine which dimensions of color will be animated $AA.ColorAnimation.callBaseMethod(this, 'onStart'); this._start = $AA.ColorAnimation.getRGB(this.get_startValue()); @@ -1729,10 +2076,12 @@ $AA.ColorAnimation.prototype = { this._interpolateBlue = (this._start.Blue != this._end.Blue); }, + /// + /// Get the interpolated color values. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Get the interpolated color values - // "percentage" - percentage of the animation already complete - // returns current color formatted as a 7-character hex string (like #246ACF). var r = this._start.Red; var g = this._start.Green; var b = this._start.Blue; @@ -1749,26 +2098,37 @@ $AA.ColorAnimation.prototype = { return $AA.ColorAnimation.toColor(r, g, b); }, + /// + /// Starting color of the transition formatted as a 7-character hex string (like #246ACF). + /// + /// set_startValue + /// set_startValue: function(value) { - // Starting color of the transition formatted as a 7-character hex string (like #246ACF). if(this._startValue != value) { this._startValue = value; this.raisePropertyChanged('startValue'); } }, + /// + /// Ending color of the transition formatted as a 7-character hex string (like #246ACF). + /// + /// set_startValue + /// set_endValue: function(value) { - // Ending color of the transition formatted as a 7-character hex string (like #246ACF). if(this._endValue != value) { this._endValue = value; this.raisePropertyChanged('endValue'); } } } + +/// +/// Convert the color to an RGB triplet. +/// +/// +/// Color formatted as a 7-character hex string (like #246ACF). $AA.ColorAnimation.getRGB = function(color) { - // Convert the color to an RGB triplet - // "color" - color formatted as a 7-character hex string (like #246ACF) - // returns object representing the color with Red, Green, and Blue properties. if(!color || color.length != 7) { throw String.format(Sys.Extended.UI.Resources.Animation_InvalidColor, color); } @@ -1778,12 +2138,15 @@ $AA.ColorAnimation.getRGB = function(color) { 'Blue': parseInt(color.substr(5, 2), 16) }; } + +/// +/// Convert an RBG triplet into a 7-character hex string (like #246ACF). +/// +/// +/// Value of the color's red dimension. +/// Value of the color's green dimension. +/// Value of the color's blue dimension. $AA.ColorAnimation.toColor = function(red, green, blue) { - // Convert an RBG triplet into a 7-character hex string (like #246ACF) - // "red" - value of the color's red dimension - // "green" - value of the color's green dimension - // "blue" - value of the color's blue dimension - // returns color as a 7-character hex string (like #246ACF) var r = red.toString(16); var g = green.toString(16); var b = blue.toString(16); @@ -1795,37 +2158,48 @@ $AA.ColorAnimation.toColor = function(red, green, blue) { $AA.ColorAnimation.registerClass('Sys.Extended.UI.Animation.ColorAnimation', $AA.InterpolatedAnimation); $AA.registerAnimation('color', $AA.ColorAnimation); +/// +/// The LengthAnimation is identical to Sys.Extended.UI.Animation.InterpolatedAnimation +/// except it adds a unit to the value before assigning it to the property. +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Property of the target element to set when animating. +/// optional key of the property to be set (which indicates the value property[propertyKey], +/// like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly +/// format (i.e. backgroundColor instead of background-color). +/// Start of the range of values. +/// End of the range of values. +/// Unit of the interpolated values. The default value is 'px'. $AA.LengthAnimation = function(target, duration, fps, property, propertyKey, startValue, endValue, unit) { - // The LengthAnimation is identical to - // except it adds a unit to the value before assigning it to the property. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "property" - property of the target element to set when animating. The default value is 'style'. - // "propertyKey" - optional key of the property to be set (which indicates the value property[propertyKey], - // like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly - // format (i.e. backgroundColor instead of background-color). - // "startValue" - start of the range of values - // "endValue" - end of the range of values - // "unit" - unit of the interpolated values. The default value is 'px'. $AA.LengthAnimation.initializeBase(this, [target, duration, fps, property, propertyKey, startValue, endValue]); // Unit of length (which defaults to px) this._unit = (unit != null) ? unit : 'px'; } $AA.LengthAnimation.prototype = { - + /// + /// Get the interpolated length value. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Get the interpolated length value - // "percentage" - percentage of the animation already complete - // returns interpolated length var value = this.interpolate(this.get_startValue(), this.get_endValue(), percentage); return Math.round(value) + this._unit; }, + /// + /// Unit of the interpolated values. The default value is 'px'. + /// + /// get_unit + /// set_unit + /// get_unit: function() { - // Unit of the interpolated values. The default value is 'px'. return this._unit; }, set_unit: function(value) { @@ -1838,24 +2212,29 @@ $AA.LengthAnimation.prototype = { $AA.LengthAnimation.registerClass('Sys.Extended.UI.Animation.LengthAnimation', $AA.InterpolatedAnimation); $AA.registerAnimation('length', $AA.LengthAnimation); +/// +/// The MoveAnimation is used to move the target element. If the +/// relative flag is set to true, then it treats the horizontal +/// and vertical properties as offsets to move the element. If the relative +/// flag is false, then it will treat the horizontal and vertical +/// properties as coordinates on the page where the target element should be moved. It is +/// important to note that the target must be positioned (i.e. absolutely) so +/// that settings its top/left style attributes will change its location. +/// +/// +/// +/// +/// Length of the animation in seconds. The default is 1. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// If relative is true, this is the offset to move horizontally. Otherwise this is the x +/// coordinate on the page where the target should be moved. +/// if relative is true, this is the offset to move vertically. Otherwise this is the y +/// coordinate on the page where the target should be moved. +/// true if we are moving relative to the current position, false if we are moving absolutely. +/// Unit of the interpolated values. The default value is 'px'. $AA.MoveAnimation = function(target, duration, fps, horizontal, vertical, relative, unit) { - // The MoveAnimation is used to move the target element. If the - // relative flag is set to true, then it treats the horizontal - // and vertical properties as offsets to move the element. If the relative - // flag is false, then it will treat the horizontal and vertical - // properties as coordinates on the page where the target element should be moved. It is - // important to note that the target must be positioned (i.e. absolutely) so - // that settings its top/left style attributes will change its location. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "horizontal" - if relative is true, this is the offset to move horizontally. Otherwise this is the x - // coordinate on the page where the target should be moved. - // "vertical" - if relative is true, this is the offset to move vertically. Otherwise this is the y - // coordinate on the page where the target should be moved. - // "relative" - true if we are moving relative to the current position, false if we are moving absolutely - // "unit" - length unit for the size of the target. The default value is 'px'. $AA.MoveAnimation.initializeBase(this, [target, duration, fps, null]); // Distance to move horizontally and vertically @@ -1870,7 +2249,10 @@ $AA.MoveAnimation = function(target, duration, fps, horizontal, vertical, relati this.add(this._horizontalAnimation); } $AA.MoveAnimation.prototype = { - + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { // Use the target's current position as the starting point for the animation $AA.MoveAnimation.callBaseMethod(this, 'onStart'); @@ -1938,16 +2320,21 @@ $AA.MoveAnimation.prototype = { $AA.MoveAnimation.registerClass('Sys.Extended.UI.Animation.MoveAnimation', $AA.ParallelAnimation); $AA.registerAnimation('move', $AA.MoveAnimation); +/// +/// The ResizeAnimation changes the size of the target from its +/// current value to the specified width and height. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// New width of the target. +/// New height of the target. +/// Length unit for the size of the target. The default value is 'px'. $AA.ResizeAnimation = function(target, duration, fps, width, height, unit) { - // The ResizeAnimation changes the size of the target from its - // current value to the specified width and height. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "width" - new width of the target - // "height" - new height of the target - // "unit" - length unit for the size of the target. The default value is 'px'. $AA.ResizeAnimation.initializeBase(this, [target, duration, fps, null]); // New size of the element @@ -1961,7 +2348,10 @@ $AA.ResizeAnimation = function(target, duration, fps, width, height, unit) { this.add(this._verticalAnimation); } $AA.ResizeAnimation.prototype = { - + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { // Use the target's current size as the starting point for the animation $AA.ResizeAnimation.callBaseMethod(this, 'onStart'); @@ -1977,6 +2367,12 @@ $AA.ResizeAnimation.prototype = { this._height : element.offsetHeight); }, + /// + /// New width of the element. + /// + ///get_width + ///set_width + /// get_width: function() { return this._width; }, @@ -1988,6 +2384,12 @@ $AA.ResizeAnimation.prototype = { } }, + /// + /// New height of the element. + /// + ///get_height + ///set_height + /// get_height: function() { return this._height; }, @@ -1999,8 +2401,13 @@ $AA.ResizeAnimation.prototype = { } }, + /// + /// Length unit for the size of the target. The default value is 'px'. + /// + ///get_unit + ///set_unit + /// get_unit: function() { - // Length unit for the size of the target. The default value is 'px'. this._horizontalAnimation.get_unit(); }, set_unit: function(value) { @@ -2015,24 +2422,30 @@ $AA.ResizeAnimation.prototype = { $AA.ResizeAnimation.registerClass('Sys.Extended.UI.Animation.ResizeAnimation', $AA.ParallelAnimation); $AA.registerAnimation('resize', $AA.ResizeAnimation); +/// +/// The ScaleAnimation scales the size of the target element by the given scaleFactor +/// (i.e. a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 +/// will double it). If scaleFont is true, the size of the font will also scale with the element. If +/// center is true, then the element's center will not move as it is scaled. It is important to note that +/// the target must be positioned (i.e. absolutely) so that setting its top/left properties will change +/// its location in order for center to have an effect. +/// +/// + +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// The amount to scale the target (a scaleFactor of .5 will +/// shrink it in half and a scaleFactor of 2.0 will double it). The default value is +/// 1, which does no scaling. +/// Length unit for the size of the target. The default value is 'px'. +/// Whether the target should stay centered while scaling. +/// Whether the font should be scaled along with the size. +/// Unit of the font, which is only used if scaleFont is true. +/// The default value is 'pt'. $AA.ScaleAnimation = function(target, duration, fps, scaleFactor, unit, center, scaleFont, fontUnit) { - // The ScaleAnimation scales the size of the target element by the given scaleFactor - // (i.e. a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 - // will double it). If scaleFont is true, the size of the font will also scale with the element. If - // center is true, then the element's center will not move as it is scaled. It is important to note that - // the target must be positioned (i.e. absolutely) so that setting its top/left properties will change - // its location in order for center to have an effect. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 1. - // "fps" - number of steps per second. The default is 25. - // "scaleFactor" - the amount to scale the target (a scaleFactor of .5 will - // shrink it in half and a scaleFactor of 2.0 will double it). The default value is - // 1, which does no scaling. - // "unit" - length unit for the size of the target. The default value is 'px'. - // "center" - whether the target should stay centered while scaling - // "scaleFont" - whether the font should be scaled along with the size - // "fontUnit" - unit of the font, which is only used if scaleFont is true. - // The default value is 'pt'. $AA.ScaleAnimation.initializeBase(this, [target, duration, fps]); // Percentage to scale @@ -2055,13 +2468,19 @@ $AA.ScaleAnimation = function(target, duration, fps, scaleFactor, unit, center, this._initialFontSize = null; } $AA.ScaleAnimation.prototype = { + /// + /// Get the amount to scale the target. + /// + /// + /// Percentage of the animation already complete. getAnimatedValue: function(percentage) { - // Get the amount to scale the target - // "percentage" - percentage of the animation already complete - // returns percentage to scale the target return this.interpolate(1.0, this._scaleFactor, percentage); }, + /// + /// The onStart method is called just before the animation is played each time. + /// + /// onStart: function() { // Cache the initial size because it will be used to determine how much to scale the element at each step of the animation $AA.ScaleAnimation.callBaseMethod(this, 'onStart'); @@ -2082,9 +2501,12 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// Scale the target by the given percentage. + /// + /// + /// Percentage to scale the target. setValue: function(scale) { - // Scale the target by the given percentage - // "scale" - percentage to scale the target if(this._element) { var width = Math.round(this._initialWidth * scale); var height = Math.round(this._initialHeight * scale); @@ -2108,6 +2530,10 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// The onEnd method is called just after the animation is played each time. + /// + /// onEnd: function() { // Wipe the cached values after the animation completes this._element = null; @@ -2119,10 +2545,15 @@ $AA.ScaleAnimation.prototype = { $AA.ScaleAnimation.callBaseMethod(this, 'onEnd'); }, + /// + /// The amount to scale the target (a scaleFactor of .5 will + /// shrink it in half and a scaleFactor of 2.0 will double it). The default value is + /// 1, which does no scaling. + /// + ///get_scaleFactore + ///set_scaleFactore + /// get_scaleFactor: function() { - // The amount to scale the target (a scaleFactor of .5 will - // shrink it in half and a scaleFactor of 2.0 will double it). The default value is - // 1, which does no scaling. return this._scaleFactor; }, set_scaleFactor: function(value) { @@ -2133,8 +2564,13 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// Length unit for the size of the target. The default value is 'px'. + /// + ///get_unit + ///set_unit + /// get_unit: function() { - // Length unit for the size of the target. The default value is 'px'. return this._unit; }, set_unit: function(value) { @@ -2144,8 +2580,13 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// Whether the target should stay centered while scaling. + /// + ///get_center + ///set_center + /// get_center: function() { - // Whether the target should stay centered while scaling return this._center; }, set_center: function(value) { @@ -2156,8 +2597,13 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// Whether the font should be scaled along with the size. + /// + ///get_scaleFont + ///set_scaleFont + /// get_scaleFont: function() { - // Whether the font should be scaled along with the size return this._scaleFont; }, set_scaleFont: function(value) { @@ -2168,9 +2614,14 @@ $AA.ScaleAnimation.prototype = { } }, + /// + /// Unit of the font, which is only used if scaleFont is true. + /// The default value is 'pt'. + /// + ///get_fontUnit + ///set_fontUnit + /// get_fontUnit: function() { - // Unit of the font, which is only used if scaleFont is true. - // The default value is 'pt'. return this._fontUnit; }, set_fontUnit: function(value) { @@ -2183,16 +2634,21 @@ $AA.ScaleAnimation.prototype = { $AA.ScaleAnimation.registerClass('Sys.Extended.UI.Animation.ScaleAnimation', $AA.Animation); $AA.registerAnimation('scale', $AA.ScaleAnimation); +/// +/// Action is a base class for all "non-animating" animations that provides empty implementations +/// for abstract methods and adds a doAction method that will be called to perform the action's +/// operation. While regular animations perform an operation in a sequence of small steps spread over an interval, +/// the actions perform a single operation instantaneously. By default, all actions have a duration +/// of zero. The actions are very useful for defining complex animations. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. $AA.Action = function(target, duration, fps) { - // Action is a base class for all "non-animating" animations that provides empty implementations - // for abstract methods and adds a doAction method that will be called to perform the action's - // operation. While regular animations perform an operation in a sequence of small steps spread over an interval, - // the actions perform a single operation instantaneously. By default, all actions have a duration - // of zero. The actions are very useful for defining complex animations. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. $AA.Action.initializeBase(this, [target, duration, fps]); // Set the duration to 0 if it wasn't specified @@ -2201,51 +2657,76 @@ $AA.Action = function(target, duration, fps) { } } $AA.Action.prototype = { - + /// + /// Calls the doAction method when the animation completes. + /// + /// onEnd: function() { - // Call the doAction method when the animation completes this.doAction(); $AA.Action.callBaseMethod(this, 'onEnd'); }, + /// + /// The doAction method must be implemented by all actions. + /// + /// doAction: function() { - // The doAction method must be implemented by all actions throw Error.notImplemented(); }, + /// + /// Empty implementation of required abstract method. + /// + /// getAnimatedValue: function() { - // Empty implementation of required abstract method }, + + /// + /// Empty implementation of required abstract method. + /// + /// setValue: function() { - // Empty implementation of required abstract method } } $AA.Action.registerClass('Sys.Extended.UI.Animation.Action', $AA.Animation); $AA.registerAnimation('action', $AA.Action); +/// +/// The EnableAction changes whether or not the target is disabled. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Whether or not the target is disabled. The default value is true. $AA.EnableAction = function(target, duration, fps, enabled) { - // The EnableAction changes whether or not the target is disabled. - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. - // "enabled" - whether or not the target is disabled. The default value is true. $AA.EnableAction.initializeBase(this, [target, duration, fps]); // Whether to enable or disable this._enabled = (enabled !== undefined) ? enabled : true; } $AA.EnableAction.prototype = { + /// + /// Sets the enabled property of the target. + /// + /// doAction: function() { - // Set the enabled property of the target var element = this.get_target(); if(element) { element.disabled = !this._enabled; } }, + /// + /// Whether or not the target is disabled. The default value is true. + /// + ///get_enabled + ///set_enabled + /// get_enabled: function() { - // Whether or not the target is disabled. The default value is true. return this._enabled; }, set_enabled: function(value) { @@ -2259,29 +2740,42 @@ $AA.EnableAction.prototype = { $AA.EnableAction.registerClass('Sys.Extended.UI.Animation.EnableAction', $AA.Action); $AA.registerAnimation('enableAction', $AA.EnableAction); +/// +/// The HideAction simply hides the target from view +/// (by setting its style's display attribute to 'none') +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// true to show the target, false to hide it. The default value is false. $AA.HideAction = function(target, duration, fps, visible) { - // The HideAction simply hides the target from view - // (by setting its style's display attribute to 'none') - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. - // "visible" - true to show the target, false to hide it. The default value is false. $AA.HideAction.initializeBase(this, [target, duration, fps]); this._visible = visible; } $AA.HideAction.prototype = { + /// + /// Hides the target element. + /// + /// doAction: function() { - // Hide the target var element = this.get_target(); if(element) { $common.setVisible(element, this._visible); } }, + /// + /// True to show the target, false to hide it. The default value is false. + /// + ///get_visible + ///set_visible + /// get_visible: function() { - // True to show the target, false to hide it. The default value is false. return this._visible; }, set_visible: function(value) { @@ -2294,15 +2788,20 @@ $AA.HideAction.prototype = { $AA.HideAction.registerClass('Sys.Extended.UI.Animation.HideAction', $AA.Action); $AA.registerAnimation('hideAction', $AA.HideAction); +/// +/// The StyleAction is used to set a particular attribute of the target's style. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Style attribute to set (this must be in a JavaScript friendly format, i.e. backgroundColor +/// instead of background-color). +/// Value to set the attribute. $AA.StyleAction = function(target, duration, fps, attribute, value) { - // The StyleAction is used to set a particular attribute of the target's style - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. - // "attribute" - style attribute to set (this must be in a JavaScript friendly format, i.e. backgroundColor - // instead of background-color) - // "value" - value to set the attribute $AA.StyleAction.initializeBase(this, [target, duration, fps]); // Style attribute (like "backgroundColor" or "borderWidth" @@ -2313,17 +2812,25 @@ $AA.StyleAction = function(target, duration, fps, attribute, value) { } $AA.StyleAction.prototype = { + /// + /// Assigns the value to the style's attribute. + /// + /// doAction: function() { - // Assign the value to the style's attribute var element = this.get_target(); if(element) { element.style[this._attribute] = this._value; } }, + /// + /// Style attribute to set (this must be in a JavaScript friendly format, i.e. backgroundColor + /// instead of background-color). + /// + ///get_attribute + ///set_attribute + /// get_attribute: function() { - // Style attribute to set (this must be in a JavaScript friendly format, i.e. backgroundColor - // instead of background-color) return this._attribute; }, set_attribute: function(value) { @@ -2333,6 +2840,12 @@ $AA.StyleAction.prototype = { } }, + /// + /// The attribute's value. + /// + ///get_value + ///set_value + /// get_value: function() { return this._value; }, @@ -2346,27 +2859,41 @@ $AA.StyleAction.prototype = { $AA.StyleAction.registerClass('Sys.Extended.UI.Animation.StyleAction', $AA.Action); $AA.registerAnimation('styleAction', $AA.StyleAction); +/// +/// OpacityAction allows you to set the opacity of the target. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// Opacity to set the target. $AA.OpacityAction = function(target, duration, fps, opacity) { - // OpacityAction allows you to set the opacity of the target - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. - // "opacity" - opacity to set the target $AA.OpacityAction.initializeBase(this, [target, duration, fps]); // Opacity this._opacity = opacity; } $AA.OpacityAction.prototype = { + /// + /// Sets the target element's opacity. + /// + /// doAction: function() { - // Set the opacity var element = this.get_target(); if(element) { $common.setElementOpacity(element, this._opacity); } }, + /// + /// The opacity value to set to the target element. + /// + ///get_opacity + ///set_opacity + /// get_opacity: function() { return this._opacity; }, @@ -2381,19 +2908,28 @@ $AA.OpacityAction.prototype = { $AA.OpacityAction.registerClass('Sys.Extended.UI.Animation.OpacityAction', $AA.Action); $AA.registerAnimation('opacityAction', $AA.OpacityAction); +/// +/// The ScriptAction is used to execute arbitrary JavaScript. +/// +/// +/// +/// +/// Target of the animation. +/// Length of the animation in seconds. The default is 1. +/// Number of steps per second. The default is 25. +/// JavaScript to execute. $AA.ScriptAction = function(target, duration, fps, script) { - // The ScriptAction is used to execute arbitrary JavaScript - // "target" - target of the animation - // "duration" - length of the animation in seconds. The default is 0. - // "fps" - number of steps per second. The default is 25. - // "script" - javaScript to execute $AA.ScriptAction.initializeBase(this, [target, duration, fps]); // Script to execute this._script = script; } $AA.ScriptAction.prototype = { + /// + /// Executes the script. + /// + /// doAction: function() { try { eval(this._script); @@ -2401,6 +2937,12 @@ $AA.ScriptAction.prototype = { } }, + /// + /// JavaScript code to execute. + /// + ///get_script + ///set_script + /// get_script: function() { return this._script; }, diff --git a/Scripts/AjaxControlToolkit/Debug/AsyncFileUpload.debug.js b/Scripts/AjaxControlToolkit/Debug/AsyncFileUpload.debug.js index 375e77736..ab869326d 100644 --- a/Scripts/AjaxControlToolkit/Debug/AsyncFileUpload.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/AsyncFileUpload.debug.js @@ -38,9 +38,9 @@ Sys.Extended.UI.AsyncFileUpload = function(element) { /// /// A name of the form. /// - /// get_postBackUrl - /// set_postBackUrl - /// + /// get_formName + /// set_formName + /// this._formName = ""; this._iframe = null; this._waitTimer = null; @@ -139,13 +139,7 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { set_postBackUrl: function(value) { this._postBackUrl = value; }, - - /// - /// Name of the form - /// - /// get_formName - /// set_formName - /// + get_formName: function() { return this._formName; }, @@ -379,7 +373,7 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { var mainForm = document.getElementById(this._formName); this._removeTimer(); this.setThrobber(false); - mainForm.target = "_top"; + this._restoreFormTarget(mainForm); mainForm.action = this._postBackUrl; var length; var contentType = ""; @@ -428,7 +422,7 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { var url = this._postBackUrl; url += url.indexOf("?") === -1 ? "?" : "&"; mainForm.action = url + 'AsyncFileUploadID=' + this.get_element().id + '&rnd=' + Math.random().toString().replace(/\./g, ""); - mainForm.target = this._iframeName; + this._changeFormTarget(mainForm); cleanup = false; this.setThrobber(true); setTimeout(function() { @@ -491,7 +485,7 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { } this._removeTimer(); - mainForm.target = "_top"; + this._restoreFormTarget(mainForm); mainForm.action = this._postBackUrl; if(this.get_completeBackColor() != "") { if(this._innerTB != null) { @@ -506,7 +500,7 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { } catch(ex) { this._removeTimer(); - mainForm.target = "_top"; + this._restoreFormTarget(mainForm); mainForm.action = this._postBackUrl; this._onError(ex.message); } @@ -532,6 +526,16 @@ Sys.Extended.UI.AsyncFileUpload.prototype = { setTimeout(function() { uploader._onError(Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem); }, 0); this._waitTimer = null; } + }, + + _changeFormTarget: function(form) { + this._mainFormOldTarget = form.target; + form.target = this._iframeName; + }, + + _restoreFormTarget: function(form) { + form.target = this._mainFormOldTarget; + this._mainFormOldTarget = undefined; } } diff --git a/Scripts/AjaxControlToolkit/Debug/AutoComplete.debug.js b/Scripts/AjaxControlToolkit/Debug/AutoComplete.debug.js index 3900ad450..c60fd7621 100644 --- a/Scripts/AjaxControlToolkit/Debug/AutoComplete.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/AutoComplete.debug.js @@ -99,6 +99,7 @@ Sys.Extended.UI.AutoCompleteBehavior = function(element) { this._focusHandler = null; this._blurHandler = null; this._bodyClickHandler = null; + this._clickHandler = null; this._completionListBlurHandler = null; this._keyDownHandler = null; this._mouseDownHandler = null; @@ -188,6 +189,7 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { this._mouseOverHandler = Function.createDelegate(this, this._onListMouseOver); this._completionListBlurHandler = Function.createDelegate(this, this._onCompletionListBlur); this._bodyClickHandler = Function.createDelegate(this, this._onCompletionListBlur); + this._clickHandler = Function.createDelegate(this, this._onInputClick); this._timer = new Sys.Timer(); @@ -244,6 +246,7 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { $removeHandler(element, "focus", this._focusHandler); $removeHandler(element, "blur", this._blurHandler); $removeHandler(element, "keydown", this._keyDownHandler); + $removeHandler(element, "click", this._clickHandler); $removeHandler(this._completionListElement, 'blur', this._completionListBlurHandler); $removeHandler(this._completionListElement, 'mousedown', this._mouseDownHandler); $removeHandler(this._completionListElement, 'mouseup', this._mouseUpHandler); @@ -258,6 +261,7 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { this._tickHandler = null; this._focusHandler = null; this._blurHandler = null; + this._clickHandler = null; this._keyDownHandler = null; this._completionListBlurHandler = null; this._mouseDownHandler = null; @@ -277,6 +281,7 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { $addHandler(element, "focus", this._focusHandler); $addHandler(element, "blur", this._blurHandler); $addHandler(element, "keydown", this._keyDownHandler); + $addHandler(element, "click", this._clickHandler); }, initializeCompletionList: function(element) { @@ -307,6 +312,16 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { $addHandler(document.body, 'click', this._bodyClickHandler); }, + _onInputClick: function(e) { + if(!e) + e = window.event; + + if(e.stopPropagation) + e.stopPropagation(); + else + e.cancelBubble = true; + }, + _currentCompletionWord: function() { var element = this.get_element(); var elementValue = element.value; @@ -708,7 +723,10 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = { } else { element.value = newText; } - $common.tryFireEvent(element, "change"); + + // In Chrome and Firefox, this event is triggered automatically + if ($common.isMsBrowser() || $common.isAppleBrowser()) + $common.tryFireEvent(element, "change"); this.raise_itemSelected(new Sys.Extended.UI.AutoCompleteItemEventArgs(item, text, item ? item._value : null)); @@ -1281,4 +1299,4 @@ Sys.Extended.UI.AutoCompleteItemEventArgs.prototype = { this._value = value; } } -Sys.Extended.UI.AutoCompleteItemEventArgs.registerClass('Sys.Extended.UI.AutoCompleteItemEventArgs', Sys.EventArgs); \ No newline at end of file +Sys.Extended.UI.AutoCompleteItemEventArgs.registerClass('Sys.Extended.UI.AutoCompleteItemEventArgs', Sys.EventArgs); diff --git a/Scripts/AjaxControlToolkit/Debug/BalloonPopup.debug.js b/Scripts/AjaxControlToolkit/Debug/BalloonPopup.debug.js index e157ebc43..e88a24867 100644 --- a/Scripts/AjaxControlToolkit/Debug/BalloonPopup.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/BalloonPopup.debug.js @@ -534,7 +534,8 @@ Sys.Extended.UI.BalloonPopupControlBehavior.prototype = { do { _elementLeftPosition += e.offsetLeft; _elementTopPosition += e.offsetTop; - } while(e = e.offsetParent); + e = e.offsetParent; + } while(e); } var _pageTopPosition = this.posTop(); diff --git a/Scripts/AjaxControlToolkit/Debug/BarChart.debug.js b/Scripts/AjaxControlToolkit/Debug/BarChart.debug.js index 8bd19de5c..b161bb255 100644 --- a/Scripts/AjaxControlToolkit/Debug/BarChart.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/BarChart.debug.js @@ -2,9 +2,6 @@ Sys.Extended.UI.BarChart = function(element) { Sys.Extended.UI.BarChart.initializeBase(this, [element]); - var id = this.get_id(); - id = id.replace("_ctl00", ""); - this._parentDiv = document.getElementById(id + "__ParentDiv"); this._chartWidth = '300'; this._chartHeight = '200'; @@ -18,6 +15,7 @@ Sys.Extended.UI.BarChart = function(element) { this._valueAxisLineColor = ''; this._categoryAxisLineColor = ''; this._baseLineColor = ''; + this._container = null; // variables this.yMax = 0; @@ -51,6 +49,8 @@ Sys.Extended.UI.BarChart.prototype = { if(this._valueAxisLines == 0) { this._valueAxisLines = 9; } + + this._parentDiv = this.get_container(); if(this._chartType == Sys.Extended.UI.BarChartType.Column || this._chartType == Sys.Extended.UI.BarChartType.StackedColumn) this.generateColumnChart(); @@ -349,9 +349,7 @@ Sys.Extended.UI.BarChart.prototype = { svgContents = svgContents + ''; svgContents = svgContents + ''; - svgContents = svgContents + String.format('', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10); - svgContents = svgContents + String.format('', this._chartWidth, this._chartHeight); - svgContents = svgContents + String.format('', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10); + svgContents = svgContents + String.format('', this._chartWidth, this._chartHeight); return svgContents; }, @@ -840,7 +838,14 @@ Sys.Extended.UI.BarChart.prototype = { }, set_baseLineColor: function(value) { this._baseLineColor = value; - } + }, + + get_container: function () { + return this._container; + }, + set_container: function (value) { + this._container = value; + }, }; Sys.Extended.UI.BarChart.registerClass("Sys.Extended.UI.BarChart", Sys.Extended.UI.ControlBase); diff --git a/Scripts/AjaxControlToolkit/Debug/BaseScripts.debug.js b/Scripts/AjaxControlToolkit/Debug/BaseScripts.debug.js index 1f6ca2ba1..abb5cd852 100644 --- a/Scripts/AjaxControlToolkit/Debug/BaseScripts.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/BaseScripts.debug.js @@ -306,15 +306,24 @@ Sys.Extended.UI.ControlBase = function(element) { this._onerror$delegate = Function.createDelegate(this, this._onerror); } -Sys.Extended.UI.ControlBase.__doPostBack = function(eventTarget, eventArgument) { +Sys.Extended.UI.ControlBase._execOnSubmitCollection = function() { if (!Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()) { for (var i = 0; i < Sys.Extended.UI.ControlBase.onsubmitCollection.length; i++) { Sys.Extended.UI.ControlBase.onsubmitCollection[i](); } } +} + +Sys.Extended.UI.ControlBase.__doPostBack = function(eventTarget, eventArgument) { + Sys.Extended.UI.ControlBase._execOnSubmitCollection(); Function.createDelegate(window, Sys.Extended.UI.ControlBase.__doPostBackSaved)(eventTarget, eventArgument); } +Sys.Extended.UI.ControlBase.__doPostBackWithOptions = function(options) { + Sys.Extended.UI.ControlBase._execOnSubmitCollection(); + Sys.Extended.UI.ControlBase.__doPostBackWithOptionsSaved(options); +} + Sys.Extended.UI.ControlBase.prototype = { initialize: function() { Sys.Extended.UI.ControlBase.callBaseMethod(this, "initialize"); @@ -328,6 +337,10 @@ Sys.Extended.UI.ControlBase.prototype = { window.__doPostBack = Sys.Extended.UI.ControlBase.__doPostBack; Sys.Extended.UI.ControlBase.onsubmitCollection = new Array(); } + if (!Sys.Extended.UI.ControlBase.__doPostBackWithOptionsSaved) { + Sys.Extended.UI.ControlBase.__doPostBackWithOptionsSaved = window.WebForm_DoPostBackWithOptions; + window.WebForm_DoPostBackWithOptions = Sys.Extended.UI.ControlBase.__doPostBackWithOptions; + } Array.add(Sys.Extended.UI.ControlBase.onsubmitCollection, this._onsubmit$delegate); } else { $addHandler(document.forms[0], "submit", this._onsubmit$delegate); @@ -400,4 +413,14 @@ Sys.Extended.UI.ControlBase.prototype = { } } -Sys.Extended.UI.ControlBase.registerClass("Sys.Extended.UI.ControlBase", Sys.UI.Control); \ No newline at end of file +Sys.Extended.UI.ControlBase.registerClass("Sys.Extended.UI.ControlBase", Sys.UI.Control); + +var isUnminified = /param/.test(function(param) { }); + +Sys.Extended.Deprecated = function(oldMethodName, properMethodName) { + if(isUnminified && window.console && console.warn) + if(arguments.length == 1) + console.warn(oldMethodName + " is deprecated."); + else + console.warn(oldMethodName + " is deprecated. Use " + properMethodName + " instead."); +} \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Debug/Calendar.debug.js b/Scripts/AjaxControlToolkit/Debug/Calendar.debug.js index 16fbe4515..458e3727c 100644 --- a/Scripts/AjaxControlToolkit/Debug/Calendar.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Calendar.debug.js @@ -264,7 +264,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { set_startDate: function(value) { // The property of the start date for range if(this._startDate != value) { - this._startDate = new Date(value); + this._startDate = this._parseDateSortableFormat(value); this.raisePropertyChanged('startDate'); } }, @@ -274,7 +274,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { }, set_endDate: function(value) { if(this._endDate != value) { - this._endDate = new Date(value); + this._endDate = this._parseDateSortableFormat(value); this.raisePropertyChanged('endDate'); } }, @@ -324,7 +324,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { }, set_selectedDate: function(value) { if(value && (String.isInstanceOfType(value)) && (value.length != 0)) { - value = Date.fromISO(value); + value = this._parseDateSortableFormat(value); } if(this._selectedDate != value) { @@ -332,7 +332,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { this._selectedDateChanging = true; var text = ""; if(value) { - text = this._convertToLocal(value).localeFormat(this._format); + text = value.localeFormat(this._format); // If we don't clear the time then we transfer the time from the // textbox to the selected value @@ -344,12 +344,12 @@ Sys.Extended.UI.CalendarBehavior.prototype = { if(tbvalue) { if(value != tbvalue.getDateOnly()) { // Transfer time from textbox to selected value - value.setUTCHours(tbvalue.getUTCHours()); - value.setUTCMinutes(tbvalue.getUTCMinutes()); - value.setUTCSeconds(tbvalue.getUTCSeconds()); - value.setUTCMilliseconds(tbvalue.getUTCMilliseconds()); + value.setHours(tbvalue.getHours()); + value.setMinutes(tbvalue.getMinutes()); + value.setSeconds(tbvalue.getSeconds()); + value.setMilliseconds(tbvalue.getMilliseconds()); - text = this._convertToLocal(value).localeFormat(this._format); + text = value.localeFormat(this._format); } } } @@ -385,7 +385,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } if(this._visibleDate != value) { - this._switchMonth(value, !this._isOpen); + this._switchView(value, Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom, !this._isOpen); this.raisePropertyChanged("visibleDate"); } }, @@ -683,7 +683,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { this._popupBehavior.show(); if(this._firstPopUp) { - this._switchMonth(null, true); + this._switchView(null, Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom, true); switch(this._defaultView) { case Sys.Extended.UI.CalendarDefaultView.Months: this._switchMode("months", true); @@ -995,7 +995,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } }, - _isInDateRange: function(date, part) { + _isInDateRange: function(date, part, switchMode) { switch(part) { case "d": if((this._startDate) && (this._getDateOnly(date) < this._getDateOnly(this._startDate))) { return false; } @@ -1006,111 +1006,73 @@ Sys.Extended.UI.CalendarBehavior.prototype = { if((this._endDate) && (this._getMonthOnly(date) > this._getMonthOnly(this._endDate))) { return false; } break; case "y": - if((this._startDate) && (date.getUTCFullYear() < this._startDate.getUTCFullYear())) { return false; } - if((this._endDate) && (date.getUTCFullYear() > this._endDate.getUTCFullYear())) { return false; } + if((this._startDate) && (date.getFullYear() < this._startDate.getFullYear())) { return false; } + if((this._endDate) && (date.getFullYear() > this._endDate.getFullYear())) { return false; } break; case "yy": - var startYear = date.getUTCFullYear(); - var endYear = date.getUTCFullYear() + 9; - - if (this._startDate && this._endDate) { - if (startYear < this._startDate.getUTCFullYear() - && - endYear > this._endDate.getUTCFullYear()) - return true; - - return false; - } - else { + if(this._startDate && this._endDate) { + return this._isInYearsDateRange(date, switchMode); + } else { if(!this._startDate && !this._endDate) return true; - if (this._startDate && endYear > this._startDate.getUTCFullYear()) + var startYear = this._getRangeStartYear(date); + if(this._endDate && startYear < this._endDate.getFullYear()) return true; - if (this._endDate && startYear < this._endDate.getUTCFullYear()) + var endYear = this._getRangeEndYear(date); + if (this._startDate && endYear > this._startDate.getFullYear()) return true; return false; } - - break; } return true; }, - _isInNextDateRange: function (date, part) { - switch (part) { - case "d": - if ((this._startDate) && (this._getDateOnly(date) > this._getDateOnly(this._startDate))) { return false; } - break; - case "M": - if ((this._startDate) && (this._getMonthOnly(date) > this._getMonthOnly(this._startDate))) { return false; } - break; - case "y": - if ((this._startDate) && (date.getUTCFullYear() > this._startDate.getUTCFullYear())) { return false; } - break; - case "yy": - var startYear = date.getUTCFullYear(); - var endYear = date.getUTCFullYear(); - if ((this._startDate) && (date.getUTCFullYear() > this._startDate.getUTCFullYear())) { return false; } - break; + + _isInYearsDateRange: function(date, switchMode) { + var startYear = this._getRangeStartYear(date); + var endYear = this._getRangeEndYear(date); + + switch(switchMode) { + case Sys.Extended.UI.CalendarSwitchViewMode.PreviousRange: + if(endYear > this._startDate.getFullYear()) + return true; + + return false; + + case Sys.Extended.UI.CalendarSwitchViewMode.NextRange: + if(startYear < this._endDate.getFullYear()) + return true; + + return false; + + case Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom: + if(startYear > this._startDate.getFullYear() + && + endYear < this._endDate.getFullYear()) + return true; + + return false; + default: + throw Error.invalidOperation(); } - return true; }, - _isInPrevDateRange: function (date, part) { - switch (part) { - case "d": - if ((this._endDate) && (this._getDateOnly(date) < this._getDateOnly(this._endDate))) { return false; } - break; - case "M": - if ((this._endDate) && (this._getMonthOnly(date) < this._getMonthOnly(this._endDate))) { return false; } - break; - case "y": - if ((this._endDate) && (date.getUTCFullYear() < this._endDate.getUTCFullYear())) { return false; } - break; - case "yy": - var startYear = date.getUTCFullYear(); - var endYear = date.getUTCFullYear() + 9; + + _getRangeStartYear: function(date) { + return date.getFullYear(); + }, - if (this._startDate || this._endDate) - { - if (startYear < this._startDate.getUTCFullYear() - && - endYear > this._endDate.getUTCFullYear()) - return true; - } - - break; - } - return true; + _getRangeEndYear: function(date) { + return date.getFullYear() + 9; }, _getDateOnly: function(date) { - return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())); + return new Date(date.getFullYear(), date.getMonth(), date.getDate()); }, _getMonthOnly: function(date) { - return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1)); - }, - - _convertToUTC: function(value) { - // Converts a local date such as 1/1/2007 into 1/1/2007 GMT without adjusting for time zone - if(value) { - value = new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate(), value.getHours(), value.getMinutes(), value.getSeconds(), value.getMilliseconds())); - } - return value; - }, - - _convertToLocal: function(value) { - // Converts a UTC date such as 1/1/2007 GMT into 1/1/2007 without adjusting for time zone - - var result = new Date(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate(), value.getUTCHours(), value.getUTCMinutes(), value.getUTCSeconds(), value.getUTCMilliseconds()); - - // Handle daylight savings time offset (The first hour of September 25 becomes the last hour of September 24 when DST starts) - if(result.getDate() != value.getUTCDate()) { - result = new Date(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate(), value.getUTCHours() + 1, value.getUTCMinutes(), value.getUTCSeconds(), value.getUTCMilliseconds()); - } - return result; + return new Date(date.getFullYear(), date.getMonth(), 1); }, _performLayout: function() { @@ -1129,12 +1091,12 @@ Sys.Extended.UI.CalendarBehavior.prototype = { case "days": var firstDayOfWeek = this._getFirstDayOfWeek(); - var daysToBacktrack = visibleDate.getUTCDay() - firstDayOfWeek; + var daysToBacktrack = visibleDate.getDay() - firstDayOfWeek; if(daysToBacktrack <= 0) daysToBacktrack += 7; var startDate = new Date(visibleDate); - startDate.setUTCDate(startDate.getUTCDate() - daysToBacktrack); + startDate.setDate(startDate.getDate() - daysToBacktrack); var currentDate = new Date(startDate); for(var i = 0; i < 7; i++) { @@ -1151,8 +1113,8 @@ Sys.Extended.UI.CalendarBehavior.prototype = { if(dayCell.firstChild) { dayCell.removeChild(dayCell.firstChild); } - dayCell.appendChild(document.createTextNode(currentDate.getUTCDate())); - dayCell.title = this._convertToLocal(currentDate).localeFormat("D"); + dayCell.appendChild(document.createTextNode(currentDate.getDate())); + dayCell.title = currentDate.localeFormat("D"); dayCell.date = currentDate; $common.removeCssClasses(dayCell.parentNode, ["ajax__calendar_other", "ajax__calendar_active", "ajax__calendar_today"]); @@ -1165,17 +1127,17 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } currentDate = new Date(currentDate); - currentDate.setUTCDate(currentDate.getUTCDate() + 1); + currentDate.setDate(currentDate.getDate() + 1); } } - this._prevArrow.date = new Date(Date.UTC(visibleDate.getUTCFullYear(), visibleDate.getUTCMonth() - 1, 1)); - this._nextArrow.date = new Date(Date.UTC(visibleDate.getUTCFullYear(), visibleDate.getUTCMonth() + 1, 1)); + this._prevArrow.date = new Date(visibleDate.getFullYear(), visibleDate.getMonth() - 1, 1); + this._nextArrow.date = new Date(visibleDate.getFullYear(), visibleDate.getMonth() + 1, 1); if(this._title.firstChild) { this._title.removeChild(this._title.firstChild); } - this._title.appendChild(document.createTextNode(this._convertToLocal(visibleDate).localeFormat(this.get_daysModeTitleFormat()))); + this._title.appendChild(document.createTextNode(visibleDate.localeFormat(this.get_daysModeTitleFormat()))); this._title.date = visibleDate; break; @@ -1184,8 +1146,8 @@ Sys.Extended.UI.CalendarBehavior.prototype = { var row = this._monthsBody.rows[i]; for(var j = 0; j < row.cells.length; j++) { var cell = row.cells[j].firstChild; - cell.date = new Date(Date.UTC(visibleDate.getUTCFullYear(), cell.month, 1)); - cell.title = this._convertToLocal(cell.date).localeFormat("Y"); + cell.date = new Date(visibleDate.getFullYear(), cell.month, 1); + cell.title = cell.date.localeFormat("Y"); if(!this._isInDateRange(cell.date, "M")) { $common.removeCssClasses(cell.parentNode, ["ajax__calendar_other", "ajax__calendar_active"]); @@ -1203,20 +1165,20 @@ Sys.Extended.UI.CalendarBehavior.prototype = { this._title.removeChild(this._title.firstChild); } - this._title.appendChild(document.createTextNode(this._convertToLocal(visibleDate).localeFormat("yyyy"))); + this._title.appendChild(document.createTextNode(visibleDate.localeFormat("yyyy"))); this._title.date = visibleDate; - this._prevArrow.date = new Date(Date.UTC(visibleDate.getUTCFullYear() - 1, 0, 1)); - this._nextArrow.date = new Date(Date.UTC(visibleDate.getUTCFullYear() + 1, 0, 1)); + this._prevArrow.date = new Date(visibleDate.getFullYear() - 1, 0, 1); + this._nextArrow.date = new Date(visibleDate.getFullYear() + 1, 0, 1); break; case "years": - var minYear = (Math.floor(visibleDate.getUTCFullYear() / 10) * 10); + var minYear = (Math.floor(visibleDate.getFullYear() / 10) * 10); for(var i = 0; i < this._yearsBody.rows.length; i++) { var row = this._yearsBody.rows[i]; for(var j = 0; j < row.cells.length; j++) { var cell = row.cells[j].firstChild; - cell.date = new Date(Date.UTC(minYear + cell.year, 0, 1)); + cell.date = new Date(minYear + cell.year, 0, 1); if(cell.firstChild) { cell.removeChild(cell.lastChild); } else { @@ -1241,8 +1203,8 @@ Sys.Extended.UI.CalendarBehavior.prototype = { this._title.appendChild(document.createTextNode(minYear.toString() + "-" + (minYear + 9).toString())); this._title.date = visibleDate; - this._prevArrow.date = new Date(Date.UTC(minYear - 10, 0, 1)); - this._nextArrow.date = new Date(Date.UTC(minYear + 10, 0, 1)); + this._prevArrow.date = new Date(minYear - 10, 0, 1); + this._nextArrow.date = new Date(minYear + 10, 0, 1); break; } @@ -1256,7 +1218,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { Sys.UI.DomElement.addCssClass(this._today.parentNode, "ajax__calendar_invalid"); } - this._today.date = this._convertToUTC(todaysDate); + this._today.date = todaysDate; }, _ensureCalendar: function() { @@ -1299,7 +1261,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { elt.dispatchEvent(e); } }, - _switchMonth: function(date, dontAnimate) { + _switchView: function(date, switchMode, dontAnimate) { // Switches the visible month in the days view // param name "date" of type "Date" is the visible date to switch to // param name "dontAnimate" of type "Boolean" prevents animation from occuring if the control is animated @@ -1310,7 +1272,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } // Check if can switch month depending on the startDate and endDAte - if(date && !this._canSwitchMonth(date)) { + if(date && !this._canSwitchMonth(date, switchMode)) { return; } @@ -1320,219 +1282,96 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } if(this._animated && !dontAnimate) { - this._isAnimating = true; - - var newElement = this._modes[this._mode]; - var oldElement = newElement.cloneNode(true); - this._body.appendChild(oldElement); - if(visibleDate > date) { - - // animating down - // the newIndex element is the top - // the oldIndex element is the bottom (visible) - - // move in, fade in - $common.setLocation(newElement, { x: -162, y: 0 }); - $common.setVisible(newElement, true); - this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); - this._modeChangeMoveTopOrLeftAnimation.set_target(newElement); - this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width); - this._modeChangeMoveTopOrLeftAnimation.set_endValue(0); - - // move out, fade out - $common.setLocation(oldElement, { x: 0, y: 0 }); - $common.setVisible(oldElement, true); - this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); - this._modeChangeMoveBottomOrRightAnimation.set_target(oldElement); - this._modeChangeMoveBottomOrRightAnimation.set_startValue(0); - this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width); - - } else { - // animating up - // the oldIndex element is the top (visible) - // the newIndex element is the bottom - - // move out, fade out - $common.setLocation(oldElement, { x: 0, y: 0 }); - $common.setVisible(oldElement, true); - this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); - this._modeChangeMoveTopOrLeftAnimation.set_target(oldElement); - this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width); - this._modeChangeMoveTopOrLeftAnimation.set_startValue(0); - - // move in, fade in - $common.setLocation(newElement, { x: 162, y: 0 }); - $common.setVisible(newElement, true); - this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); - this._modeChangeMoveBottomOrRightAnimation.set_target(newElement); - this._modeChangeMoveBottomOrRightAnimation.set_endValue(0); - this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width); - } - this._visibleDate = date; - this.invalidate(); - - var endHandler = Function.createDelegate(this, function() { - this._body.removeChild(oldElement); - oldElement = null; - this._isAnimating = false; - this._modeChangeAnimation.remove_ended(endHandler); - }); - this._modeChangeAnimation.add_ended(endHandler); - this._modeChangeAnimation.play(); + this._animateViewSwitch(date, visibleDate); } else { this._visibleDate = date; this.invalidate(); } }, - _switchNextRange: function(date, dontAnimate) { - // Switches the visible month in the days view - // param name "date" of type "Date" is the visible date to switch to - // param name "dontAnimate" of type "Boolean" prevents animation from occuring if the control is animated - // Check _isAnimating to make sure we don't animate horizontally and vertically at the same time - if(this._isAnimating) { - return; - } + _animateViewSwitch: function(date, visibleDate) { + this._isAnimating = true; - // Check if can switch month depending on the startDate and endDAte - if(date && !this._canSwitchNextRange(date)) { - return; - } + var newElement = this._modes[this._mode]; + var oldElement = newElement.cloneNode(true); + this._body.appendChild(oldElement); + if(visibleDate > date) { - this._switchRange(date, dontAnimate); - }, - _switchPrevRange: function (date, dontAnimate) { - // Switches the visible month in the days view - // param name "date" of type "Date" is the visible date to switch to - // param name "dontAnimate" of type "Boolean" prevents animation from occuring if the control is animated + // animating down + // the newIndex element is the top + // the oldIndex element is the bottom (visible) - // Check _isAnimating to make sure we don't animate horizontally and vertically at the same time - if (this._isAnimating) { - return; - } + // move in, fade in + $common.setLocation(newElement, { x: -162, y: 0 }); + $common.setVisible(newElement, true); + this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); + this._modeChangeMoveTopOrLeftAnimation.set_target(newElement); + this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width); + this._modeChangeMoveTopOrLeftAnimation.set_endValue(0); - // Check if can switch month depending on the startDate and endDAte - if (date && !this._canSwitchPrevRange(date)) { - return; - } + // move out, fade out + $common.setLocation(oldElement, { x: 0, y: 0 }); + $common.setVisible(oldElement, true); + this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); + this._modeChangeMoveBottomOrRightAnimation.set_target(oldElement); + this._modeChangeMoveBottomOrRightAnimation.set_startValue(0); + this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width); - this._switchRange(date, dontAnimate); - }, - _switchRange: function (date, dontAnimate) - { - var visibleDate = this._getEffectiveVisibleDate(); - if((date && date.getFullYear() == visibleDate.getFullYear() && date.getMonth() == visibleDate.getMonth())) { - dontAnimate = true; - } - - if(this._animated && !dontAnimate) { - this._isAnimating = true; - - var newElement = this._modes[this._mode]; - var oldElement = newElement.cloneNode(true); - this._body.appendChild(oldElement); - if(visibleDate > date) { - - // animating down - // the newIndex element is the top - // the oldIndex element is the bottom (visible) - - // move in, fade in - $common.setLocation(newElement, { x: -162, y: 0 }); - $common.setVisible(newElement, true); - this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); - this._modeChangeMoveTopOrLeftAnimation.set_target(newElement); - this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width); - this._modeChangeMoveTopOrLeftAnimation.set_endValue(0); - - // move out, fade out - $common.setLocation(oldElement, { x: 0, y: 0 }); - $common.setVisible(oldElement, true); - this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); - this._modeChangeMoveBottomOrRightAnimation.set_target(oldElement); - this._modeChangeMoveBottomOrRightAnimation.set_startValue(0); - this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width); - - } else { - // animating up - // the oldIndex element is the top (visible) - // the newIndex element is the bottom - - // move out, fade out - $common.setLocation(oldElement, { x: 0, y: 0 }); - $common.setVisible(oldElement, true); - this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); - this._modeChangeMoveTopOrLeftAnimation.set_target(oldElement); - this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width); - this._modeChangeMoveTopOrLeftAnimation.set_startValue(0); - - // move in, fade in - $common.setLocation(newElement, { x: 162, y: 0 }); - $common.setVisible(newElement, true); - this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); - this._modeChangeMoveBottomOrRightAnimation.set_target(newElement); - this._modeChangeMoveBottomOrRightAnimation.set_endValue(0); - this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width); - } - this._visibleDate = date; - this.invalidate(); - - var endHandler = Function.createDelegate(this, function() { - this._body.removeChild(oldElement); - oldElement = null; - this._isAnimating = false; - this._modeChangeAnimation.remove_ended(endHandler); - }); - this._modeChangeAnimation.add_ended(endHandler); - this._modeChangeAnimation.play(); } else { - this._visibleDate = date; - this.invalidate(); - } - }, - + // animating up + // the oldIndex element is the top (visible) + // the newIndex element is the bottom - _canSwitchMonth: function(date) { + // move out, fade out + $common.setLocation(oldElement, { x: 0, y: 0 }); + $common.setVisible(oldElement, true); + this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"); + this._modeChangeMoveTopOrLeftAnimation.set_target(oldElement); + this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width); + this._modeChangeMoveTopOrLeftAnimation.set_startValue(0); + + // move in, fade in + $common.setLocation(newElement, { x: 162, y: 0 }); + $common.setVisible(newElement, true); + this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"); + this._modeChangeMoveBottomOrRightAnimation.set_target(newElement); + this._modeChangeMoveBottomOrRightAnimation.set_endValue(0); + this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width); + } + this._visibleDate = date; + this.invalidate(); + + var endHandler = Function.createDelegate(this, function() { + this._body.removeChild(oldElement); + oldElement = null; + this._isAnimating = false; + this._modeChangeAnimation.remove_ended(endHandler); + }); + this._modeChangeAnimation.add_ended(endHandler); + this._modeChangeAnimation.play(); + }, + + _canSwitchMonth: function(date, switchMode) { switch(this._mode) { case "days": - if(!this._isInDateRange(date, "M")) { + if(!this._isInDateRange(date, "M", switchMode)) { return false; } break; case "months": - if(!this._isInDateRange(date, "y")) { + if(!this._isInDateRange(date, "y", switchMode)) { return false; } break; case "years": - if(!this._isInDateRange(date, "yy")) { + if(!this._isInDateRange(date, "yy", switchMode)) { return false; } break; } return true; - }, - _canSwitchNextRange: function (date) { - switch (this._mode) { - case "days": - return this._isInNextDateRange(date, "M"); - case "months": - return this._isInNextDateRange(date, "y"); - case "years": - return this._isInNextDateRange(date, "yy"); - } - }, - _canSwitchPrevRange: function (date) { - switch (this._mode) { - case "days": - return this._isInPrevDateRange(date, "M"); - case "months": - return this._isInPrevDateRange(date, "y"); - case "years": - return this._isInPrevDateRange(date, "yy"); - } - }, - + }, + _switchMode: function(mode, dontAnimate) { // Switches the visible view from "days" to "months" to "years" // param name "mode" of type "String" is the view mode to switch to @@ -1619,13 +1458,13 @@ Sys.Extended.UI.CalendarBehavior.prototype = { if(!value) return false; switch(part) { case 'd': - if(date.getUTCDate() != value.getUTCDate()) return false; + if(date.getDate() != value.getDate()) return false; // goto case 'M'; case 'M': - if(date.getUTCMonth() != value.getUTCMonth()) return false; + if(date.getMonth() != value.getMonth()) return false; // goto case 'y'; case 'y': - if(date.getUTCFullYear() != value.getUTCFullYear()) return false; + if(date.getFullYear() != value.getFullYear()) return false; break; } return true; @@ -1639,18 +1478,18 @@ Sys.Extended.UI.CalendarBehavior.prototype = { var value = this._getEffectiveVisibleDate(); switch(part) { case 'd': - return (date.getUTCFullYear() != value.getUTCFullYear() || date.getUTCMonth() != value.getUTCMonth()); + return (date.getFullYear() != value.getFullYear() || date.getMonth() != value.getMonth()); case 'M': return false; case 'y': - var minYear = (Math.floor(value.getUTCFullYear() / 10) * 10); - return date.getUTCFullYear() < minYear || (minYear + 10) <= date.getUTCFullYear(); + var minYear = (Math.floor(value.getFullYear() / 10) * 10); + return date.getFullYear() < minYear || (minYear + 10) <= date.getFullYear(); } return false; }, _isTodaysDate: function(date) { - return this._getDateOnly(this._convertToUTC(this.get_todaysDate())).valueOf() === this._getDateOnly(date).valueOf(); + return this._getDateOnly(this.get_todaysDate()).valueOf() === this._getDateOnly(date).valueOf(); }, _getCssClass: function(date, part) { @@ -1676,12 +1515,23 @@ Sys.Extended.UI.CalendarBehavior.prototype = { if(value == null) value = this.get_todaysDate(); + if (this._endDate && value > this._endDate) + value = this._endDate; + else if (this._startDate && value < this._startDate) + value = this._startDate; + value = new Date(value); - value.setUTCDate(1); + value.setDate(1); return this._getDateOnly(value); }, + getMonthStartDate: function(date) + { + var value = new Date(date); + value.setDate(1); + return this._getDateOnly(value); + }, _getFirstDayOfWeek: function() { // Gets the first day of the week @@ -1696,7 +1546,9 @@ Sys.Extended.UI.CalendarBehavior.prototype = { var value = null; if(text) { - value = this._convertToUTC(Date.parseLocale(text, this.get_format())); + value = Date.parseLocale(text, this.get_format()); + if(value && value.getFullYear() < 100) + value.setYear(value.getFullYear()); } if(isNaN(value)) { value = null; @@ -1726,7 +1578,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { var value = this._parseTextValue(this._textbox.get_Value()); this._selectedDate = value; if(this._isOpen) { - this._switchMonth(this._selectedDate, this._selectedDate == null); + this._switchView(this._selectedDate, Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom, this._selectedDate == null); } } }, @@ -1817,10 +1669,10 @@ Sys.Extended.UI.CalendarBehavior.prototype = { Sys.UI.DomElement.removeCssClass(target.parentNode, "ajax__calendar_hover"); switch(target.mode) { case "prev": - this._switchMonth(target.date); + this._switchView(target.date, Sys.Extended.UI.CalendarSwitchViewMode.PreviousRange); break; case "next": - this._switchMonth(target.date); + this._switchView(target.date, Sys.Extended.UI.CalendarSwitchViewMode.NextRange); break; case "title": switch(this._mode) { @@ -1829,7 +1681,7 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } break; case "month": - if(target.month == visibleDate.getUTCMonth()) { + if(target.month == visibleDate.getMonth()) { this._switchMode("days"); } else { this._visibleDate = target.date; @@ -1846,13 +1698,13 @@ Sys.Extended.UI.CalendarBehavior.prototype = { break; case "day": this.set_selectedDate(target.date); - this._switchMonth(target.date); + this._switchView(target.date, Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom); this._blur.post(true); this.raise_dateSelectionChanged(); break; case "today": this.set_selectedDate(target.date); - this._switchMonth(target.date); + this._switchView(target.date, Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom); this._blur.post(true); this.raise_dateSelectionChanged(); break; @@ -1901,31 +1753,38 @@ Sys.Extended.UI.CalendarBehavior.prototype = { } // make sure we clean up the flag due to issues with alert/alt-tab/etc this._popupMouseDown = false; + }, + _parseDateSortableFormat: function (dateString) { + var dateParts = /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(dateString); + + return new Date( + dateParts[1], + dateParts[2] - 1, + dateParts[3], + dateParts[4], + dateParts[5], + dateParts[6]); } } Sys.Extended.UI.CalendarBehavior.registerClass("Sys.Extended.UI.CalendarBehavior", Sys.Extended.UI.BehaviorBase); -Sys.Extended.UI.CalendarPosition = function() { - // Position of the popup relative to the target control - throw Error.invalidOperation(); -} -Sys.Extended.UI.CalendarPosition.prototype = { +Sys.Extended.UI.CalendarPosition = { BottomLeft: 0, BottomRight: 1, TopLeft: 2, TopRight: 3, Right: 4, Left: 5 -} -Sys.Extended.UI.CalendarPosition.registerEnum('Sys.Extended.UI.CalendarPosition'); +}; -Sys.Extended.UI.CalendarDefaultView = function() { - // Choices for default view of the calendar when it first pops up. - throw Error.invalidOperation(); -} -Sys.Extended.UI.CalendarDefaultView.prototype = { +Sys.Extended.UI.CalendarDefaultView = { Days: 0, Months: 1, Years: 2 -} -Sys.Extended.UI.CalendarDefaultView.registerEnum('Sys.Extended.UI.CalendarDefaultView'); \ No newline at end of file +}; + +Sys.Extended.UI.CalendarSwitchViewMode = { + PreviousRange: 0, + NextRange: 1, + RangeZoom: 2 +}; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Debug/CascadingDropDown.debug.js b/Scripts/AjaxControlToolkit/Debug/CascadingDropDown.debug.js index 535794e94..6f7c53f9f 100644 --- a/Scripts/AjaxControlToolkit/Debug/CascadingDropDown.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/CascadingDropDown.debug.js @@ -129,6 +129,14 @@ Sys.Extended.UI.CascadingDropDownBehavior = function(e) { /// this._enableAtLoading = false; + /// + /// Always clear selected item when parent value changes. + /// + /// get_clearSelectedItemOnParentChange + /// set_clearSelectedItemOnParentChange + /// + this._clearSelectedItemOnParentChange = false; + // Variables this._parentElement = null; this._changeHandler = null; @@ -329,7 +337,7 @@ Sys.Extended.UI.CascadingDropDownBehavior.prototype = { } } else { - if(list && (Sys.Browser.agent !== Sys.Browser.Safari) && (Sys.Browser.agent !== Sys.Browser.Opera)) { + if(list && (Sys.Browser.agent !== Sys.Browser.Firefox) && (Sys.Browser.agent !== Sys.Browser.Safari) && (Sys.Browser.agent !== Sys.Browser.Opera)) { // Fire the onchange event for the control to notify any listeners of the change if(document.createEvent) { var onchangeEvent = document.createEvent('HTMLEvents'); @@ -372,6 +380,9 @@ Sys.Extended.UI.CascadingDropDownBehavior.prototype = { // "evt" - set by the browser when called as an event handler (unused here) // "inInit" - whether this is being called from the initialize method + if(this.get_clearSelectedItemOnParentChange()) + this.set_selectedValue('', ''); + var e = this.get_element(); // Create the known category/value pairs string for sending to the helper web service @@ -715,6 +726,16 @@ Sys.Extended.UI.CascadingDropDownBehavior.prototype = { } }, + get_clearSelectedItemOnParentChange: function() { + return this._clearSelectedItemOnParentChange; + }, + set_clearSelectedItemOnParentChange: function(value) { + if(this._clearSelectedItemOnParentChange != value) { + this._clearSelectedItemOnParentChange = value; + this.raisePropertyChanged('clearSelectedItemOnParentChange'); + } + }, + /// /// Fires when selection is changed. /// diff --git a/Scripts/AjaxControlToolkit/Debug/CollapsiblePanel.debug.js b/Scripts/AjaxControlToolkit/Debug/CollapsiblePanel.debug.js index dc31f1871..64d6a400e 100644 --- a/Scripts/AjaxControlToolkit/Debug/CollapsiblePanel.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/CollapsiblePanel.debug.js @@ -171,7 +171,7 @@ Sys.Extended.UI.CollapsiblePanelBehavior.prototype = { }, /// - /// Event handler to epxand or collapse the panel (based on its current state) + /// Event handler to expand or collapse the panel (based on its current state) /// This is the public function that should be called instead of _toggle if /// you wish to programmatically open and close the collapsible panel /// diff --git a/Scripts/AjaxControlToolkit/Debug/ColorPicker.debug.js b/Scripts/AjaxControlToolkit/Debug/ColorPicker.debug.js index 988191261..537f02105 100644 --- a/Scripts/AjaxControlToolkit/Debug/ColorPicker.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ColorPicker.debug.js @@ -9,6 +9,7 @@ Sys.Extended.UI.ColorPickerBehavior = function(element) { this._sample = null; this._cssClass = "ajax__colorPicker"; this._popupPosition = Sys.Extended.UI.PositioningMode.BottomLeft; + this._paletteStyle = Sys.Extended.UI.ColorPickerPaletteStyle.Default; this._selectedColor = null; this._enabled = true; @@ -223,6 +224,23 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { } }, + /// + /// The Sys.Extended.UI.PaletteStyle object that represents which color palette is used. + /// The default is Default. + /// + /// get_paletteStyle + /// set_paletteStyle + /// + get_paletteStyle: function () { + return this._paletteStyle; + }, + set_paletteStyle: function (value) { + if (this._paletteStyle !== value) { + this._paletteStyle = value; + this.raisePropertyChanged('paletteStyle'); + } + }, + /// /// Fires when color selection is changed. /// @@ -343,14 +361,14 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { if (!this._isOpen) { var eventArgs = new Sys.CancelEventArgs(); - this.raiseShowing(eventArgs); + this.raise_showing(eventArgs); if (eventArgs.get_cancel()) { return; } this._isOpen = true; this._popupBehavior.show(); - this.raiseShown(); + this.raise_shown(); } }, @@ -361,7 +379,7 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { hide: function() { if (this._isOpen) { var eventArgs = new Sys.CancelEventArgs(); - this.raiseHiding(eventArgs); + this.raise_hiding(eventArgs); if (eventArgs.get_cancel()) { return; } @@ -370,7 +388,7 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { this._popupBehavior.hide(); } this._isOpen = false; - this.raiseHidden(); + this.raise_hidden(); // make sure we clean up the flag due to issues with alert/alt-tab/etc this._popupMouseDown = false; @@ -434,34 +452,76 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { properties: { id: id + "_colorsBody" } }, this._colorsTable); - var rgb = ['00', '99', '33', '66', 'FF', 'CC'], color, cssColor; - var l = rgb.length; + switch (this._paletteStyle) { + case Sys.Extended.UI.ColorPickerPaletteStyle.Default: + var rgb = ['00', '99', '33', '66', 'FF', 'CC'], color, cssColor; + var l = rgb.length; - for (var r = 0; r < l; r++) { - var colorsRow = $common.createElementFromTemplate({ nodeName: "tr" }, this._colorsBody); - for (var g = 0; g < l; g++) { - if (g === 3) { - colorsRow = $common.createElementFromTemplate({ nodeName: "tr" }, this._colorsBody); + for (var r = 0; r < l; r++) { + var colorsRow = $common.createElementFromTemplate({ nodeName: "tr" }, this._colorsBody); + for (var g = 0; g < l; g++) { + if (g === 3) { + colorsRow = $common.createElementFromTemplate({ nodeName: "tr" }, this._colorsBody); + } + for (var b = 0; b < l; b++) { + color = rgb[r] + rgb[g] + rgb[b]; + this._createColorCell(color, colorsRow); + } + } } - for (var b = 0; b < l; b++) { - color = rgb[r] + rgb[g] + rgb[b]; - cssColor = '#' + color; - var colorCell = $common.createElementFromTemplate({ nodeName: "td" }, colorsRow); - var colorDiv = $common.createElementFromTemplate({ - nodeName: "div", - properties: { - id: id + "_color_" + color, - color: color, - title: cssColor, - style: { backgroundColor: cssColor }, - innerHTML: " " - }, - events: this._cell$delegates - }, colorCell); - } - } + break; + case Sys.Extended.UI.ColorPickerPaletteStyle.Continuous: + var step = 100 / 12; + for(var l = 0; l <= 100; l = l + step) { + var colorsRow = $common.createElementFromTemplate({ nodeName: "tr" }, this._colorsBody); + for (var h = 0; h < 360; h = h + 20) { + rgb = this._hslToRgb(h / 360, 1, l / 100); + color = this._rgbToHex(rgb[0], rgb[1], rgb[2]); + this._createColorCell(color, colorsRow); + } + } + break; } }, + _rgbToHex: function(r, g, b){ + function padHex(n){ + var nHex = n.toString(16); + return (n < 16) ? ("0" + nHex) : nHex; + } + + return padHex(r) + padHex(g) + padHex(b); + }, + _hslToRgb: function(h, s, l){ + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + var r = this._hue2rgb(p, q, h + 1 / 3); + var g = this._hue2rgb(p, q, h); + var b = this._hue2rgb(p, q, h - 1 / 3); + + return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)]; + }, + _hue2rgb: function(p, q, t){ + if (t < 0) t += 1; + if (t > 1) t -= 1; + if (t < 1 / 6) return p + (q - p) * 6 * t; + if (t < 1 / 2) return q; + if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6; + return p; + }, + _createColorCell: function (color, colorsRow) { + var cssColor = '#' + color; + var colorCell = $common.createElementFromTemplate({ nodeName: "td" }, colorsRow); + $common.createElementFromTemplate({ + nodeName: "div", + properties: { + color: color, + title: cssColor, + style: { backgroundColor: cssColor }, + innerHTML: " " + }, + events: this._cell$delegates + }, colorCell); + }, _ensureColorPicker: function() { if (!this._container) { @@ -614,4 +674,9 @@ Sys.Extended.UI.ColorPickerBehavior.prototype = { this._popupMouseDown = false; } } -Sys.Extended.UI.ColorPickerBehavior.registerClass('Sys.Extended.UI.ColorPickerBehavior', Sys.Extended.UI.BehaviorBase); \ No newline at end of file +Sys.Extended.UI.ColorPickerBehavior.registerClass('Sys.Extended.UI.ColorPickerBehavior', Sys.Extended.UI.BehaviorBase); + +Sys.Extended.UI.ColorPickerPaletteStyle = { + Default: 0, + Continuous: 1 +} \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Debug/ComboBox.debug.js b/Scripts/AjaxControlToolkit/Debug/ComboBox.debug.js index 244f42e1d..ccadc4c4c 100644 --- a/Scripts/AjaxControlToolkit/Debug/ComboBox.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ComboBox.debug.js @@ -184,14 +184,10 @@ Sys.Extended.UI.ComboBox.prototype = { "click": this._textBoxClickHandler, "focus": this._textBoxFocusHandler, "blur": this._textBoxBlurHandler, - "keypress": this._textBoxKeyPressHandler + "keypress": this._textBoxKeyPressHandler, + "keydown": this._textBoxKeyDownHandler }, this); - - if (Sys.Browser.agent == Sys.Browser.InternetExplorer || Sys.Browser.agent === Sys.Browser.Safari - || Sys.Browser.agent === Sys.Browser.WebKit) { - $addHandler(this.get_textBoxControl(), "keydown", this._textBoxKeyDownHandler); - } - + $addHandlers(this.get_buttonControl(), { 'click': this._buttonClickHandler, @@ -243,10 +239,6 @@ Sys.Extended.UI.ComboBox.prototype = { // zero margins & padding (helps particularly in firefox) if (style.padding == '') style.padding = '0px'; - - // button is originally hidden to reduce screen flicker - this._buttonControl.style.visibility = 'visible'; - }, initializeOptionList: function () { @@ -259,7 +251,7 @@ Sys.Extended.UI.ComboBox.prototype = { var optionListControl = this.get_optionListControl(); // force inline display on Safari by moving the list to the bottom of the form. - if (Sys.Browser.agent === Sys.Browser.Safari || Sys.Browser.agent === Sys.Browser.WebKit) { + if (Sys.Browser.agent === Sys.Browser.Safari) { //this.get_element().removeChild(optionListControl); var parentOfOptionList = optionListControl.parentNode; if (parentOfOptionList != null) @@ -499,7 +491,8 @@ Sys.Extended.UI.ComboBox.prototype = { x = textBoxBounds.x - (listBounds.width - textBoxBounds.width); } - Sys.UI.DomElement.setLocation(optionListControl, x, y); + if($common.getCurrentStyle(this.get_textBoxControl(), "position", "") == "absolute") + Sys.UI.DomElement.setLocation(optionListControl, x, y); // enforce default scroll this._ensureHighlightedIndex(); @@ -960,9 +953,8 @@ Sys.Extended.UI.ComboBox.prototype = { liElement.style.backgroundColor = 'Highlight'; liElement.style.color = 'HighlightText'; } - else { - liElement.className = this.get_listItemHoverCssClass; - } + else + liElement.className = this.get_listItemHoverCssClass(); } // unselect previously highlighted item @@ -1090,7 +1082,8 @@ Sys.Extended.UI.ComboBox.prototype = { if (this._highlightedIndex >= 0) { this.get_textBoxControl().value = this._optionListItems[this._highlightedIndex].text; this.set_selectedIndex(this._highlightedIndex); - __doPostBack(this.get_element().id, ''); + if(this.get_autoPostBack()) + __doPostBack(this.get_element().id, ''); } this._popupBehavior.hide(); e.preventDefault(); @@ -1240,33 +1233,6 @@ Sys.Extended.UI.ComboBox.prototype = { return true; } } - else if (Sys.Browser.agent == Sys.Browser.WebKit) { - - // allow special funky apple webkit keypresses - if (code == 8 // BACKSPACE in Safari 3 - || code == 9 // TAB in Safari 3 - || code == 19 // PAUSE BREAK Safari 3 - || code == 33 // PAGEUP in Safari 3 - || code == 34 // PAGEDOWN in Safari 3 - || code == 35 // END in Safari 3 - || code == 36 // HOME in Safari 3 - || code == 37 // ARROWLEFT in Safari 3 - || code == 39 // ARROWRIGHT in Safari 3 - || code == 45 // INSERT in Safari 3 - || code == 46 // DELETE in Safari 3 - || code == 91 // WINDOWS LEFT Safari 3 - || code == 92 // WINDOWS RIGHT Safari 3 - || code == 93 // MENU Safari 3 - || code == 113 // F2 Safari 3 - || code == 115 // F4 Safari 3 - || code == 118 // F7 Safari 3 - || code == 119 // F8 Safari 3 - || code == 120 // F9 Safari 3 - || code == 122 // F11 Safari 3 - || code == 145 // SCROLL LOCK Safari 3 - ) - return true; - } else if (Sys.Browser.agent != Sys.Browser.InternetExplorer) { // allow kepress events triggered by FF & Opera @@ -1472,7 +1438,7 @@ Sys.Extended.UI.ComboBox.prototype = { } // typedCharacter, textBoxValue, selectionPrefix, selectionSuffix, selectionTextFirst - info.typedCharacter = String.fromCharCode(e.charCode); + info.typedCharacter = String.fromCharCode(e.rawEvent.charCode || e.rawEvent.keyCode); info.textBoxValue = textBox.value; info.selectionPrefix = (info.textBoxValue.length >= info.selectionStart) ? info.textBoxValue.substring(0, info.selectionStart) @@ -1744,10 +1710,17 @@ Sys.Extended.UI.ComboBox.prototype = { return parseInt(selectedIndex); }, set_selectedIndex: function (value) { - if (this.get_hiddenFieldControl().value !== value.toString()) { + if(this.get_hiddenFieldControl().value !== value.toString()) { + var oldIndex = +this.get_hiddenFieldControl().value; + this.get_hiddenFieldControl().value = value.toString(); this._ensureSelectedIndex(); this.raisePropertyChanged('selectedIndex'); + + this.raise_selectedIndexChanged({ + oldIndex: oldIndex, + newIndex: value + }); } }, @@ -1842,6 +1815,24 @@ Sys.Extended.UI.ComboBox.prototype = { this.raisePropertyChanged('listItemHoverCssClass'); } }, + + /// + /// An event handler rised when selected index changed + /// + /// + /// + add_selectedIndexChanged: function(handler) { + this.get_events().addHandler("selectedIndexChanged", handler); + }, + remove_selectedIndexChanged: function(handler) { + this.get_events().removeHandler("selectedIndexChanged", handler); + }, + raise_selectedIndexChanged: function(eventArgs) { + var handler = this.get_events().getHandler('selectedIndexChanged'); + if(handler) { + handler(this, eventArgs); + } + } }; Sys.Extended.UI.ComboBox.registerClass('Sys.Extended.UI.ComboBox', Sys.UI.Control); diff --git a/Scripts/AjaxControlToolkit/Debug/Common.DateTime.debug.js b/Scripts/AjaxControlToolkit/Debug/Common.DateTime.debug.js index 37e9f2250..a394b9a95 100644 --- a/Scripts/AjaxControlToolkit/Debug/Common.DateTime.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Common.DateTime.debug.js @@ -299,37 +299,4 @@ Sys.Extended.UI.FirstDayOfWeek.prototype = { Saturday : 6, Default : 7 } -Sys.Extended.UI.FirstDayOfWeek.registerEnum("Sys.Extended.UI.FirstDayOfWeek"); - -(function(){ - var D= new Date('2011-06-02T09:34:29+02:00'); - if(!D || +D!== 1307000069000){ - Date.fromISO= function(s){ - var day, tz, - rx=/^(\d{4}\-\d\d\-\d\d([tT ][\d:\.]*)?)([zZ]|([+\-])(\d\d):(\d\d))?$/, - p= rx.exec(s) || []; - if(p[1]){ - day= p[1].split(/\D/); - for(var i= 0, L= day.length; i/g, '>'); +}; diff --git a/Scripts/AjaxControlToolkit/Debug/ConfirmButton.debug.js b/Scripts/AjaxControlToolkit/Debug/ConfirmButton.debug.js index 0542e2e59..83b73f3b4 100644 --- a/Scripts/AjaxControlToolkit/Debug/ConfirmButton.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ConfirmButton.debug.js @@ -119,8 +119,8 @@ Sys.Extended.UI.ConfirmButtonBehavior.prototype = { throw Error.argument('displayModalPopupID', String.format(Sys.Extended.UI.Resources.CollapsiblePanel_NoControlID, this._displayModalPopupID)); // Hook into ModalPopupBehavior for the confirm result - mpe.set_OnOkScript("$find('" + this.get_id() + "')._handleConfirmDialogCompletion(true);"); - mpe.set_OnCancelScript("$find('" + this.get_id() + "')._handleConfirmDialogCompletion(false);"); + mpe.set_onOkScript("$find('" + this.get_id() + "')._handleConfirmDialogCompletion(true);"); + mpe.set_onCancelScript("$find('" + this.get_id() + "')._handleConfirmDialogCompletion(false);"); // Show the ModalPopupBehavior mpe.show(); diff --git a/Scripts/AjaxControlToolkit/Debug/DropWatcher.debug.js b/Scripts/AjaxControlToolkit/Debug/DropWatcher.debug.js index 69d3255c0..615dc3e30 100644 --- a/Scripts/AjaxControlToolkit/Debug/DropWatcher.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/DropWatcher.debug.js @@ -34,6 +34,7 @@ Sys.Extended.UI.DragDropList = function(associatedElement) { this._originalParent = null; this._originalNextSibling = null; this._originalZIndex = null; + this._originalOpacity = null; this._currentContext = null; this._data = null; @@ -93,6 +94,7 @@ Sys.Extended.UI.DragDropList.prototype = { this._dragVisual.style.width = dragObject.offsetWidth + "px"; this._dragVisual.style.height = dragObject.offsetHeight + "px"; + this._originalOpacity = this._dragVisual.style.opacity; this._dragVisual.style.opacity = "0.4"; this._dragVisual.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);"; this._originalZIndex = this._dragVisual.style.zIndex; @@ -112,14 +114,6 @@ Sys.Extended.UI.DragDropList.prototype = { dragVisualContainer.appendChild(this._dragVisual); - var newOffset = Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(dragObject, true); - if(oldOffset.x !== newOffset.x || oldOffset.y !== newOffset.y) { - var diff = Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(oldOffset, newOffset); - var location = Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(currentLocation, diff); - - $common.setLocation(dragVisualContainer, location); - } - return dragVisualContainer; }, @@ -169,13 +163,19 @@ Sys.Extended.UI.DragDropList.prototype = { if(this._dragMode === Sys.Extended.UI.DragMode.Copy) { this._floatContainerInstance.removeChild(this._dragVisual); } else { - // NOTE: There seems to be a cursor issue in Mozilla when setting the opacity to 1. We - // can work around this by setting the opacity to anything lower than 1 instead. - this._dragVisual.style.opacity = "0.999"; - //_dragVisual.style.opacity = "1"; this._dragVisual.style.filter = ""; - this._dragVisual.style.zIndex = this._originalZIndex ? this._originalZIndex : 0; + if(this._originalOpacity === "") { + this._dragVisual.style.removeProperty("opacity"); + } else { + this._dragVisual.style.opacity = this._originalOpacity; + } + + if(this._originalZIndex === "") { + this._dragVisual.style.removeProperty("z-index"); + } else { + this._dragVisual.style.zIndex = this._originalZIndex; + } // restore the height/width of the drag visual. // diff --git a/Scripts/AjaxControlToolkit/Debug/FilteredTextBox.debug.js b/Scripts/AjaxControlToolkit/Debug/FilteredTextBox.debug.js index bcd0529cf..75fafa530 100644 --- a/Scripts/AjaxControlToolkit/Debug/FilteredTextBox.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/FilteredTextBox.debug.js @@ -118,15 +118,12 @@ Sys.Extended.UI.FilteredTextBoxBehavior.prototype = { (evt.ctrlKey /* Control keys */)) return; - if(evt.rawEvent.keyIdentifier) { + if("keyIdentifier" in evt.rawEvent) { // Safari // Note (Garbin): used the underlying rawEvent insted of the DomEvent instance. if(evt.rawEvent.ctrlKey || evt.rawEvent.altKey || evt.rawEvent.metaKey) return; - if(evt.rawEvent.keyIdentifier.substring(0, 2) != "U+") - return; - scanCode = evt.rawEvent.charCode; if(scanCode == 63272 /* Delete */) return; @@ -179,7 +176,7 @@ Sys.Extended.UI.FilteredTextBoxBehavior.prototype = { // Else if it was decided that it shouldn't be allowed, // raise the Filtered event and return false to filter the key - this.raiseFiltered(new Sys.Extended.UI.FilteredTextBoxEventArgs(key)); + this.raise_filtered(new Sys.Extended.UI.FilteredTextBoxEventArgs(key)); return false; }, diff --git a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanel.debug.js b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanel.debug.js index b038c4811..7e2bf590f 100644 --- a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanel.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanel.debug.js @@ -1772,7 +1772,9 @@ Sys.Extended.UI.HtmlEditor.DesignPanel.prototype = { var node = range.startContainer, pos = range.startOffset; - if(node.ownerDocument.id != "EditorDocument") + if(node.ownerDocument.id != "EditorDocument" + && + node.ownerDocument.uniqueID.substring(0, 6) != "ms__id") return false; if((range.startContainer.nodeType == 1 && range.startContainer.tagName.toUpperCase() == "TR") || diff --git a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanelEventHandler.debug.js b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanelEventHandler.debug.js index b727bfe68..11c72e88b 100644 --- a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanelEventHandler.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.DesignPanelEventHandler.debug.js @@ -339,7 +339,6 @@ Sys.Extended.UI.HtmlEditor.DesignPanelEventHandler = function(ev) { Sys.Extended.UI.HtmlEditor._stopEvent(ev); return false; - break; case "x": if(this.isShadowed()) { Sys.Extended.UI.HtmlEditor._stopEvent(ev); @@ -441,14 +440,12 @@ Sys.Extended.UI.HtmlEditor.DesignPanelEventHandler = function(ev) { Sys.Extended.UI.HtmlEditor._stopEvent(ev); return false; - break; case "0": // test KEY var str1 = "Your browser:\n\n" + navigator.userAgent; alert(str1); Sys.Extended.UI.HtmlEditor._stopEvent(ev); return false; - break; case "9": if(!Sys.Extended.UI.HtmlEditor.isIE) { var sel = editor._getSelection(), @@ -491,7 +488,6 @@ Sys.Extended.UI.HtmlEditor.DesignPanelEventHandler = function(ev) { Sys.Extended.UI.HtmlEditor._stopEvent(ev); return false; - break; } } if(cmd) { diff --git a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.HtmlEditor.debug.js b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.HtmlEditor.debug.js index abf9147d8..725f6b993 100644 --- a/Scripts/AjaxControlToolkit/Debug/HtmlEditor.HtmlEditor.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/HtmlEditor.HtmlEditor.debug.js @@ -9,7 +9,7 @@ Sys.Extended.UI.HtmlEditor.TrimAll = function(value) { }; Sys.Extended.UI.HtmlEditor.isIE = (Sys.Browser.agent == Sys.Browser.InternetExplorer); -Sys.Extended.UI.HtmlEditor.isSafari = (Sys.Browser.agent == Sys.Browser.Safari); +Sys.Extended.UI.HtmlEditor.isSafari = (Sys.Browser.agent == Sys.Browser.Safari || (Sys.Browser.agent == null && Sys.Browser.version == 5 && Sys.Browser.name == "Netscape")); Sys.Extended.UI.HtmlEditor.isOpera = (Sys.Browser.agent == Sys.Browser.Opera); Sys.Extended.UI.HtmlEditor.tryReplaceRgb = function(value) { diff --git a/Scripts/AjaxControlToolkit/Debug/HtmlEditorExtender.debug.js b/Scripts/AjaxControlToolkit/Debug/HtmlEditorExtender.debug.js index 517aeb71b..861fb7fb7 100644 --- a/Scripts/AjaxControlToolkit/Debug/HtmlEditorExtender.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/HtmlEditorExtender.debug.js @@ -20,7 +20,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { /// get_isDirty /// this._isDirty = false; - this._viewMode = 'content'; + this._lastMode = Sys.Extended.UI.HtmlEditorExtenderMode.Content; /// /// Determines whether or not to display a source view tab/button to see the source view of HtmlEditorExtender @@ -30,6 +30,14 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { /// this._displaySourceTab = false; + /// + /// Determines whether or not to display a preview tab/button providing access to HtmlEditorExtender’s preview + /// + /// get_displayPreviewTab + /// set_displayPreviewTab + /// + this._displayPreviewTab = false; + /// /// Button width in pixels /// @@ -119,6 +127,18 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { cssClasses: ['ajax__html_editor_extender_button ajax__html_editor_extender_source'] }; + this._buttonPreviewTemplate = { + nodeName: 'input', + properties: { + type: 'button', + style: { + width: this._ButtonWidth + 'px', + height: this._ButtonHeight + 'px' + } + }, + cssClasses: ['ajax__html_editor_extender_button ajax__html_editor_extender_preview'] + }; + this._textboxTemplate = { nodeName: 'input', properties: { @@ -145,15 +165,15 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { cssClasses: ['ajax__html_editor_extender_buttoncontainer'] }; - this._topButtonContainerTemplate2 = { + this._bottomButtonsContainerTemplate = { nodeName: 'div', properties: { - id: id + '_ExtenderButtonContainer2', + id: id + '_ExtenderModeButtonContainer', style: { clear: 'both' } }, - cssClasses: ['ajax__html_editor_extender_buttoncontainer2'] + cssClasses: ['ajax__html_editor_extender_modebuttonscontainer'] }; // variables @@ -168,14 +188,16 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { this._toolbarButtons = null; this._editableDiv = null; this._sourceViewDiv = null; + this._previewDiv = null; this._topButtonContainer = null; - this._topButtonContainer2 = null; + this._bottomButtonsContainer = null; this._buttons = []; this._requested_buttons = new Array(); this._colorPicker = null; this._txtBoxForColor = null; this._contentViewButton = null; this._sourceViewButton = null; + this._previewButton = null; this._popupDiv = null; this._btnDone = null; this._btnCancel = null; @@ -187,6 +209,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior = function(element) { this._contentViewClickDelegate = null; this._sourceViewClickDelegate = null; this._sourceViewDivOnBlurDelegate = null; + this._previewClickDelegate = null; this._imageCancelClickDelegate = null; // Hook into the ASP.NET WebForm_OnSubmit function to encode html tags prior to submission @@ -203,15 +226,20 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { HtmlEditorExtender_editableDivs[HtmlEditorExtender_editableDivs.length] = this; this._button_list = new Array(); + var focused = this._element === document.activeElement; this._createContainer(); this._createTopButtonContainer(); this._createButton(); this._createEditableDiv(); - if(this.get_displaySourceTab()) { + if(this.get_displaySourceTab()) this._createSourceViewDiv(); - this._createTopButtonContainer2(); - } + + if(this.get_displayPreviewTab()) + this._createPreviewDiv(); + + if(this._hasMultipleTabs()) + this._createBottomButtonsContainer(); // get form that contains textbox var formElement = this._textbox._element.parentNode; @@ -247,9 +275,14 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { this._editableDivOnFocusDelegate = Function.createDelegate(this, this._editableDiv_onfocus); this._btnClickDelegate = Function.createDelegate(this, this._executeCommand); - if(this.get_displaySourceTab()) { - this._contentViewClickDelegate = Function.createDelegate(this, this._contentView_click); + if(this.get_displaySourceTab()) this._sourceViewClickDelegate = Function.createDelegate(this, this._sourceView_click); + + if(this.get_displayPreviewTab()) + this._previewClickDelegate = Function.createDelegate(this, this._preview_click); + + if(this._hasMultipleTabs()) { + this._contentViewClickDelegate = Function.createDelegate(this, this._contentView_click); this._sourceViewDivOnBlurDelegate = Function.createDelegate(this, this._sourceViewDiv_onblur); } @@ -259,11 +292,19 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { $addHandler(this._editableDiv, 'focus', this._editableDivOnFocusDelegate, true); $addHandler(this._topButtonContainer, 'click', this._btnClickDelegate, true); - if(this.get_displaySourceTab()) { - $addHandler(this._contentViewButton, 'click', this._contentViewClickDelegate, true); + if(this.get_displaySourceTab()) $addHandler(this._sourceViewButton, 'click', this._sourceViewClickDelegate, true); + + if(this.get_displayPreviewTab()) + $addHandler(this._previewButton, 'click', this._previewClickDelegate, true); + + if(this._hasMultipleTabs()) { + $addHandler(this._contentViewButton, 'click', this._contentViewClickDelegate, true); $addHandler(this._sourceViewDiv, 'blur', this._sourceViewDivOnBlurDelegate, true); } + + if(focused) + this._editableDiv.focus(); }, _dispose: function() { @@ -272,9 +313,14 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { $removeHandler(this._editableDiv, 'focus', this._editableDivOnFocusDelegate); $removeHandler(this._topButtonContainer, 'click', this._btnClickDelegate); - if(this.get_displaySourceTab()) { - $removeHandler(this._contentViewButton, 'click', this._contentViewClickDelegate); + if(this.get_displaySourceTab()) $removeHandler(this._sourceViewButton, 'click', this._sourceViewClickDelegate); + + if(this.get_displayPreviewTab()) + $removeHandler(this.previewButton, 'click', this._previewClickDelegate); + + if(this._hasMultipleTabs()) { + $removeHandler(this._contentViewButton, 'click', this._contentViewClickDelegate); $removeHandler(this._sourceViewDiv, 'blur', this._sourceViewDivOnBlurDelegate); } @@ -284,6 +330,10 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { Sys.Extended.UI.HtmlEditorExtenderBehavior.callBaseMethod(this, 'dispose'); }, + _hasMultipleTabs: function(){ + return this.get_displaySourceTab() || this.get_displayPreviewTab(); + }, + _createContainer: function() { var e = this.get_element(); this._container = $common.createElementFromTemplate(this._containerTemplate, e.parentNode); @@ -306,6 +356,8 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { }, _createButton: function() { + var self = this; + var isIE = Sys.Browser.agent == Sys.Browser.InternetExplorer; for(i = 0; i < this._toolbarButtons.length; i++) { var _btn; @@ -353,7 +405,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { change: function(e) { var value = this.options[this.selectedIndex].value; setTimeout(function() { - document.execCommand("fontname", false, value); + self.setFontFamily(value); }, 200); } } @@ -425,7 +477,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { change: function(e) { var value = this.options[this.selectedIndex].value; setTimeout(function() { - document.execCommand("fontsize", false, value); + self.setFontSize(value); }, 200); } } @@ -527,36 +579,45 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { this._backColor.setAttribute('unselectable', 'on'); } else { - var map = { - Copy: 1, - Cut: 1, - Paste: 1 - }; + _btn = $common.createElementFromTemplate({ + nodeName: 'input', + properties: { + type: 'button', + id: this._id + this._toolbarButtons[i].CommandName, + name: this._toolbarButtons[i].CommandName, + title: this._toolbarButtons[i].Tooltip, + style: { + width: '23px', + height: '21px' + } + }, + cssClasses: ['ajax__html_editor_extender_button ajax__html_editor_extender_' + this._toolbarButtons[i].CommandName] + }, this._topButtonContainer); + _btn.setAttribute('unselectable', 'on'); - if(Sys.Browser.agent != Sys.Browser.InternetExplorer && map[this._toolbarButtons[i].CommandName]) { - // don't render button - } else { - _btn = $common.createElementFromTemplate({ - nodeName: 'input', - properties: { - type: 'button', - id: this._id + this._toolbarButtons[i].CommandName, - name: this._toolbarButtons[i].CommandName, - title: this._toolbarButtons[i].Tooltip, - style: { - width: '23px', - height: '21px' - } - }, - cssClasses: ['ajax__html_editor_extender_button ajax__html_editor_extender_' + this._toolbarButtons[i].CommandName] - }, this._topButtonContainer); - _btn.setAttribute('unselectable', 'on'); - } Array.add(this._buttons, _btn); } } }, + setFontFamily: function(fontFamilyName) { + this._executeStyleWithCssCommand(); + document.execCommand("fontname", false, fontFamilyName); + }, + + setFontSize: function(fontSize) { + this._executeStyleWithCssCommand(); + document.execCommand("fontsize", false, fontSize); + }, + + _executeStyleWithCssCommand: function(){ + var styleWithCssCmdName = 'styleWithCSS'; + var isStyleWithCssCommandAvailable = document.queryCommandSupported(styleWithCssCmdName); + + if(isStyleWithCssCommandAvailable) + document.execCommand(styleWithCssCmdName, false, true); + }, + _createEditableDiv: function() { var id = this.get_id(), height; @@ -585,17 +646,22 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { cssClasses: ['ajax__html_editor_extender_texteditor'] }, this._container); - this._textbox._element.value = this._textbox._element.value.replace('&amp;', '&'); + this._textbox._element.value = this._textbox._element.value.replace(/&/g, '&'); this._editableDiv.innerHTML = this._textbox._element.value; this._oldContents = this._editableDiv.innerHTML; $common.setVisible(this._textbox._element, false); }, - _createTopButtonContainer2: function() { - this._topButtonContainer2 = $common.createElementFromTemplate(this._topButtonContainerTemplate2, this._container); - this._contentViewButton = $common.createElementFromTemplate(this._buttonContentTemplate, this._topButtonContainer2); - this._sourceViewButton = $common.createElementFromTemplate(this._buttonSourceTemplate, this._topButtonContainer2); + _createBottomButtonsContainer: function() { + this._bottomButtonsContainer = $common.createElementFromTemplate(this._bottomButtonsContainerTemplate, this._container); + this._contentViewButton = $common.createElementFromTemplate(this._buttonContentTemplate, this._bottomButtonsContainer); + + if(this.get_displaySourceTab()) + this._sourceViewButton = $common.createElementFromTemplate(this._buttonSourceTemplate, this._bottomButtonsContainer); + + if(this.get_displayPreviewTab()) + this._previewButton = $common.createElementFromTemplate(this._buttonPreviewTemplate, this._bottomButtonsContainer); }, _createSourceViewDiv: function() { @@ -619,6 +685,26 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { $common.setVisible(this._sourceViewDiv, false); }, + _createPreviewDiv: function () { + var id = this.get_id(), + height = this._container.clientHeight - 25; + + this._previewDiv = $common.createElementFromTemplate({ + nodeName: 'div', + properties: { + id: id + '_ExtenderPreview', + style: { + height: height + 'px', + overflow: 'auto', + clear: 'both' + } + }, + cssClasses: ['ajax__html_editor_extender_texteditor'] + }, this._container); + + $common.setVisible(this._previewDiv, false); + }, + _editableDiv_onblur: function() { this._textbox._element.value = this._encodeHtml(); this._isFocusInEditableDiv = false; @@ -652,54 +738,89 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { this._editableDiv.innerHTML = this._textbox._element.value; }, - _contentView_click: function() { - if(this._viewMode != 'content') { - $common.setVisible(this._topButtonContainer, true); - $common.setVisible(this._editableDiv, true); + _contentView_click: function () { + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Content) + return; - if(this._sourceViewDiv.textContent != undefined) - this._editableDiv.innerHTML = this._sourceViewDiv.textContent; - else - this._editableDiv.innerHTML = this._sourceViewDiv.innerText; + $common.setVisible(this._topButtonContainer, true); + $common.setVisible(this._editableDiv, true); - this._oldContents = this._editableDiv.innerHTML; - $common.setVisible(this._sourceViewDiv, false); - this._viewMode = 'content'; - } + if(this._sourceViewDiv.textContent != undefined) + this._editableDiv.innerHTML = this._sourceViewDiv.textContent; + else + this._editableDiv.innerHTML = this._sourceViewDiv.innerText; + + this._oldContents = this._editableDiv.innerHTML; + $common.setVisible(this._sourceViewDiv, false); + $common.setVisible(this._previewDiv, false); + this._lastMode = Sys.Extended.UI.HtmlEditorExtenderMode.Content; }, - _sourceView_click: function() { - if(this._viewMode != 'source') { - $common.setVisible(this._sourceViewDiv, true); + _sourceView_click: function () { + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Source) + return; + $common.setVisible(this._sourceViewDiv, true); + + this._copyContentToSource(); + + this._oldContents = this._editableDiv.innerHTML; + $common.setVisible(this._editableDiv, false); + $common.setVisible(this._topButtonContainer, false); + $common.setVisible(this._previewDiv, false); + this._lastMode = Sys.Extended.UI.HtmlEditorExtenderMode.Source; + }, + + _preview_click: function () { + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Preview) + return; + + $common.setVisible(this._previewDiv, true); + + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Content) + this._copyContentToSource(); + + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Source) { if(this._sourceViewDiv.textContent != undefined) - this._sourceViewDiv.textContent = this._editableDiv.innerHTML; + this._previewDiv.innerHTML = this._sourceViewDiv.textContent; else - this._sourceViewDiv.innerText = this._editableDiv.innerHTML; - - this._oldContents = this._editableDiv.innerHTML; - $common.setVisible(this._editableDiv, false); - $common.setVisible(this._topButtonContainer, false); - this._viewMode = 'source'; + this._previewDiv.innerHTML = this._sourceViewDiv.innerText; } + + if(this._lastMode === Sys.Extended.UI.HtmlEditorExtenderMode.Content) + this._previewDiv.innerHTML = this._editableDiv.innerHTML; + + $common.setVisible(this._editableDiv, false); + $common.setVisible(this._sourceViewDiv, false); + $common.setVisible(this._topButtonContainer, false); + this._lastMode = Sys.Extended.UI.HtmlEditorExtenderMode.Preview; + }, + + _copyContentToSource: function() { + var html = this._editableDiv.innerHTML; + + if(/^\s*$/.test(this._editableDiv.innerText) + && this._editableDiv.innerHTML === "
") + html = ""; + + if(this._sourceViewDiv.textContent != undefined) + this._sourceViewDiv.textContent = this.cleanHtml(html); + else + this._sourceViewDiv.innerText = this.cleanHtml(html); + }, + + cleanHtml: function(html) { + return html.replace(/
/g, "
"); }, _btnCancel_click: function() { this._popupBehavior.hide(); }, - _attributes: { - style: 'st_yle_', - size: 'si_ze_', - color: 'co_lor_', - face: 'fa_ce_', - align: 'al_ign_' - }, - _rgbToHex: function(s) { var a = /rgb\s?\(\s?(\d+)\s?,\s?(\d+)\s?,\s?(\d+)\s?\)/.exec(s); - return '#' + (parseInt(a[3], 10) | (parseInt(a[2], 10) << 8) | (parseInt(a[1], 10) << 16)).toString(16); + return '#' + ("000000" + (parseInt(a[3], 10) | (parseInt(a[2], 10) << 8) | (parseInt(a[1], 10) << 16)).toString(16)).substr(-6); }, _encodeHtml: function() { @@ -708,22 +829,6 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { elements = this._editableDiv.getElementsByTagName('*'), element; - for(var i = 0; element = elements[i]; i++) { - try { - element.className = ''; - element.removeAttribute('class'); - } catch(ex) { } - - try { - element.id = ''; - element.removeAttribute('id'); - } catch(ex) { } - - try { - element.removeAttribute('width'); - } catch(ex) { } - } - var html = this._editableDiv.innerHTML; if(isIE) { //force attributes to be double quoted @@ -770,40 +875,18 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { }, _editableDiv_submit: function() { - var char = 0, - selection = null; - - setTimeout(function() { - if(this._editableDiv != null) - this._editableDiv.focus(); - }, 0); - - if(Sys.Browser.agent != Sys.Browser.Firefox) { - if(document.selection) { - selection = document.selection.createRange(); - selection.moveStart('character', char); - selection.select(); - } else { - selection = window.getSelection(); - - if(this._editableDiv.firstChild !== null) - selection.collapse(this._editableDiv.firstChild, char); - } - } - this._textbox._element.value = this._encodeHtml(); }, - _isHtmlElement: function (obj) { + _isHtmlElement: function(obj) { if(obj instanceof HTMLElement) return true; return false; }, - isValidTarget: function(target) - { - if (target.name == undefined + isValidTarget: function(target) { + if(target.name == undefined || target.name == "" || @@ -813,22 +896,40 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { return true; }, + isSimpleTextDecoration: function(commandName) { + if(commandName) + return commandName.toLowerCase() == "bold" + || commandName.toLowerCase() == "italic" + || commandName.toLowerCase() == "underline"; + + return false; + }, + _executeCommand: function(command) { if(!this.isValidTarget(command.target)) return; + var selection = this._getSelection(); + if(selection != null) { + var isEditDivChild = this._isDescendantOrSelf(this._editableDiv, selection.commonAncestorContainer); + + if(!isEditDivChild) + return; + } + var isFireFox = Sys.Browser.agent == Sys.Browser.Firefox, + isWebKit = Sys.Browser.agent == Sys.Browser.Safari, + isIE = (Sys.Browser.agent == Sys.Browser.InternetExplorer || Sys.Browser.agent == null), delcolorPicker_onchange = Function.createDelegate(this, this._colorPicker_onchange); - if(isFireFox) - document.execCommand('styleWithCSS', false, false); + if(!this.isSimpleTextDecoration(command.target.name)) + this._executeStyleWithCssCommand(); var map = { JustifyRight: 1, JustifyLeft: 1, JustifyCenter: 1, JustifyFull: 1, - Indent: 1, Outdent: 1 }; @@ -904,7 +1005,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { document.execCommand(command.target.name, false, null); } } else if(command.target.name == 'InsertImage') { - // if focus in not at editable div then dom error occurs + // if focus in not at editable div then dom error occurs if(!this._isFocusInEditableDiv) this._editableDiv.focus(); @@ -929,6 +1030,21 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { left: '', opacity: '1' }); + } else if(command.target.name == 'CleanWord') { + this._editableDiv.innerHTML = this.cleanWordHtml(this._editableDiv.innerHTML); + } else if(command.target.name == 'Indent') { + if(isIE) + document.execCommand(command.target.name, false, null); + else { + var selectionHtml = this._getSelectionHtml(); + var indentedHtml = "
" + selectionHtml + "
"; + document.execCommand("insertHTML", false, indentedHtml); + } + } else if(command.target.name == 'InsertHorizontalRule') { + if(isWebKit) + document.execCommand("insertHTML", false, "
"); + else + document.execCommand(command.target.name, false, null); } else { document.execCommand(command.target.name, false, null); } @@ -938,28 +1054,86 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { _colorPicker_onchange: function(e) { this.restoreSelection(); - if(/backcolor/i.test(this._commandName)) { + this.setColor(this._commandName, "#" + e._selectedColor); + }, + + setColor: function(commandName, color) { + if(/backcolor/i.test(commandName)) { var isFireFox = Sys.Browser.agent == Sys.Browser.Firefox; if(isFireFox) { document.execCommand('stylewithcss', false, true); - document.execCommand("hilitecolor", false, "#" + e._selectedColor); + document.execCommand("hilitecolor", false, color); document.execCommand('stylewithcss', false, false); } else { - document.execCommand("backcolor", false, "#" + e._selectedColor); + document.execCommand("backcolor", false, color); } - } else - document.execCommand(this._commandName, false, "#" + e._selectedColor); + } else { + document.execCommand('stylewithcss', false, true); + document.execCommand(commandName, false, color); + } }, /// /// Saves selected text /// /// - saveSelection: function () { + saveSelection: function() { + if(!(this instanceof Sys.Extended.UI.HtmlEditorExtenderBehavior)) + return; + + this._savedRange = this._getSelection(); + }, + + _getSelection: function() { if(window.getSelection) //non IE Browsers - this._savedRange = window.getSelection().rangeCount && window.getSelection().getRangeAt(0); + return window.getSelection().rangeCount && window.getSelection().getRangeAt(0); else if(document.selection) //IE - this._savedRange = document.selection.createRange(); + return document.selection.createRange(); + + return null; + }, + + _getSelectionHtml: function() { + var userSelection; + + if(window.getSelection) { + userSelection = window.getSelection(); + if(userSelection.getRangeAt) + var range = userSelection.getRangeAt(0); + else { + var range = document.createRange(); + range.setStart(userSelection.anchorNode, userSelection.anchorOffset); + range.setEnd(userSelection.focusNode, userSelection.focusOffset); + } + var clonedSelection = range.cloneContents(); + var div = document.createElement('div'); + div.appendChild(clonedSelection); + return div.innerHTML; + } else if(document.selection) { + userSelection = document.selection.createRange(); + return userSelection.htmlText; + } else + return ''; + }, + + _isDescendantOrSelf: function(parent, child) { + if(!parent) + return false; + + if(!child) + return false; + + if(parent == child) + return true; + + var node = child.parentNode; + while(node != null) { + if(node == parent) + return true; + + node = node.parentNode; + } + return false; }, /// @@ -990,6 +1164,63 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { } }, + cleanWordHtml: function(html) { + html = this._cleanOP(html); + html = this._cleanMSO(html); + html = this._cleanStyleAttr(html); + html = this._cleanLangAttr(html); + html = this._cleanXmlNamespaceTags(html); + html = this._cleanComments(html); + html = this._cleanFontFamily(html); + html = this._cleanSpan(html); + html = this._cleanB(html); + return html; + }, + + _cleanOP: function(html) { + html = html.replace(/\s*<\/o:p>/g, ''); + html = html.replace(/[\s\S]*?<\/o:p>/g, ' '); + return html; + }, + + _cleanMSO: function(html) { + return html.replace(/\s*mso-[^:]+:[^;"]+;?/gi, ''); + }, + + _cleanFontFamily: function(html) { + return html.replace(/\s*FONT-FAMILY:[^;"]*;?/gi, ''); + }, + + _cleanSpan: function(html) { + html = html.replace(/]*>\s* \s*<\/SPAN>/gi, ' '); + html = html.replace(/]*><\/SPAN>/gi, ''); + html = html.replace(/([\s\S]*?)<\/SPAN>/gi, '$1'); + html = html.replace(/\s*<\/span>/gi, ''); + return html; + }, + + _cleanStyleAttr: function(html) { + return html.replace(/<(\w[^>]*) style="([^\"]*)"([^>]*)/gi, "<$1$3"); + }, + + _cleanLangAttr: function(html) { + return html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3"); + }, + + _cleanXmlNamespaceTags: function(html) { + return html.replace(/<\/?\w+:[^>]*>/gi, ''); + }, + + _cleanComments: function(html) { + return html.replace(/<\!--[\s\S]*?-->/g, ''); + }, + + _cleanB: function(html) { + html = html.replace(/\s* \s*<\/b>/gi, ''); + html = html.replace(/\s*<\/b>/gi, ''); + return html; + }, + _elementVisible: function(obj, flag) { if(obj.tagName == 'FORM') return; @@ -1035,7 +1266,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { } }, - get_buttonWidth: function () { + get_buttonWidth: function() { return this._ButtonWidth; }, get_ButtonWidth: function() { @@ -1043,8 +1274,8 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { return this.get_buttonWidth(); }, - set_buttonWidth: function (value) { - if (this._ButtonWidth != value) { + set_buttonWidth: function(value) { + if(this._ButtonWidth != value) { this._ButtonWidth = value; this.raisePropertyChanged('ButtonWidth'); } @@ -1057,7 +1288,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { get_buttonHeight: function() { return this._ButtonHeight; }, - get_ButtonHeight: function () { + get_ButtonHeight: function() { Sys.Extended.Deprecated("get_ButtonHeight()", "get_buttonHeight()"); return this.get_buttonHeight(); }, @@ -1068,12 +1299,12 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { this.raisePropertyChanged('ButtonHeight'); } }, - set_ButtonHeight: function (value) { + set_ButtonHeight: function(value) { Sys.Extended.Deprecated("set_ButtonHeight(value)", "set_buttonHeight(value)"); this.set_buttonHeight(); }, - get_toolbarButtons: function () { + get_toolbarButtons: function() { return this._toolbarButtons; }, get_ToolbarButtons: function() { @@ -1087,7 +1318,7 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { this.raisePropertyChanged('ToolbarButtons'); } }, - set_ToolbarButtons: function (value) { + set_ToolbarButtons: function(value) { Sys.Extended.Deprecated("set_ToolbarButtons(value)", "set_ToolbarButtons(value)"); this.set_toolbarButtons(value); }, @@ -1103,6 +1334,17 @@ Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype = { } }, + get_displayPreviewTab: function () { + return this._displayPreviewTab; + }, + + set_displayPreviewTab: function (value) { + if(this._displayPreviewTab != value) { + this._displayPreviewTab = value; + this.raisePropertyChanged('DisplayPreviewTab'); + } + }, + /// /// Fires when text change occurs /// @@ -1188,4 +1430,10 @@ ajaxClientUploadComplete = function(sender, e) { htmlEditorExtender._savedRange.insertNode(node); } } +}; + +Sys.Extended.UI.HtmlEditorExtenderMode = { + Content: 0, + Source: 1, + Preview: 2 }; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Debug/LineChart.debug.js b/Scripts/AjaxControlToolkit/Debug/LineChart.debug.js index 0e45d2b8d..6d2a69688 100644 --- a/Scripts/AjaxControlToolkit/Debug/LineChart.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/LineChart.debug.js @@ -211,6 +211,9 @@ Sys.Extended.UI.LineChart.prototype = { this.roundedTickRange = Math.ceil(unroundedTickSize / pow10x) * pow10x; } + if(this.roundedTickRange == 0) + this.roundedTickRange = 1; + this.startX = this.startX + (this.roundedTickRange * 10 * this._valueAxisLines / 10).toString().length * this.charLength; }, @@ -441,7 +444,7 @@ Sys.Extended.UI.LineChart.prototype = { me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + String.format('', me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor, yVal, me._areaDataLabel) + String.format('{2}', me.startX + (me.xInterval * index) + (me.xInterval * 20 / 100), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)) - 7.5, displayValues ? yVal : ""); } else { if(index > 0) - me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + String.format('', me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor, yVal, me._areaDataLabel) + String.format('', lastStartX[j], lastStartY[j], me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor) + String.format('{2}', me.startX + (me.xInterval * index) + (me.xInterval * 20 / 100), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)) + 7.5, displayValues ? yVal : ""); + me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + String.format('', me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor, yVal, me._areaDataLabel) + String.format('', lastStartX[j], lastStartY[j], me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor) + String.format('{2}', me.startX + (me.xInterval * index) + (me.xInterval * 20 / 100), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)) + 7.5, displayValues ? yVal : ""); else me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + String.format('', me.startX + (me.xInterval * index) + (me.xInterval / 2), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)), j + 1, me._series[j].LineColor, yVal, me._areaDataLabel) + String.format('{2}', me.startX + (me.xInterval * index) + (me.xInterval * 20 / 100), me.startY - Math.round(yVal * (me.yInterval / me.roundedTickRange)) + 7.5, displayValues ? yVal : ""); } diff --git a/Scripts/AjaxControlToolkit/Debug/ListSearch.debug.js b/Scripts/AjaxControlToolkit/Debug/ListSearch.debug.js index 46115818a..e24247595 100644 --- a/Scripts/AjaxControlToolkit/Debug/ListSearch.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ListSearch.debug.js @@ -301,7 +301,7 @@ Sys.Extended.UI.ListSearchBehavior.prototype = { // Returns true if the specified charCode is a key rather than a normal (displayable) character // Walking through Sys.UI.Keys won't work -- Ampersand is code 38 which matches - if(Sys.Browser.agent == Sys.Browser.Firefox && e.rawEvent.keyCode) + if(Sys.Browser.agent == Sys.Browser.Firefox && Sys.Browser.version < 66 && e.rawEvent.keyCode) return false; if(Sys.Browser.agent == Sys.Browser.Opera && e.rawEvent.which == 0) diff --git a/Scripts/AjaxControlToolkit/Debug/Localization.Resources.debug.js b/Scripts/AjaxControlToolkit/Debug/Localization.Resources.debug.js index ecf9f27ea..23b107539 100644 --- a/Scripts/AjaxControlToolkit/Debug/Localization.Resources.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Localization.Resources.debug.js @@ -154,6 +154,7 @@ Sys.Extended.UI.Resources = { "Tabs_OwnerExpected": "owner must be set before initialize", "Tabs_PropertySetAfterInitialization": "{0} cannot be changed after initialization", "Tabs_PropertySetBeforeInitialization": "{0} cannot be changed before initialization", + "Tabs_UnknownTheme": "Theme {0} cannot be converted to a CSS class", "ValidatorCallout_DefaultErrorMessage": "This control is invalid", "MultiHandleSlider_CssHeightWidthRequired": "You must specify a CSS width and height for all handle styles as well as the rail.", "AsyncFileUpload_InternalErrorMessage": "The AsyncFileUpload control has encountered an error with the uploader in this page. Please refresh the page and try again.", @@ -172,6 +173,7 @@ Sys.Extended.UI.Resources = { "AjaxFileUpload_SelectFileToUpload": "Please select file(s) to upload.", "AjaxFileUpload_Pending": "pending", "AjaxFileUpload_FileInQueue": "{0} file(s) in queue.", + "AjaxFileUpload_UploadingFileInQueue": "Uploading {0} of {1} file(s)", "AjaxFileUpload_UploadingHtml5File": "Uploading file: {0} of size {1} bytes.", "AjaxFileUpload_UploadingInputFile": "Uploading file: {0}.", "AjaxFileUpload_UploadError": "An Error occured during file upload.", @@ -185,7 +187,8 @@ Sys.Extended.UI.Resources = { "AjaxFileUpload_Canceled": "cancelled", "AjaxFileUpload_error": "error", "AjaxFileUpload_MaxNumberOfFilesExceeded": "Maximum number of files exceeded", - "AjaxFileUpload_WrongFileType": "Can\u0027t add file \u0027{0}\u0027 to upload list. File with type \u0027{1}\u0027 is not allowed" + "AjaxFileUpload_WrongFileType": "Can\u0027t add file \u0027{0}\u0027 to upload list. File with type \u0027{1}\u0027 is not allowed", + "AjaxFileUpload_TooLargeFile": "The \u0027{0}\u0027 file size exceeds the {1} Kbytes limit." }; Type.registerNamespace('Sys.Extended.UI.Localization'); diff --git a/Scripts/AjaxControlToolkit/Debug/Localization.Resources.pl.debug.js b/Scripts/AjaxControlToolkit/Debug/Localization.Resources.pl.debug.js index 29310c5e3..8291bf3cb 100644 --- a/Scripts/AjaxControlToolkit/Debug/Localization.Resources.pl.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Localization.Resources.pl.debug.js @@ -1,3 +1,29 @@ Sys.Extended.UI.Localization["pl"] = { - "Calendar_Today": "Dzisiaj: {0}" + "Calendar_Today": "Dzisiaj: {0}", + "AjaxFileUpload_DropFiles": "Przeciągnij tutaj pliki", + "AjaxFileUpload_AllFilesUploaded": "Wszystkie pliki przesłane.", + "AjaxFileUpload_SelectFile": "Wybierz plik", + "AjaxFileUpload_Remove": "Usuń", + "AjaxFileUpload_Upload": "Prześlij", + "AjaxFileUpload_Cancel": "Anuluj", + "AjaxFileUpload_FileList": "Lista przesłanych plików:", + "AjaxFileUpload_SelectFileToUpload": "Wybierz plik(i) do przesłania.", + "AjaxFileUpload_Pending": "oczekuje", + "AjaxFileUpload_FileInQueue": "Plików w kolejce: {0}", + "AjaxFileUpload_UploadingFileInQueue": "Przesyłam {0} z {1} plików", + "AjaxFileUpload_UploadingHtml5File": "Przesyłanie pliku: {0} z {1} bajtów.", + "AjaxFileUpload_UploadingInputFile": "Przesyłanie pliku: {0}.", + "AjaxFileUpload_UploadError": "W trakcie przesyłania pliku wystąpił błąd.", + "AjaxFileUpload_DefaultError": "Błąd przesyłania pliku.", + "AjaxFileUpload_UploadedPercentage": "przesłano {0} %", + "AjaxFileUpload_Uploading": "Przesyłam", + "AjaxFileUpload_Uploaded": "Przesłano", + "AjaxFileUpload_Cancelling": "Anulowanie...", + "AjaxFileUpload_CancellingUpload": "Anulowanie przesyłania...", + "AjaxFileUpload_UploadCanceled": "Przesyłanie pliku anulowane.", + "AjaxFileUpload_Canceled": "anulowano", + "AjaxFileUpload_error": "błąd", + "AjaxFileUpload_MaxNumberOfFilesExceeded": "Wybrano zbyt dużo plików do przesyłania", + "AjaxFileUpload_WrongFileType": "Nie można dodać pliku \u0027{0}\u0027 do listy przesyłania. Pliki z roszerzeniem \u0027{1}\u0027 są niedozwolone.", + "AjaxFileUpload_TooLargeFile": "Plik \u0027{0}\u0027 przekracza maksymalny rozmiar {1} Kbajtów." }; diff --git a/Scripts/AjaxControlToolkit/Debug/MaskedEdit.debug.js b/Scripts/AjaxControlToolkit/Debug/MaskedEdit.debug.js index 501cc1b9a..a333801b3 100644 --- a/Scripts/AjaxControlToolkit/Debug/MaskedEdit.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/MaskedEdit.debug.js @@ -236,11 +236,6 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { this._focusHandler = null; } - if(this._focusHandler) { - $removeHandler(e, "focus", this._focusHandler); - this._focusHandler = null; - } - if(this._blurHandler) { $removeHandler(e, "blur", this._blurHandler); this._blurHandler = null; @@ -547,29 +542,8 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { this._insertContent(c, logiccur); curpos = this._getNextPosition(logiccur + 1); } else { - var wrapper = Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()), - ClearText = this._getClearMask(wrapper.get_Value()); - - if(ClearText != "") { - var pospt = ClearText.indexOf(this.get_cultureDecimalPlaceholder()); - - if(pospt != -1) { - var intnum = ClearText.substring(0, pospt); - if(intnum == "0" || intnum == "-0") { - this.setSelectionRange(this._LogicLastInt - 1, this._LogicLastInt); - this._deleteTextSelection(); - curpos = this._LogicLastInt; - this.setSelectionRange(curpos, curpos); - } - } - } - - if(ClearText == "" && c == "0") { - curpos = this._LogicLastInt; - } else { - this._insertContentRight(c); - curpos = this._LogicLastInt; - } + this._insertContentRight(c); + curpos = this._LogicLastInt; } } } @@ -711,7 +685,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { // Execute Navigator on Mask _ExecuteNav: function(evt, scanCode) { if(evt.type == "keydown") { - if(this._isInternetExplorer()) { + if($common.isInternetExplorer()) { // ctrl v if((scanCode == 86 || scanCode == 118) && !evt.shiftKey && evt.ctrlKey && !evt.altKey) { this._SetCancelEvent(evt); @@ -730,7 +704,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { } } - if(!this._isInternetExplorer() || evt.type == "keypress") { + if (!$common.isInternetExplorer() || evt.type == "keypress") { // Shift Ins if(evt.rawEvent.shiftKey && !evt.rawEvent.ctrlKey && !evt.rawEvent.altKey && evt.rawEvent.keyCode == 45) { // at opera assume Ins = "-" not execute Shift-Ins @@ -983,7 +957,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { arr_num[0] = arr_num[0].substring(0, arr_num[0].length - 1); ClearText = arr_num[0]; - if(arr_num.length = 2) + if(arr_num.length == 2) ClearText += this.get_cultureDecimalPlaceholder() + arr_num[1]; } else { ClearText = ClearText.substring(0, ClearText.length - 1); @@ -1082,16 +1056,6 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { return arr; }, - _isInternetExplorer: function () - { - if (Sys.Browser.agent == Sys.Browser.InternetExplorer //pre IE 11 - || - (Sys.Browser.agent == null && Sys.Browser.name == "Netscape" && Sys.Browser.version == 5)) // IE 11 - return true; - - return false; - }, - // Paste clip board _ShowModalClipBoardInput: function() { var clip = prompt(this._clipboardText, ""); @@ -1105,7 +1069,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { iniSel = -1, fimSel = -1; - if(this._isInternetExplorer()) { + if ($common.isInternetExplorer()) { value = window.clipboardData.getData("Text"); } else { // save current values because lost focus @@ -1444,16 +1408,19 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { m_mask = m_mask.split(":"); if(curpos <= 1) { type = "H"; - newcur = 3 + this._LogicFirstPos + QtdDt; - } else if(curpos >= 2 && curpos <= 4 && m_mask.length == 2) { + newcur = this._LogicFirstPos + QtdDt + 3; + } else if(curpos == 2 && m_mask.length == 2) { type = "M"; - newcur = QtdDt + this._LogicFirstPos; + newcur = this._LogicFirstPos + QtdDt + 3; + } else if (curpos >= 3 && curpos <= 5 && m_mask.length == 2) { + type = "M"; + newcur = this._LogicFirstPos + QtdDt; } else if(curpos >= 2 && curpos <= 4 && m_mask.length == 3) { type = "M"; - newcur = 6 + this._LogicFirstPos + QtdDt; + newcur = this._LogicFirstPos + QtdDt + 6; } else if(m_mask.length == 3) { type = "S"; - newcur = QtdDt + this._LogicFirstPos; + newcur = this._LogicFirstPos + QtdDt; } if(type == "") @@ -1949,6 +1916,10 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { this.loadValue(value, this._LogicLastPos); this._inputDirection = Sys.Extended.UI.MaskedEditInputDirections.LeftToRight; } else { + if(!this.get_clearMaskOnLostFocus() && this._LogicFirstPos > 0) { + // https://github.com/DevExpress/AjaxControlToolkit/issues/493 + value = value.substr(this._LogicFirstPos); + } this.loadValue(value, this._LogicFirstPos); } } else if(this._inputDirection == Sys.Extended.UI.MaskedEditInputDirections.RightToLeft && value != "") { @@ -1985,7 +1956,33 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { containsAMPMLetters: function(value, index) { var currentAMPMtext = value.substring(index); + }, + getMaskCharPositions: function() + { + var maskCharPositions = []; + var mask = this.get_clearMaskOnLostFocus() ? this.getVisibleMask() : this._LogicMaskConv; + + for (var i = 0; i < mask.length; i++) { + var char = mask[i]; + if (this.isMaskChar(char)) + maskCharPositions.push(i); + } + + return maskCharPositions; + }, + + getVisibleMask: function() + { + var clearedMask = this.replaceAll(this._LogicMaskConv, this._LogicPrompt, ""); + clearedMask = this.replaceAll(clearedMask, this._LogicEscape, ""); + return clearedMask; + }, + + isMaskChar: function(char) + { + var maskChars = "9L$CAN?"; + return maskChars.indexOf(char) == -1; }, // Load initial value in mask @@ -1995,6 +1992,8 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { var wrapper = Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()); wrapper.set_Value(this._EmptyMask); + var maskCharPositions = this.getMaskCharPositions(); + if(this._inputDirection == Sys.Extended.UI.MaskedEditInputDirections.LeftToRight) { for(i = 0 ; i < parseInt(value.length, 10) ; i++) { var c = value.substring(i, i + 1); @@ -2049,7 +2048,18 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { } } } else { - for(i = parseInt(value.length, 10) ; i > 0 ; i--) { + + var valueLength = value.length; + var maskLength = this.get_clearMaskOnLostFocus() ? this.getVisibleMask().length : this._EmptyMask.length; + maskCharPositions.splice(0, maskLength - valueLength); + + for (i = parseInt(value.length, 10) ; i > 0 ; i--) { + + if (!this.get_clearMaskOnLostFocus() + && this._maskType === Sys.Extended.UI.MaskedEditType.Number + && maskCharPositions.indexOf(i - 1) != -1) + continue; + var c = value.substring(i - 1, i); if(this._maskType == Sys.Extended.UI.MaskedEditType.Number && this._acceptNegative != Sys.Extended.UI.MaskedEditShowSymbol.None && "+-".indexOf(c) != -1) { @@ -2059,14 +2069,15 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { this.insertSignal(c); } - if(this._processKey(logicPosition, c)) + if (this._processKey(logicPosition, c)) { this._insertContent(c, logicPosition); + logicPosition = this._getPreviousPosition(logicPosition - 1); + } - oldLogicPosition = logicPosition; - logicPosition = this._getPreviousPosition(logicPosition - 1); + //oldLogicPosition = logicPosition; - if(this._maskType === Sys.Extended.UI.MaskedEditType.Number && logicPosition === oldLogicPosition) - break; + //if(this._maskType === Sys.Extended.UI.MaskedEditType.Number && logicPosition === oldLogicPosition) + // break; } } } @@ -2511,7 +2522,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { var m_arrDateLD, m_arrDate; - m_arrDate = this._filter(input.split(this.get_CultureDatePlaceholder()), function (element) { + m_arrDate = this._filter(input.split(this.get_cultureDatePlaceholder()), function (element) { return element != ""; }); m_arrDate = this._map(m_arrDate, function (element) { @@ -2519,9 +2530,9 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { }); if(loadFirst) { - m_arrDateLD = input.split(this.get_CultureDatePlaceholder()); - if(this.get_UserDateFormat() != Sys.Extended.UI.MaskedEditUserDateFormat.None) { - if(this.get_UserDateFormat() == Sys.Extended.UI.MaskedEditUserDateFormat.DayMonthYear) + m_arrDateLD = input.split(this.get_cultureDatePlaceholder()); + if(this.get_userDateFormat() != Sys.Extended.UI.MaskedEditUserDateFormat.None) { + if(this.get_userDateFormat() == Sys.Extended.UI.MaskedEditUserDateFormat.DayMonthYear) this._cultureDateFormat = 'DMY'; if(this.get_userDateFormat() == Sys.Extended.UI.MaskedEditUserDateFormat.DayYearMonth) this._cultureDateFormat = 'DYM'; @@ -2798,7 +2809,7 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { } } - if(arr_num.length = 2) { + if(arr_num.length == 2) { masktext += this.get_cultureDecimalPlaceholder() + arr_num[1]; this._LogicTextMask += this.get_cultureDecimalPlaceholder() + arr_log[1]; } @@ -3143,6 +3154,34 @@ Sys.Extended.UI.MaskedEditBehavior.prototype = { this._EmptyMask = masktext; }, + replaceAll: function(string, find, replace) { + return string.split(find).join(replace); + }, + + getTextWithoutMask: function(text) + { + var clearedMask = this.replaceAll(this._LogicMask, this._LogicPrompt, ""); + clearedMask = this.replaceAll(clearedMask, this._LogicEscape, ""); + + var clearedText = ""; + + for (var charPos = 0; charPos < text.length; charPos++) { + var currentChar = text[charPos]; + + if (currentChar == clearedMask[0]) { + clearedMask = clearedMask.substring(1); + } else + clearedText += currentChar; + } + + return clearedText; + }, + + isDataCharacter: function(char) + { + return char == this._LogicEscape || char == this._LogicPrompt; + }, + // return text without mask but with placeholders _getClearMask: function(masktext) { var i = 0, diff --git a/Scripts/AjaxControlToolkit/Debug/ModalPopup.debug.js b/Scripts/AjaxControlToolkit/Debug/ModalPopup.debug.js index c57b0cce9..5a82c7a48 100644 --- a/Scripts/AjaxControlToolkit/Debug/ModalPopup.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ModalPopup.debug.js @@ -73,30 +73,8 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { this._dragHandleElement = $get(this._popupDragHandleControlID); this._popupElement = $get(this._popupControlID); - if(this._dropShadow) { - this._foregroundElement = document.createElement('div'); - this._foregroundElement.id = this.get_id() + '_foregroundElement'; - this._popupElement.parentNode.appendChild(this._foregroundElement); - this._foregroundElement.appendChild(this._popupElement); - } else { - this._foregroundElement = this._popupElement; - } - this._backgroundElement = document.createElement('div'); - this._backgroundElement.id = this.get_id() + '_backgroundElement'; - this._backgroundElement.style.display = 'none'; - this._backgroundElement.style.position = 'fixed'; - this._backgroundElement.style.left = '0px'; - this._backgroundElement.style.top = '0px'; - - // Want zIndex to big enough that the background sits above everything else - // CSS 2.1 defines no bounds for the type, so pick arbitrarily - if(this._backgroundCssClass) - this._backgroundElement.className = this._backgroundCssClass; - - this._foregroundElement.parentNode.appendChild(this._backgroundElement); - this._foregroundElement.style.display = 'none'; - this._foregroundElement.style.position = 'fixed'; + this._createDomElements(); this._showHandler = Function.createDelegate(this, this._onShow); $addHandler(this.get_element(), 'click', this._showHandler); @@ -184,7 +162,55 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { Sys.Extended.UI.ModalPopupBehavior.callBaseMethod(this, 'dispose'); }, + _createDomElements: function() { + if(this._dropShadow) { + this._foregroundElement = document.createElement('div'); + this._foregroundElement.id = this.get_id() + '_foregroundElement'; + this._popupElement.parentNode.appendChild(this._foregroundElement); + this._foregroundElement.appendChild(this._popupElement); + } else { + this._foregroundElement = this._popupElement; + } + + this._backgroundElement = document.createElement('div'); + this._backgroundElement.setAttribute('data-act-control-type', 'modalPopupBackground'); + this._backgroundElement.id = this.get_id() + '_backgroundElement'; + this._backgroundElement.style.display = 'none'; + this._backgroundElement.style.position = 'fixed'; + this._backgroundElement.style.left = '0px'; + this._backgroundElement.style.top = '0px'; + + if(this._backgroundCssClass) + this._backgroundElement.className = this._backgroundCssClass; + + this._foregroundElement.parentNode.appendChild(this._backgroundElement); + this._foregroundElement.style.display = 'none'; + this._foregroundElement.style.position = 'fixed'; + + this._setZIndex(); + }, + + _setZIndex: function() { + var topModalPopupBackgroundZIndex = parseInt(this._findTopModalPopupBackgroundZIndex()); + // Want zIndex to big enough that the background sits above everything else + // CSS 2.1 defines no bounds for the type, so pick arbitrarily + this._backgroundElement.style.zIndex = topModalPopupBackgroundZIndex ? parseInt(topModalPopupBackgroundZIndex + 1) : parseInt(Sys.Extended.UI.zIndex.ModalPopupBackground); + this._foregroundElement.style.zIndex = parseInt($common.getCurrentStyle(this._backgroundElement, 'zIndex', this._backgroundElement.style.zIndex)) + 1; + }, + + _findTopModalPopupBackgroundZIndex: function () { + var lastPopup = this._getLastPopup(); + return lastPopup ? lastPopup._backgroundElement.style.zIndex : undefined; + }, + + _getLastPopup: function () { + var popups = Sys.Extended.UI.ModalPopupBehavior.popups; + return popups.length ? popups[popups.length - 1] : undefined; + }, + _attachPopup: function() { + Sys.Extended.UI.ModalPopupBehavior.popups.push(this); + if(this._dropShadow && !this._dropShadowBehavior) this._dropShadowBehavior = $create(Sys.Extended.UI.DropShadowBehavior, {}, null, null, this._popupElement); @@ -217,6 +243,9 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { this._dropShadowBehavior.dispose(); this._dropShadowBehavior = null; } + + if(this._getLastPopup() == this) + Sys.Extended.UI.ModalPopupBehavior.popups.pop(); }, _onShow: function(e) { @@ -296,14 +325,11 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { this._isAnimationJustEnded = false; } - var zindex = 10000 + (Sys.Extended.UI.ModalPopupBehavior._openCount++ * 1000); - this._showing = true; - this._backgroundElement.style.zIndex = zindex; - this._foregroundElement.style.zIndex = zindex + 1; - this.populate(); this._attachPopup(); + this._setZIndex(); + this._backgroundElement.style.display = ''; this._foregroundElement.style.display = ''; this._popupElement.style.display = ''; @@ -324,7 +350,6 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { } } - // Disable TAB this.disableTab(); @@ -454,7 +479,6 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { _hideImplementation: function() { // Internal implementation to hide the modal dialog - Sys.Extended.UI.ModalPopupBehavior._openCount--; this._backgroundElement.style.display = 'none'; this._foregroundElement.style.display = 'none'; @@ -476,14 +500,20 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { var xCoord = 0; var yCoord = 0; if(this._xCoordinate < 0) { - var foregroundelementwidth = this._foregroundElement.offsetWidth ? this._foregroundElement.offsetWidth : this._foregroundElement.scrollWidth; + var foregroundelementwidth = this._getForegroundElementWidth(); xCoord = ((clientWidth - foregroundelementwidth) / 2); // workaround for drag behavior which calls setlocation which in turn // changes the position of the panel to be absolute and requiring us // to add the scrollLeft so that it is positioned correctly. - if(this._foregroundElement.style.position == 'absolute') - xCoord += scrollLeft; + if(this._foregroundElement.style.position == 'absolute') { + var parentPopup = this._getParentPopup(); + + if(parentPopup) + xCoord = (parentPopup._getForegroundElementWidth() - foregroundelementwidth) / 2; + else + xCoord += scrollLeft; + } this._foregroundElement.style.left = xCoord + 'px'; } else { @@ -497,14 +527,20 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { } if(this._yCoordinate < 0) { - var foregroundelementheight = this._foregroundElement.offsetHeight ? this._foregroundElement.offsetHeight : this._foregroundElement.scrollHeight; + var foregroundelementheight = this._getForegroundElementHeight(); yCoord = ((clientHeight - foregroundelementheight) / 2); // workaround for drag behavior which calls setlocation which in turn // changes the position of the panel to be absolute and requiring us // to add the scrollLeft so that it is positioned correctly. - if(this._foregroundElement.style.position == 'absolute') - yCoord += scrollTop; + if(this._foregroundElement.style.position == 'absolute') { + var parentPopup = this._getParentPopup(); + + if(parentPopup) + yCoord = (parentPopup._getForegroundElementHeight() - foregroundelementheight) / 2; + else + yCoord += scrollTop; + } this._foregroundElement.style.top = yCoord + 'px'; } else { @@ -530,6 +566,41 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { this._layoutBackgroundElement(); }, + _getForegroundElementWidth: function (){ + return this._foregroundElement.offsetWidth ? this._foregroundElement.offsetWidth : this._foregroundElement.scrollWidth; + }, + + _getForegroundElementHeight: function() { + return this._foregroundElement.offsetHeight ? this._foregroundElement.offsetHeight : this._foregroundElement.scrollHeight; + }, + + _getParentPopup: function () { + var el = this._foregroundElement; + var otherForegrounds = this._getOtherForegrounds(); + + while(el.parentNode) { + el = el.parentNode; + + var index = Array.indexOf(otherForegrounds, el) + + if(index !== -1) + return Sys.Extended.UI.ModalPopupBehavior.popups[index]; + } + + return null; + }, + + _getOtherForegrounds: function () { + var foregrounds = []; + var popups = Sys.Extended.UI.ModalPopupBehavior.popups; + + for(var i = 0; i < popups.length; i++) + foregrounds.push(popups[i]._foregroundElement); + + return foregrounds; + }, + + _layoutForegroundElement: function(xCoord, yCoord) { // Set the correct location of the foreground element to ensure that it is absolutely // positioned with respect to the browser. This is just a workaround for IE 6 since @@ -887,7 +958,7 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { }, set_OnOkScript: function(value) { Sys.Extended.Deprecated("set_OnOkScript(value)", "set_onOkScript(value)"); - this.set_onOkScript(value); + this.set_onOkScript(value); }, /// @@ -1116,7 +1187,6 @@ Sys.Extended.UI.ModalPopupBehavior.prototype = { }; Sys.Extended.UI.ModalPopupBehavior.registerClass('Sys.Extended.UI.ModalPopupBehavior', Sys.Extended.UI.DynamicPopulateBehaviorBase); -Sys.Extended.UI.ModalPopupBehavior._openCount = 0; Sys.Extended.UI.ModalPopupBehavior.invokeViaServer = function(behaviorID, show) { // This static function (that is intended to be called from script emitted @@ -1132,3 +1202,5 @@ Sys.Extended.UI.ModalPopupBehavior.invokeViaServer = function(behaviorID, show) behavior.hide(); } }; + +Sys.Extended.UI.ModalPopupBehavior.popups = []; diff --git a/Scripts/AjaxControlToolkit/Debug/PagingBulletedList.debug.js b/Scripts/AjaxControlToolkit/Debug/PagingBulletedList.debug.js index bccbd759b..9497d124f 100644 --- a/Scripts/AjaxControlToolkit/Debug/PagingBulletedList.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/PagingBulletedList.debug.js @@ -537,11 +537,12 @@ Sys.Extended.UI.PagingBulletedListBehavior.prototype = { }, set_clientSort: function(value) { if(this._clientSortValue != value) { - // Clear ClientState to set 0 index - this.set_ClientState("0;" + this.get_indexSize() + ";" + this.get_maxItemPerPage() + ";" + value); - this._clientSortValue = value; + if(this.get_isInitialized()) { + // Clear ClientState to set 0 index + this.set_ClientState("0;" + this.get_indexSize() + ";" + this.get_maxItemPerPage() + ";" + value); + if(this._clientSortValue) this._tabValueObject.sort(this.liElementSortText); else diff --git a/Scripts/AjaxControlToolkit/Debug/PasswordStrength.debug.js b/Scripts/AjaxControlToolkit/Debug/PasswordStrength.debug.js index b0823714c..7caffbbef 100644 --- a/Scripts/AjaxControlToolkit/Debug/PasswordStrength.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/PasswordStrength.debug.js @@ -471,7 +471,7 @@ Sys.Extended.UI.PasswordStrengthExtenderBehavior.prototype = { // Casing Criteria // Does it contain lowercase AND uppercase Text if(this._requiresUpperAndLowerCaseCharacters == true || - (typeof (this._requiresUpperAndLowerCaseCharacters) == 'String' && Boolean.parse(this._requiresUpperAndLowerCaseCharacters) == true)) { + (typeof (this._requiresUpperAndLowerCaseCharacters) == 'string' && Boolean.parse(this._requiresUpperAndLowerCaseCharacters) == true)) { var lowercaseRegex = new RegExp("[a-z]", "g"); var uppercaseRegex = new RegExp("[A-Z]", "g"); diff --git a/Scripts/AjaxControlToolkit/Debug/PieChart.debug.js b/Scripts/AjaxControlToolkit/Debug/PieChart.debug.js index 0023a94d3..34fc06916 100644 --- a/Scripts/AjaxControlToolkit/Debug/PieChart.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/PieChart.debug.js @@ -44,9 +44,7 @@ Sys.Extended.UI.PieChart.prototype = { svgContents = svgContents + ''; svgContents = svgContents + ''; svgContents = svgContents + ''; - svgContents = svgContents + String.format('', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10); - svgContents = svgContents + String.format('', this._chartWidth, this._chartHeight); - svgContents = svgContents + String.format('', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10); + svgContents = svgContents + String.format('', this._chartWidth, this._chartHeight); // Set Title of Chart svgContents = svgContents + String.format('{2}', parseInt(this._chartWidth) / 2 - (this._chartTitle.length * this.charLength), parseInt(this._chartHeight) * 5 / 100, this._chartTitle, this._chartTitleColor); @@ -119,11 +117,18 @@ Sys.Extended.UI.PieChart.prototype = { for(var i = 0; i < this._pieChartClientValues.length; i++) totalValue = totalValue + Math.abs(parseFloat(this._pieChartClientValues[i].Data)); + var drawCircle = this.isSingleValueEqualsTotal(totalValue); + + if (drawCircle) { + var strokeColor = this.getStrokeColor(totalValue); + var color = this.getColor(totalValue); + } + this._parentDiv.innerHTML = svgContents; - this.drawSegments(this, 0, categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc); + this.drawSegments(this, 0, categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc, drawCircle, color, strokeColor); }, - drawSegments: function (me, index, categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc) { + drawSegments: function (me, index, categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc, drawCircle, color, strokeColor) { var absClientValues = Math.abs(parseFloat(me._pieChartClientValues[index].Data)); categoryValue = categoryValue + absClientValues; angle = (categoryValue / totalValue) * 360; @@ -132,8 +137,8 @@ Sys.Extended.UI.PieChart.prototype = { textRadAngle = textRadAngle * (Math.PI / 180); endX = parseFloat(Math.sin(radAngle) * radius); endY = parseFloat(Math.cos(radAngle) * radius); - textX = parseFloat(Math.sin(textRadAngle) * (radius + 10)); - textY = parseFloat(Math.cos(textRadAngle) * (radius + 10)); + textX = parseFloat((drawCircle ? 0 : Math.sin(textRadAngle)) * (radius + 10)); + textY = parseFloat((drawCircle ? -1 : Math.cos(textRadAngle)) * (radius + 10)); textX = (startX + textX) > startX ? startX + textX : (startX + textX) - (me._pieChartClientValues[index].Data.toString().length * this.charLength); textY = (startY + (-1 * textY)) < startY ? startY + (-1 * textY) : startY + (-1 * textY) + 10; @@ -143,7 +148,37 @@ Sys.Extended.UI.PieChart.prototype = { else { arc = 0; } - me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + String.format('', lastEndX, lastEndY, radius, arc, startX + endX, startY + (-1 * endY), startX, startY, index + 1, me._pieChartClientValues[index].PieChartValueColor, me._pieChartClientValues[index].PieChartValueStrokeColor) + String.format('{2}', textX, textY, me._pieChartClientValues[index].Data) + ''; + + me._parentDiv.innerHTML = me._parentDiv.innerHTML.replace('', '') + + (drawCircle ? + String.format('', + startX, + startY, + radius, + strokeColor, + color) + : String.format('', + lastEndX, + lastEndY, + radius, + arc, + startX + endX, + startY + (-1 * endY), + startX, + startY, + index + 1, + me._pieChartClientValues[index].PieChartValueColor, + me._pieChartClientValues[index].PieChartValueStrokeColor)) + + (me._pieChartClientValues[index].Data || drawCircle ? + String.format('{2}', + textX, + textY, + drawCircle ? totalValue : me._pieChartClientValues[index].Data) + : "") + + ''; + + if (drawCircle) + return; lastEndX = startX + endX; lastEndY = startY + (-1 * endY); @@ -151,8 +186,31 @@ Sys.Extended.UI.PieChart.prototype = { if(index < me._pieChartClientValues.length) // if the counter < series length, call the loop function setTimeout(function() { - me.drawSegments(me, index, categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc); - }, 400); + me.drawSegments(me, index, drawCircle ? 0 : categoryValue, totalValue, radius, angle, radAngle, textRadAngle, startX, endX, startY, endY, textX, textY, lastEndX, lastEndY, arc, drawCircle, color, strokeColor); + }, me._pieChartClientValues[index].Data == 0 ? 0 : 400); + }, + + isSingleValueEqualsTotal: function (totalValue) { + for (var i = 0; i < this._pieChartClientValues.length; i++) { + if (this._pieChartClientValues[i].Data == totalValue) + return true; + } + + return false; + }, + + getStrokeColor: function (totalValue) { + for (var i = 0; i < this._pieChartClientValues.length; i++) { + if (this._pieChartClientValues[i].Data == totalValue) + return this._pieChartClientValues[i].PieChartValueStrokeColor; + } + }, + + getColor: function (totalValue) { + for (var i = 0; i < this._pieChartClientValues.length; i++) { + if (this._pieChartClientValues[i].Data == totalValue) + return this._pieChartClientValues[i].PieChartValueColor; + } }, /// diff --git a/Scripts/AjaxControlToolkit/Debug/Rating.debug.js b/Scripts/AjaxControlToolkit/Debug/Rating.debug.js index 17e5aa6b2..9683d3d02 100644 --- a/Scripts/AjaxControlToolkit/Debug/Rating.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Rating.debug.js @@ -90,7 +90,9 @@ Sys.Extended.UI.RatingBehavior.prototype = { return; if(this._ratingValue != this._currentRating) - this.set_rating(this._currentRating); + this._setRatingCore(this._currentRating, true); + else + this.doCallback(true); }, _onStarMouseOver: function(e) { @@ -221,7 +223,7 @@ Sys.Extended.UI.RatingBehavior.prototype = { remove_mouseOver: function(handler) { this.get_events().removeHandler("mouseOver", handler); }, - raise_mouseOver: function(ratingTmp) { + raise_mouseOver: function(rating_tmp) { var handler = this.get_events().getHandler("mouseOver"); if(handler) @@ -237,7 +239,7 @@ Sys.Extended.UI.RatingBehavior.prototype = { this.remove_mouseOver(handler); }, raiseMouseOver: function(rating_tmp) { - Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(ratingTmp)"); + Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(rating_tmp)"); this.raise_mouseOver(rating_tmp); }, @@ -490,6 +492,21 @@ Sys.Extended.UI.RatingBehavior.prototype = { this.set_waitingStarCssClass(value); }, + doCallback: function(fromUI) + { + if (this._isServerControl) { + this._waitingMode(true); + + var args = Number(!!fromUI) + ";" + this._currentRating + ";" + this._tag, + id = this._callbackID; + + if (this._autoPostBack) + __doPostBack(id, args); + else + WebForm_DoCallback(id, args, this._receiveServerData, this, this._onError, true) + } + }, + /// /// A current rating value /// @@ -507,6 +524,10 @@ Sys.Extended.UI.RatingBehavior.prototype = { return this._ratingValue; }, set_rating: function(value) { + this._setRatingCore(value); + }, + + _setRatingCore: function(value, fromUI) { if(this._ratingValue != value) { this._ratingValue = value; this._currentRating = value; @@ -522,17 +543,7 @@ Sys.Extended.UI.RatingBehavior.prototype = { this.raisePropertyChanged('rating'); this.raise_rated(this._currentRating); - if(this._isServerControl) { - this._waitingMode(true); - - var args = this._currentRating + ";" + this._tag, - id = this._callbackID; - - if(this._autoPostBack) - __doPostBack(id, args); - else - WebForm_DoCallback(id, args, this._receiveServerData, this, this._onError, true) - } + this.doCallback(fromUI); } } }, @@ -650,4 +661,4 @@ Sys.Extended.UI.RatingCallbackResultEventArgs.prototype = { } } -Sys.Extended.UI.RatingCallbackResultEventArgs.registerClass('Sys.Extended.UI.RatingCallbackResultEventArgs', Sys.EventArgs); \ No newline at end of file +Sys.Extended.UI.RatingCallbackResultEventArgs.registerClass('Sys.Extended.UI.RatingCallbackResultEventArgs', Sys.EventArgs); diff --git a/Scripts/AjaxControlToolkit/Debug/Seadragon.debug.js b/Scripts/AjaxControlToolkit/Debug/Seadragon.debug.js index 3fbb69dbf..d07b98fca 100644 --- a/Scripts/AjaxControlToolkit/Debug/Seadragon.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Seadragon.debug.js @@ -1345,54 +1345,7 @@ Sys.Extended.UI.Seadragon.Viewer.prototype = { _onContainerEnter: function(tracker, position, buttonDownElmt, buttonDownAny) { this._mouseInside = true; this._abortControlsAutoHide(); - }, - _updateOnce: function() { - if(!this.source) - return; - - this.profiler.beginUpdate(); - - var containerSize = Seadragon.Utils.getElementSize(this._container); - - if(!containerSize.equals(this._prevContainerSize)) { - this.viewport.resize(containerSize, true); // maintain image position - this._prevContainerSize = containerSize; - this._raiseEvent("resize", this); - } - - var animated = this.viewport.update(); - - if(!this._animating && animated) { - // we weren't animating, and now we did ==> animation start - this._raiseEvent("animationstart", self); - this._abortControlsAutoHide(); - } - - if(animated) { - // viewport moved - this.drawer.update(); - this._raiseEvent("animation", self); - } else if(this._forceRedraw || this.drawer.needsUpdate()) { - // need to load or blend images, etc. - this.drawer.update(); - this._forceRedraw = false; - } else { - // no changes, so preload images, etc. - this.drawer.idle(); - } - - if(this._animating && !animated) { - // we were animating, and now we're not anymore ==> animation finish - this._raiseEvent("animationfinish", this); - - // if the mouse has left the container, begin fading controls - if(!this._mouseInside) - this._beginControlsAutoHide(); - } - - this._animating = animated; - this.profiler.endUpdate(); - }, + }, _onClose: function() { // TODO need destroy() methods to prevent leaks? check for null if so. @@ -3003,20 +2956,7 @@ Sys.Extended.UI.Seadragon.Drawer.prototype = { this._container.style.textAlign = "left"; // explicit left-align this._container.appendChild(this._canvas); }, - _compareTiles: function(prevBest, tile) { - // figure out if this tile is better than the previous best tile... - // note that if there is no prevBest, this is automatically better. - if(!prevBest) - return tile; - - if(tile.visibility > prevBest.visibility) - return tile; - else if(tile.visibility == prevBest.visibility) - if(tile.distance < prevBest.distance) - return tile; - - return prevBest; - }, + _getNumTiles: function(level) { if(!this._cacheNumTiles[level]) this._cacheNumTiles[level] = this._source.getNumTiles(level); diff --git a/Scripts/AjaxControlToolkit/Debug/Slider.debug.js b/Scripts/AjaxControlToolkit/Debug/Slider.debug.js index d523dbce6..26d8e9587 100644 --- a/Scripts/AjaxControlToolkit/Debug/Slider.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Slider.debug.js @@ -624,7 +624,7 @@ Sys.Extended.UI.SliderBehavior.prototype = { }, /// - /// Slider dra mode + /// Slider drag mode /// /// dragMode /// @@ -639,7 +639,6 @@ Sys.Extended.UI.SliderBehavior.prototype = { onDrag: function() { var dragHandleBounds = this._getBoundsInternal(this._dragHandle); - var handleBounds = this._getHandleBounds(); var sliderBounds = this._getRailBounds(); var handlePosition; diff --git a/Scripts/AjaxControlToolkit/Debug/Tabs.debug.js b/Scripts/AjaxControlToolkit/Debug/Tabs.debug.js index 90a638e01..517fc953f 100644 --- a/Scripts/AjaxControlToolkit/Debug/Tabs.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/Tabs.debug.js @@ -1,5 +1,13 @@ Type.registerNamespace("Sys.Extended.UI"); +Sys.Extended.UI.TabCssTheme = function() { } +Sys.Extended.UI.TabCssTheme.prototype = { + None: 0, + XP: 1, + Plain: 2 +} +Sys.Extended.UI.TabCssTheme.registerEnum("Sys.Extended.UI.TabCssTheme", true); + Sys.Extended.UI.TabStripPlacement = function() { } Sys.Extended.UI.TabStripPlacement.prototype = { Top: 0, @@ -26,6 +34,7 @@ Sys.Extended.UI.TabContainer = function(element) { this._activeTabIndex = -1; this._scrollBars = Sys.Extended.UI.ScrollBars.None; this._tabs = null; + this._cssTheme = Sys.Extended.UI.TabCssTheme.XP; this._header = null; this._body = null; this._loaded = false; @@ -232,6 +241,7 @@ Sys.Extended.UI.TabContainer.prototype = { // default classes $common.addCssClasses(elt, [ + this._getCssThemeClass(this.get_cssTheme()), "ajax__tab_container", "ajax__tab_default" ]); @@ -247,6 +257,30 @@ Sys.Extended.UI.TabContainer.prototype = { Sys.Extended.UI.TabContainer.callBaseMethod(this, "dispose"); }, + get_cssTheme: function() + { + return this._cssTheme; + }, + set_cssTheme: function(value) + { + this._cssTheme = value; + }, + + _getCssThemeClass: function(theme) + { + switch(theme) + { + case Sys.Extended.UI.TabCssTheme.None: + return ""; + case Sys.Extended.UI.TabCssTheme.XP: + return "ajax__tab_xp"; + case Sys.Extended.UI.TabCssTheme.Plain: + return "ajax__tab_plain"; + default: + throw Error.argument('theme', String.format(Sys.Extended.UI.Resources.Tabs_UnknownTheme, type.getName())); + } + }, + /// /// Returns TabContainer's first tab /// @@ -855,7 +889,6 @@ Sys.Extended.UI.TabPanel.prototype = { _deactivate: function() { $common.setVisible(this.get_element(), false); - Sys.UI.DomElement.addCssClass(this._tab, "ajax__tab_disabled"); Sys.UI.DomElement.removeCssClass(this._tab, "ajax__tab_active"); }, diff --git a/Scripts/AjaxControlToolkit/Debug/TextBoxWatermark.debug.js b/Scripts/AjaxControlToolkit/Debug/TextBoxWatermark.debug.js index 484890c25..a8702d440 100644 --- a/Scripts/AjaxControlToolkit/Debug/TextBoxWatermark.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/TextBoxWatermark.debug.js @@ -182,7 +182,7 @@ Sys.Extended.UI.TextBoxWatermarkBehavior.prototype = { return; var classList = this.get_element().className.split(); - if(classList.indexOf(this._watermarkCssClass) === -1) { + if (Array.indexOf(classList, this._watermarkCssClass) === -1) { classList.push(this._watermarkCssClass); this.get_element().className = classList.join(" "); } diff --git a/Scripts/AjaxControlToolkit/Debug/UpdatePanelAnimation.debug.js b/Scripts/AjaxControlToolkit/Debug/UpdatePanelAnimation.debug.js index 54fe44f26..31849bd8f 100644 --- a/Scripts/AjaxControlToolkit/Debug/UpdatePanelAnimation.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/UpdatePanelAnimation.debug.js @@ -13,6 +13,9 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior = function(element) { this._pageLoadedHandler = null; this._alwaysFinishOnUpdatingAnimation = null; this._triggerControlsClientID = null; + this._updatePanelID = ""; + this._updatePanelClientID = ""; + this._childrenAsTriggers = false; }; Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { initialize: function() { @@ -67,8 +70,8 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.callBaseMethod(this, '_partialUpdateBeginRequest', [sender, beginRequestEventArgs]); if(!this._postBackPending) { - if(this._triggerControlsClientID.indexOf(sender._activeElement.id) != -1) - { + if(this._isTriggeredByTriggerControl(beginRequestEventArgs._postBackElement.id) + || this._isTriggeredByChildControl(sender, beginRequestEventArgs)) { this._postBackPending = true; this._onUpdated.quit(); this._onUpdating.play(); @@ -76,6 +79,30 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { } }, + _isTriggeredByTriggerControl: function(postBackElementID) { + return this._triggerControlsClientID.length + && this._triggerControlsClientID.indexOf(postBackElementID) != -1; + }, + + _isTriggeredByChildControl: function (sender, beginRequestEventArgs) { + if(!this.get_childrenAsTriggers()) + return false; + + if(!beginRequestEventArgs._updatePanelsToUpdate) + return false; + + if(beginRequestEventArgs._updatePanelsToUpdate.indexOf(this.get_updatePanelID()) === -1) + return false; + + var panelIndex = sender._updatePanelIDs.indexOf(this.get_updatePanelID()); + + if(!sender._updatePanelHasChildrenAsTriggers[panelIndex]) + return false; + + var postBackElement = document.getElementById(beginRequestEventArgs._postBackElement.id); + return postBackElement.parentElement.id === this.get_updatePanelClientID(); + }, + _pageLoaded: function(sender, args) { // Method that will be called when a partial update (via an UpdatePanel) finishes // "sender" - sender @@ -86,7 +113,7 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { var element = this.get_element(); var panels = args.get_panelsUpdated(); for(var i = 0; i < panels.length; i++) { - if(panels[i].parentNode == element) + if(panels[i].parentNode == element) { if(this._alwaysFinishOnUpdatingAnimation) { this._tryAndStopOnUpdating(); } @@ -94,7 +121,8 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { this._onUpdating.quit(); this._onUpdated.play(); } - break; + break; + } } } }, @@ -218,7 +246,7 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { /// set_triggerControlsClientID /// get_triggerControlsClientID: function() { - return this._triggerControlsClientID;; + return this._triggerControlsClientID; }, set_triggerControlsClientID: function(value) { if(this._triggerControlsClientID != value) { @@ -234,6 +262,55 @@ Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.prototype = { set_TriggerControlsClientID: function(value) { Sys.Extended.Deprecated("set_TriggerControlsClientID(value)", "set_triggerControlsClientID(value)"); this.set_triggerControlsClientID(value); + }, + + /// + /// ID of the target update panel + /// + /// get_updatePanelID + /// set_updatePanelID + /// + get_updatePanelID: function () { + return this._updatePanelID; + }, + set_updatePanelID: function (value) { + if(this._updatePanelID != value) { + this._updatePanelID = value; + this.raisePropertyChanged('updatePanelID'); + } + }, + + /// + /// Client ID of the target update panel + /// + /// get_updatePanelClientID + /// set_updatePanelClientID + /// + get_updatePanelClientID: function () { + return this._updatePanelClientID; + }, + set_updatePanelClientID: function (value) { + if(this._updatePanelClientID != value) { + this._updatePanelClientID = value; + this.raisePropertyChanged('updatePanelClientID'); + } + }, + + /// + /// An optional property that enables update panel animation + /// if the postback is caused by a panel's immediate children + /// + /// get_childrenAsTriggers + /// set_childrenAsTriggers + /// + get_childrenAsTriggers: function () { + return this._childrenAsTriggers; + }, + set_childrenAsTriggers: function (value) { + if(this._childrenAsTriggers != value) { + this._childrenAsTriggers = value; + this.raisePropertyChanged('childrenAsTriggers'); + } } }; Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior.registerClass('Sys.Extended.UI.Animation.UpdatePanelAnimationBehavior', Sys.Extended.UI.BehaviorBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Debug/ValidatorCallout.debug.js b/Scripts/AjaxControlToolkit/Debug/ValidatorCallout.debug.js index 0922796d4..42cafc991 100644 --- a/Scripts/AjaxControlToolkit/Debug/ValidatorCallout.debug.js +++ b/Scripts/AjaxControlToolkit/Debug/ValidatorCallout.debug.js @@ -26,19 +26,14 @@ Sys.Extended.UI.ValidatorCalloutBehavior = function Sys$Extended$UI$ValidatorCal this._isBuilt = false; this._focusHandler = Function.createDelegate(this, this._onfocus); this._closeClickHandler = Function.createDelegate(this, this._oncloseClick); + this._originalValidationMethodOverriden = false; + + Sys.Application.add_load(this._loadHandler); }; Sys.Extended.UI.ValidatorCalloutBehavior.prototype = { initialize: function() { Sys.Extended.UI.ValidatorCalloutBehavior.callBaseMethod(this, 'initialize'); - var elt = this.get_element(); - - // Override the evaluation method of the current validator - if(elt.evaluationfunction) { - this._originalValidationMethod = Function.createDelegate(elt, elt.evaluationfunction); - this._validationMethodOverride = Function.createDelegate(this, this._onvalidate); - elt.evaluationfunction = this._validationMethodOverride; - } // Check for failed server-side validation (indicated by non-empty ClientState) var clientState = this.get_ClientState(); @@ -47,16 +42,76 @@ Sys.Extended.UI.ValidatorCalloutBehavior.prototype = { // Apply HightLightCssClass for failed server-side validation if(this._highlightCssClass) Sys.UI.DomElement.addCssClass(this._elementToValidate, this._highlightCssClass); + this.show(); } }, + _loadHandler: function(app, args) { + var components = args.get_components(); + + for(var i = 0; i < components.length; i++) { + var component = components[i]; + + if(component instanceof Sys.Extended.UI.ValidatorCalloutBehavior) { + component.attachToValidator(); + } + } + }, + + attachToValidator: function() { + var element = this.get_element(); + var self = this; + + if(!this._originalValidationMethodOverriden) { + if(window.jQuery) { + window.jQuery(function($) { + $(function() { + self.checkPageValidators(element); + }); + }); + } + else + self.overrideEvaluationFunction(element); + + this._originalValidationMethodOverriden = true; + } + }, + + checkPageValidators: function(element) { + if(typeof (Page_Validators) === "undefined") + return; + + for(i = 0; i < Page_Validators.length; i++) { + var validator = Page_Validators[i]; + + if(validator.ValidatorCalloutBehavior !== this) + continue; + + if(typeof (validator.evaluationfunction) === "function") { + element.evaluationfunction = validator.evaluationfunction; + this.overrideEvaluationFunction(element); + break; + } + } + }, + + overrideEvaluationFunction: function(element) { + // Override the evaluation method of the current validator + if(element.evaluationfunction) { + this._originalValidationMethod = Function.createDelegate(element, element.evaluationfunction); + this._validationMethodOverride = Function.createDelegate(this, this._onvalidate); + element.evaluationfunction = this._validationMethodOverride; + element.removeAttribute("data-val-evaluationfunction"); + } + }, + _ensureCallout: function() { if(!this._isBuilt) { var elt = this.get_element(); // create the DOM elements - var elementToValidate = this._elementToValidate = $get(elt.controltovalidate); + var elementToValidate = this._elementToValidate = $get(elt.controltovalidate != null ? elt.controltovalidate : elt.getAttribute('data-val-controltovalidate')); var popupTableBody = document.createElement("tbody"); var popupTableRow = document.createElement("tr"); var calloutCell = document.createElement("td"); @@ -214,7 +269,7 @@ Sys.Extended.UI.ValidatorCalloutBehavior.prototype = { {}, null, this._popupTable); - + if(this._popupPosition == Sys.Extended.UI.ValidatorCalloutPosition.TopLeft) this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopLeft); else if(this._popupPosition == Sys.Extended.UI.ValidatorCalloutPosition.TopRight) @@ -277,7 +332,8 @@ Sys.Extended.UI.ValidatorCalloutBehavior.prototype = { }, _getErrorMessage: function() { - return this.get_element().errormessage || Sys.Extended.UI.Resources.ValidatorCallout_DefaultErrorMessage; + var element = this.get_element(); + return element.errormessage || element.getAttribute('data-val-errormessage') || Sys.Extended.UI.Resources.ValidatorCallout_DefaultErrorMessage; }, /// diff --git a/Scripts/AjaxControlToolkit/Release/Accordion.js b/Scripts/AjaxControlToolkit/Release/Accordion.js index ef88101c8..efd4b0b3d 100644 --- a/Scripts/AjaxControlToolkit/Release/Accordion.js +++ b/Scripts/AjaxControlToolkit/Release/Accordion.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.AutoSize=function(){throw Error.invalidOperation();};Sys.Extended.UI.AutoSize.prototype={None:0,Fill:1,Limit:2};Sys.Extended.UI.AutoSize.registerEnum("Sys.Extended.UI.AutoSize",!1);Sys.Extended.UI.AccordionSelectedIndexChangeEventArgs=function(n,t){Sys.Extended.UI.AccordionSelectedIndexChangeEventArgs.initializeBase(this);this._oldIndex=n;this._selectedIndex=t};Sys.Extended.UI.AccordionSelectedIndexChangeEventArgs.prototype={get_oldIndex:function(){return this._oldIndex},set_oldIndex:function(n){this._oldIndex=n},get_selectedIndex:function(){return this._selectedIndex},set_selectedIndex:function(n){this._selectedIndex=n}};Sys.Extended.UI.AccordionSelectedIndexChangeEventArgs.registerClass("Sys.Extended.UI.AccordionSelectedIndexChangeEventArgs",Sys.CancelEventArgs);Sys.Extended.UI.AccordionBehavior=function(n){Sys.Extended.UI.AccordionBehavior.initializeBase(this,[n]);this._selectedIndex=0;this._panes=[];this._fadeTransitions=!1;this._duration=.25;this._framesPerSecond=30;this._autoSize=Sys.Extended.UI.AutoSize.None;this._requireOpenedPane=!0;this._suppressHeaderPostbacks=!1;this._headersSize=0;this._headerClickHandler=null;this._headerCssClass="";this._headerSelectedCssClass="";this._resizeHandler=null;this._isIE8InStandardMode=Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version>7&&Sys.Browser.documentMode!=0};Sys.Extended.UI.AccordionBehavior.prototype={initialize:function(){var t,i,n,r,u;for(Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"initialize"),this._headerClickHandler=Function.createDelegate(this,this._onHeaderClick),t=this.get_ClientState(),t!==null&&t!==""&&this._changeSelectedIndex(parseInt(t),!1,!0),i=this.get_element().childNodes,n={},n.value=0;n.value0&&this._changeSelectedIndex(0,!1,!0);this._initializeLayout()},_getNextDiv:function(n,t){for(var i=null;t.value=7,(!i||i&&n.height&&n.height.length>0)&&(n.height="auto"),(!i||i&&n.overflow&&n.overflow.length>0)&&(n.overflow="auto")):(this._addResizeHandler(),n.height=u.offsetHeight+"px",n.overflow="hidden"),t=0;t=0;t--)n=this._panes[t],n&&(n.header&&(n.header._index=null,$removeHandler(n.header,"click",this._headerClickHandler),n.header=null),n.content&&(n.content._original=null,n.content=null),this._panes[t]=null,delete this._panes[t]);this._panes=null;this._headerClickHandler=null;Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"dispose")},_disposeResizeHandler:function(){this._resizeHandler&&($removeHandler(window,"resize",this._resizeHandler),this._resizeHandler=null)},_disposeAnimations:function(){for(var n,t=0;t0&&(t=Math.min(t,r)))),t},_getTotalSize:function(n){var t=$common.getSize(n),i=$common.getMarginBox(n);return t.width+=i.horizontal,t.height+=i.vertical,t},_getGutterSize:function(n){var i={width:0,height:0},t;try{t=$common.getPaddingBox(n);i.width+=t.horizontal;i.height+=t.vertical}catch(r){}try{t=$common.getBorderBox(n);i.width+=t.horizontal;i.height+=t.vertical}catch(r){}return t=$common.getMarginBox(n),i.width+=t.horizontal,i.height+=t.vertical,i},add_selectedIndexChanging:function(n){this.get_events().addHandler("selectedIndexChanging",n)},remove_selectedIndexChanging:function(n){this.get_events().removeHandler("selectedIndexChanging",n)},raiseSelectedIndexChanging:function(n){Sys.Extended.Deprecated("raiseSelectedIndexChanging(eventArgs)","raise_selectedIndexChanging(eventArgs)");this.raise_selectedIndexChanging(n)},raise_selectedIndexChanging:function(n){var t=this.get_events().getHandler("selectedIndexChanging");t&&t(this,n)},add_selectedIndexChanged:function(n){this.get_events().addHandler("selectedIndexChanged",n)},remove_selectedIndexChanged:function(n){this.get_events().removeHandler("selectedIndexChanged",n)},raiseSelectedIndexChanged:function(n){Sys.Extended.Deprecated("raiseSelectedIndexChanged(eventArgs)","raise_selectedIndexChanged(eventArgs)");this.raise_selectedIndexChanged(n)},raise_selectedIndexChanged:function(n){var t=this.get_events().getHandler("selectedIndexChanged");t&&t(this,n)},getPane:function(n){return(n===undefined||n===null)&&(n=this._selectedIndex),this._panes&&n>=0&&n7&&0!=Sys.Browser.documentMode,this._paneHeaderClassNames=[]},Sys.Extended.UI.AccordionBehavior.prototype={initialize:function(){Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"initialize"),this._headerClickHandler=Function.createDelegate(this,this._onHeaderClick);var e=this.get_ClientState();null!==e&&""!==e&&this._changeSelectedIndex(parseInt(e),!1,!0);var t=this.get_element().childNodes,n={};for(n.value=0;n.value0&&this._changeSelectedIndex(0,!1,!0),this._initializeLayout()},_getNextDiv:function(e,t){for(var n=null;t.value=7;(!i||i&&s.height&&s.height.length>0)&&(s.height="auto"),(!i||i&&s.overflow&&s.overflow.length>0)&&(s.overflow="auto")}else this._addResizeHandler(),s.height=n.offsetHeight+"px",s.overflow="hidden";for(var e=0;e=0;e--){var t=this._panes[e];t&&(t.header&&(t.header._index=null,$removeHandler(t.header,"click",this._headerClickHandler),t.header=null),t.content&&(t.content._original=null,t.content=null),this._panes[e]=null,delete this._panes[e])}this._panes=null,this._headerClickHandler=null,Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"dispose")},_disposeResizeHandler:function(){this._resizeHandler&&($removeHandler(window,"resize",this._resizeHandler),this._resizeHandler=null)},_disposeAnimations:function(){for(var e=0;e0&&(t=Math.min(t,i))}}return t},_getTotalSize:function(e){var t=$common.getSize(e),n=$common.getMarginBox(e);return t.width+=n.horizontal,t.height+=n.vertical,t},_getGutterSize:function(e){var t={width:0,height:0};try{var n=$common.getPaddingBox(e);t.width+=n.horizontal,t.height+=n.vertical}catch(e){}try{var n=$common.getBorderBox(e);t.width+=n.horizontal,t.height+=n.vertical}catch(e){}var n=$common.getMarginBox(e);return t.width+=n.horizontal,t.height+=n.vertical,t},add_selectedIndexChanging:function(e){this.get_events().addHandler("selectedIndexChanging",e)},remove_selectedIndexChanging:function(e){this.get_events().removeHandler("selectedIndexChanging",e)},raiseSelectedIndexChanging:function(e){Sys.Extended.Deprecated("raiseSelectedIndexChanging(eventArgs)","raise_selectedIndexChanging(eventArgs)"),this.raise_selectedIndexChanging(e)},raise_selectedIndexChanging:function(e){var t=this.get_events().getHandler("selectedIndexChanging");t&&t(this,e)},add_selectedIndexChanged:function(e){this.get_events().addHandler("selectedIndexChanged",e)},remove_selectedIndexChanged:function(e){this.get_events().removeHandler("selectedIndexChanged",e)},raiseSelectedIndexChanged:function(e){Sys.Extended.Deprecated("raiseSelectedIndexChanged(eventArgs)","raise_selectedIndexChanged(eventArgs)"),this.raise_selectedIndexChanged(e)},raise_selectedIndexChanged:function(e){var t=this.get_events().getHandler("selectedIndexChanged");t&&t(this,e)},getPane:function(e){return void 0!==e&&null!==e||(e=this._selectedIndex),this._panes&&e>=0&&e=0?n.lastIndexOf("\\"):n.lastIndexOf("/"),t=n.substring(r),(t.indexOf("\\")===0||t.indexOf("/")===0)&&(t=t.substring(1)),i=t)}return encodeURIComponent(i)};this.getFileType=function(n){if(!n)throw"file must defined or not null";if(!n.value&&n.name)return n.name.substring(n.name.lastIndexOf(".")+1);if(n.value&&(n=n.value),typeof n!="string")throw"can't resolve file type.";return n.substring(n.lastIndexOf(".")+1)};this.sizeToString=function(n){if(!n||n<=0)return"0 Kb";var t=Math.floor(Math.log(n)/Math.log(1024));return(n/Math.pow(1024,Math.floor(t))).toFixed(2)+" "+["bytes","kb","MB","GB","TB","PB"][t]};this.checkHtml5BrowserSupport=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob&&(new XMLHttpRequest).upload}};Sys.Extended.UI.AjaxFileUpload.Item=function(n,t,i){this._deleteButton=null;this._parentId=n;this._inputElementValue=t.value;this._id=t.id;this._slices=t.slices;this._sliceIndex=0;this._fileInfoContainer=null;this._fileStatusText=null;this._isUploaded=!1;this._isUploading=!1;this._fileSize=0;this._fileName="";this._fileType="";this._bytesUploaded=0;this._ui=this.initUI(i)};Sys.Extended.UI.AjaxFileUpload.Item.prototype={initUI:function(n){var l=this,t=this._inputElementValue,e=new Sys.Extended.UI.AjaxFileUpload.Utils,a=e.checkHtml5BrowserSupport(),i=this._id,r=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemContainer_"+i},cssClasses:["ajax__fileupload_fileItemInfo"]}),u=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileInfoContainer_"+i,style:{display:"inline-block"}}}),o=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemInfo_"+i},cssClasses:["ajax__fileupload_fileItemInfo"]}),h=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemStatus_"+i},cssClasses:["uploadstatus"]}),f=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemDeleteButton_"+i},cssClasses:["removeButton"]}),s,c;return this._fileName=e.getFileName(t),s=decodeURIComponent(this._fileName),a?(this._fileSize=t.size,c=t.type?'('+t.type+")<\/span>":"",o.innerHTML=''+s+"<\/span> "+c+' - '+e.sizeToString(t.size)+"<\/span> ",this._fileType=t.type):(o.innerHTML=''+s+"<\/span>",this._fileType=e.getFileType(t)),u.appendChild(o),u.appendChild(h),$common.setText(f,Sys.Extended.UI.Resources.AjaxFileUpload_Remove),$addHandlers(f,{click:Function.createDelegate(this,function(){n(l)})}),Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<=8?(r.appendChild(f),r.appendChild(u)):(r.appendChild(u),r.appendChild(f)),this._fileInfoContainer=u,this._deleteButton=f,this._fileStatusText=h,r},setStatus:function(n,t){$common.setText(this._fileStatusText," ("+t+")");this._fileInfoContainer.setAttribute("class",n+"State")},disabled:function(n){this._deleteButton.disabled=n?"disabled":""},hide:function(){this._deleteButton.style.visibility="hidden"},destroy:function(){$common.removeElement(this._inputElementValue);$common.removeElement(this._deleteButton);$common.removeElement(this._ui)},get_inputElementValue:function(){return this._inputElementValue},appendNodeTo:function(n){n.appendChild(this._ui)},removeNodeFrom:function(n){n.removeChild(this._ui)}};Sys.Extended.UI.AjaxFileUpload.Processor=function(n,t){var r=new Sys.Extended.UI.AjaxFileUpload.Utils,i=new XMLHttpRequest;this._iframe=null;this._iframeName=n.get_id()+"_uploadIframe";this._form=null;this.initialize=function(){this.attachEvents();this.createIFrame();this.createForm()};this.attachEvents=function(){this.onFileSelected$delegate=Function.createDelegate(this,this.onFileSelectedHandler);this.attachFileInputEvents(t.inputFile,!0);var r=this;i.onreadystatechange=function(){if(i.readyState==4&&i.status==200){var t=i.responseText;t&&(t=parseFloat(t).toFixed(2),n.setPercent(t));t<100&&setTimeout(function(){r.pollingServerProgress(!0)},500)}}};this.attachFileInputEvents=function(n,t){t?$addHandlers(n,{change:this.onFileSelected$delegate}):$common.removeHandlers(n,{change:this.onFileSelected$delegate})};this.onFileSelectedHandler=function(){var i={id:r.generateGuid(),value:t.inputFile,type:r.getFileType(t.inputFile.value)};n.fileTypeIsValid(i.type)?(n.addFileToQueue(i),this.createInputFileElement()):n.confirmFileIsInvalid(i)};this.createInputFileElement=function(){var i=t.inputFile,f,u;i.style.zIndex=-999;$common.setLocation(i,{x:-99999,y:-99999});this.attachFileInputEvents(i,!1);f=n.get_id()+"_file_"+r.generateGuid();u=$common.createElementFromTemplate({nodeName:"input",properties:{id:f,name:"act-file-data",type:"file",style:{zIndex:0,cursor:"pointer",position:"absolute"}}},i.parentNode);$common.setElementOpacity(u,0);this.attachFileInputEvents(u,!0);t.inputFile=u};this.startUpload=function(){var t=this._form,i=n.getNextFile(),r;if(!i){n._currentFileId=null;this.setThrobber(!1);n.done();return}for(n.setAsUploading(i),r=i.get_inputElementValue(),n._currentFileId=i._id,this.setThrobber(!0);t.firstChild;)t.removeChild(t.firstChild);r.name="act-file-data";t.appendChild(r);t.setAttribute("action",n._uploadUrl+"?contextKey="+n.get_id()+"&fileId="+n._currentFileId+"&fileName="+i._fileName+"&usePoll="+(n.get_serverPollingSupport()?"true":"false"));t.submit()};this.cancelUpload=function(){var t=new XMLHttpRequest,r=this;i&&i.abort();t.open("POST","?contextKey="+n.get_id()+"&cancel=1&guid="+n._currentFileId,!0);t.onreadystatechange=function(){if(r.setThrobber(!1),t.readyState==4)if(t.status==200)n.cancelUpload();else{r.raiseUploadError(t);throw"Failed to cancel upload.";}};t.send(null)};this.createIFrame=function(){var t=this._iframeName,n=document.createElement("IFRAME");n.width="0";n.height="0";n.style.display="none";n.src="about:blank";n.id=t;n.name=t;n.security="restricted";document.body.appendChild(n);n.contentWindow.name=t;$addHandlers(n,{load:Function.createDelegate(this,this.onIFrameLoadedHandler)});this._iframe=n};this.onIFrameLoadedHandler=function(t){if(n._currentFileId)try{var i=this._iframe,r=null;if(i.contentDocument?r=i.contentDocument:i.contentWindow?r=i.contentWindow.document:i.document&&(r=i.document),r==null)throw"Document not initialized";n.doneAndUploadNextFile(n.getCurrentFileItem())}catch(t){if(!n._canceled||!(t.message&&(t.message.indexOf("Access is denied")>-1||t.message.indexOf("Permission denied")>-1))){this.raiseUploadError(t);throw t;}}};this.setThrobber=function(i){if(n.get_serverPollingSupport()){n.setPercent(0);$common.setVisible(t.progressBar,i?!0:!1);$common.setVisible(t.progressBarContainer,i?!0:!1);this.pollingServerProgress(i);return}n.get_throbber()!=null&&(n.get_throbber().style.display=i?"":"none")};this.pollingServerProgress=function(t){t&&n._currentFileId&&(i.open("GET","?contextKey="+n.get_id()+"&poll=1&guid="+n._currentFileId,!0),i.send(null))};this.createForm=function(){var t,i="___postForm"+n.get_id();try{t=document.createElement('
')}catch(r){t=document.createElement("form");t.setAttribute("id",i);t.setAttribute("method","post");t.setAttribute("target",this._iframe.id);t.setAttribute("enctype","multipart/form-data")}t.style.visibility="hidden";t.style.display="none";document.body.appendChild(t);this._form=t};this.raiseUploadError=function(t){n.raise_uploadError(t);n.setFileStatus(n._currentFileId,"error",Sys.Extended.UI.Resources.AjaxFileUpload_error);i&&i.abort();n._currentFileId=null}};Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5=function(n,t){var i=new Sys.Extended.UI.AjaxFileUpload.Utils,r=n.get_chunkSize()*1e3,u=0,f=null;this.initialize=function(){$common.setVisible(t.dropZone,!0);t.dropZone.innerHTML=Sys.Extended.UI.Resources.AjaxFileUpload_DropFiles;this.attachEvents()};this.attachEvents=function(){this.onFileDropped$delegate=Function.createDelegate(this,this.onFileDroppedHandler);this.onFileDragOver$delegate=Function.createDelegate(this,this.onFileDragOverHandler);this.onFileSelected$delegate=Function.createDelegate(this,this.onFileSelectedHandler);t.inputFile.addEventListener("change",this.onFileSelected$delegate,!1);t.dropZone.addEventListener("drop",this.onFileDropped$delegate,!1);t.dropZone.addEventListener("dragover",this.onFileDragOver$delegate,!1)};this.onFileDroppedHandler=function(n){n.stopPropagation();n.preventDefault();this.addFilesToQueue(n.dataTransfer.files)};this.onFileDragOverHandler=function(n){n.stopPropagation();n.preventDefault()};this.onFileSelectedHandler=function(n){this.addFilesToQueue(n.target.files);this.createInputFileElement()};this.createInputFileElement=function(){var u=t.inputFile,f,r;delete u;f=n.get_id()+"_file_"+i.generateGuid();r=$common.createElementFromTemplate({nodeName:"input",properties:{id:f,name:"act-file-data",type:"file",style:{zIndex:0,cursor:"pointer",position:"absolute"}}},u.parentNode);$common.setElementOpacity(r,0);this.attachFileInputEvents(r,!0);t.inputFile=r};this.attachFileInputEvents=function(n,t){t?$addHandlers(n,{change:this.onFileSelected$delegate}):$common.removeHandlers(n,{change:this.onFileSelected$delegate})};this.addFilesToQueue=function(u){for(var o,s,e,f=0;fr&&(s=Math.ceil(o.size/r)),e={id:i.generateGuid(),value:u[f],type:i.getFileType(u[f]),uploaded:!1,slices:s},n.fileTypeIsValid(e.type)){if(!n.addFileToQueue(e))break}else n.confirmFileIsInvalid(e);t.inputFile.value=null};this.cancelUpload=function(){f&&f.abort();n.cancelUpload()};this.startUpload=function(){var i=n.getNextFile();i?(i._sliceIndex===0&&n.setPercent(0),$common.setVisible(t.progressBarContainer,!0),this.upload(i)):(n._currentFileId=null,n.setPercent(0),$common.setVisible(t.progressBarContainer,!1),n.done())};this.upload=function(i){var o,s;if(n._isUploading){$common.setVisible(t.progressBar,!0);n.setAsUploading(i);var f=i.get_inputElementValue(),a=i._fileName,h=i._slices&&i._slices>0,v=i._sliceIndex==0;h&&(o=i._sliceIndex*r,s=o+r,f=f.slice(o,s>f.size?f.size:s));var c=new FormData,l=n._currentFileId=i._id,u=new XMLHttpRequest,y=this,e=function(n){return function(t){n.call(y,l,t)}};u.upload.addEventListener("progress",e(this.onProgressHandler),!1);u.addEventListener("load",e(this.onUploadCompleteHandler),!1);u.addEventListener("error",e(this.onUploadFailedHandler),!1);u.addEventListener("abort",e(this.onUploadCanceledHandler),!1);u.open("POST",n._uploadUrl+"?contextKey="+n.get_id()+"&fileId="+l+"&fileName="+a+"&chunked="+(h?"true":"false")+"&firstChunk="+v,!0);c.append("act-file-data",f);u.send(c)}};this.onProgressHandler=function(t,i){if(n._isUploading&&i.lengthComputable){u=i.loaded;var r=n.getFileItem(t),f=r._slices,e=r._bytesUploaded+u,o=f-r._sliceIndex==1?e:i.total*f,s=f==0?(i.loaded*100/i.total).toFixed(2):(e/o*100).toFixed(2);n.setPercent(s)}};this.onUploadCompleteHandler=function(t){var e=this,r=n.getFileItem(t),f=r.get_inputElementValue();r._slices&&r._slices>0&&r._sliceIndex+10&&this._filesInQueue.length>=i?(alert(Sys.Extended.UI.Resources.AjaxFileUpload_MaxNumberOfFilesExceeded),!1):(t=new Sys.Extended.UI.AjaxFileUpload.Item(this.get_id(),n,Function.createDelegate(this,this.removeFileFromQueueHandler)),t.appendNodeTo(this._elements.queueContainer),t.setStatus("pending",Sys.Extended.UI.Resources.AjaxFileUpload_Pending),$common.setVisible(this._elements.queueContainer,!0),$common.setVisible(this._elements.uploadOrCancelButton,!0),this._filesInQueue.push(t),this._showFilesCount(),!0)},_showFilesCount:function(){var n=this._filesInQueue.length==0;this.setStatusMessage(n?Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload:String.format(Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue,this._filesInQueue.length.toString()))},fileTypeIsValid:function(n){var i,t,r;if(!this._allowedFileTypes)return!0;for(i=this._allowedFileTypes.split(","),t=0;t=100&&(n="100");t.style.width=n+"%";$common.setText(t,String.format(Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage,n))},get_allowedFileTypes:function(){return this._allowedFileTypes},set_allowedFileTypes:function(n){this._allowedFileTypes=n},get_contextKey:function(){return this._contextKey},set_contextKey:function(n){this._contextKey=n},get_postBackUrl:function(){return this._postBackUrl},set_postBackUrl:function(n){this._postBackUrl=n},get_mode:function(){return this._mode},set_mode:function(n){this._mode=n},get_serverPollingSupport:function(){return this._serverPollingSupport},set_serverPollingSupport:function(n){this._serverPollingSupport=n},get_throbber:function(){return this._throbber},set_throbber:function(n){this._throbber=n},get_maximumNumberOfFiles:function(){return this._maximumNumberOfFiles},set_maximumNumberOfFiles:function(n){this._maximumNumberOfFiles=n},get_chunkSize:function(){return this._chunkSize},set_chunkSize:function(n){this._chunkSize=n},get_clearFileListAfterUpload:function(){return this._clearFileListAfterUpload},set_clearFileListAfterUpload:function(n){this._clearFileListAfterUpload=n},add_uploadStart:function(n){this.get_events().addHandler("uploadStart",n)},remove_uploadStart:function(n){this.get_events().removeHandler("uploadStart",n)},raiseUploadStart:function(n){Sys.Extended.Deprecated("raiseUploadStart(e)","raise_uploadStart(e)");this.raise_uploadStart(n)},raise_uploadStart:function(n){var t=this.get_events().getHandler("uploadStart"),i;t&&(i=new Sys.Extended.UI.AjaxFileUploadStartEventArgs(n.FilesInQueue,n.ServerArguments),t(this,i))},add_uploadComplete:function(n){this.get_events().addHandler("uploadComplete",n)},remove_uploadComplete:function(n){this.get_events().removeHandler("uploadComplete",n)},raiseUploadComplete:function(n){Sys.Extended.Deprecated("raiseUploadComplete(e)","raise_uploadComplete(e)");this.raise_uploadComplete(n)},raise_uploadComplete:function(n){var t=this.getCurrentFileItem(),i,r,u;if(!t||!n||n.FileId!==t._id)throw"Invalid finalizing upload server response.";this.setFileStatus(t,"uploaded",Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded);this.setStatusMessage("Uploaded "+this._currentQueueIndex+" of "+this._filesInQueue.length+" file(s)");t._isUploaded=!0;t._isUploading=!1;t.hide();i=this.get_events().getHandler("uploadComplete");i&&(r=Array.indexOf(this._filesInQueue,t),u=new Sys.Extended.UI.AjaxFileUploadEventArgs(n.FileId,n.StatusMessage,n.FileName,n.FileSize,n.ContentType,n.PostedUrl,r,this._filesInQueue.length),i(this,u))},add_uploadCompleteAll:function(n){this.get_events().addHandler("uploadCompleteAll",n)},remove_uploadCompleteAll:function(n){this.get_events().removeHandler("uploadCompleteAll",n)},raiseUploadCompleteAll:function(){Sys.Extended.Deprecated("raiseUploadCompleteAll(e)","raise_uploadCompleteAll(e)");this.raise_uploadCompleteAll("raiseUploadCompleteAll(e)","raise_uploadCompleteAll(e)")},raise_uploadCompleteAll:function(n){var t=this.get_events().getHandler("uploadCompleteAll"),i;t&&(i=new Sys.Extended.UI.AjaxFileUploadCompleteAllEventArgs(n.FilesInQueue,n.FilesUploaded,n.Reason,n.ServerArguments),t(this,i))},add_uploadError:function(n){this.get_events().addHandler("uploadError",n)},remove_uploadError:function(n){this.get_events().removeHandler("uploadError",n)},raiseUploadError:function(n){Sys.Extended.Deprecated("raiseUploadError(e)","raise_uploadError(e)");this.raise_uploadError(n)},raise_uploadError:function(n){var t=this.get_events().getHandler("uploadError");t&&t(this,n);this._canceled=!1;this._isUploading=!1;this.enableControls(!0)},getCurrentFileItem:function(){return this.getFileItem(this._currentFileId)},getNextFile:function(){var n,t;if(!this._isUploading)return null;for(n=0;n=0?e.lastIndexOf("\\"):e.lastIndexOf("/"),n=e.substring(i);0!==n.indexOf("\\")&&0!==n.indexOf("/")||(n=n.substring(1)),t=n}}return t},this.getFileType=function(t){if(!t)throw"file must defined or not null";if(!t.value&&t.name)return e(t.name);if(t.value&&(t=t.value),"string"!=typeof t)throw"can't resolve file type.";return e(t)},this.sizeToString=function(e){if(!e||e<=0)return"0 Kb";var t=["bytes","kb","MB","GB","TB","PB"],i=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,Math.floor(i))).toFixed(2)+" "+t[i]},this.checkHtml5BrowserSupport=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob&&(new XMLHttpRequest).upload}},Sys.Extended.UI.AjaxFileUpload.Item=function(e,t,i){this._deleteButton=null,this._parentId=e,this._inputElementValue=t.value,this._id=t.id,this._slices=t.slices,this._sliceIndex=0,this._fileInfoContainer=null,this._fileStatusText=null,this._isUploaded=!1,this._isUploading=!1,this._fileSize=0,this._fileName="",this._fileType="",this._bytesUploaded=0,this._ui=this.initUI(i)},Sys.Extended.UI.AjaxFileUpload.Item.prototype={initUI:function(e){var t=this,i=this._inputElementValue,n=new Sys.Extended.UI.AjaxFileUpload.Utils,l=n.checkHtml5BrowserSupport(),s=this._id,o=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemContainer_"+s},cssClasses:["ajax__fileupload_fileItemInfo"]}),a=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileInfoContainer_"+s,style:{display:"inline-block"}}}),r=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemInfo_"+s},cssClasses:["ajax__fileupload_fileItemInfo"]}),d=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemStatus_"+s},cssClasses:["uploadstatus"]}),u=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemDeleteButton_"+s},cssClasses:["removeButton"]});this._fileName=n.getFileName(i);var p=Sys.Extended.UI.htmlEncode;if(l){this._fileSize=i.size;var c=i.type?'('+p(i.type)+")":"";r.innerHTML=''+p(this._fileName)+" "+c+' - '+n.sizeToString(i.size)+" ",this._fileType=i.type}else r.innerHTML=''+p(this._fileName)+"",this._fileType=n.getFileType(i);return a.appendChild(r),a.appendChild(d),$common.setText(u,Sys.Extended.UI.Resources.AjaxFileUpload_Remove),$addHandlers(u,{click:Function.createDelegate(this,function(){e(t)})}),Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<=8?(o.appendChild(u),o.appendChild(a)):(o.appendChild(a),o.appendChild(u)),this._fileInfoContainer=a,this._deleteButton=u,this._fileStatusText=d,o},setStatus:function(e,t){$common.setText(this._fileStatusText," ("+t+")"),this._fileInfoContainer.setAttribute("class",e+"State")},disabled:function(e){e?this._deleteButton.disabled="disabled":this._deleteButton.disabled=""},hide:function(){this._deleteButton.style.visibility="hidden"},destroy:function(){$common.removeElement(this._inputElementValue),$common.removeElement(this._deleteButton),$common.removeElement(this._ui)},get_inputElementValue:function(){return this._inputElementValue},appendNodeTo:function(e){e.appendChild(this._ui)},removeNodeFrom:function(e){e.removeChild(this._ui)}},Sys.Extended.UI.AjaxFileUpload.Processor=function(e,t){var i=new Sys.Extended.UI.AjaxFileUpload.Utils,n=new XMLHttpRequest;this._iframe=null,this._iframeName=e.get_id()+"_uploadIframe",this._form=null,this.initialize=function(){this.attachEvents(),this.createIFrame(),this.createForm()},this.attachEvents=function(){this.onFileSelected$delegate=Function.createDelegate(this,this.onFileSelectedHandler),this.attachFileInputEvents(t.inputFile,!0);var i=this;n.onreadystatechange=function(t){if(4==n.readyState&&200==n.status){var l=n.responseText;l&&(l=parseFloat(l).toFixed(2),e.setPercent(l)),l<100&&setTimeout(function(){i.pollingServerProgress(!0)},500)}}},this.attachFileInputEvents=function(e,t){t?$addHandlers(e,{change:this.onFileSelected$delegate}):$common.removeHandlers(e,{change:this.onFileSelected$delegate})},this.onFileSelectedHandler=function(n){var l={id:i.generateGuid(),value:t.inputFile,type:i.getFileType(t.inputFile.value)};return e.fileTypeIsValid(l.type)?e.fileSizeExceeded(l.value.size)?void e.confirmFileIsTooLarge(l):(e.addFileToQueue(l),void this.createInputFileElement()):void e.confirmFileIsInvalid(l)},this.createInputFileElement=function(){var n=t.inputFile;n.style.zIndex=-999,$common.setLocation(n,{x:-99999,y:-99999}),this.attachFileInputEvents(n,!1);var l=e.get_id()+"_file_"+i.generateGuid(),s=$common.createElementFromTemplate({nodeName:"input",properties:{id:l,name:"act-file-data",type:"file",style:{zIndex:0,cursor:"pointer",position:"absolute"},multiple:!0}},n.parentNode);$common.setElementOpacity(s,0),this.attachFileInputEvents(s,!0),t.inputFile=s},this.startUpload=function(){var t=this._form,i=e.getNextFile();if(!i)return e._currentFileId=null,this.setThrobber(!1),void e.done();e.setAsUploading(i);var n=i.get_inputElementValue();for(e._currentFileId=i._id,this.setThrobber(!0);t.firstChild;)t.removeChild(t.firstChild);n.name="act-file-data",t.appendChild(n),t.setAttribute("action",e.get_uploadHandlerPath()+"?contextKey="+e.get_contextKey()+"&controlID="+e.get_id()+"&fileId="+e._currentFileId+"&fileName="+encodeURIComponent(i._fileName)+"&usePoll="+(e.get_serverPollingSupport()?"true":"false")),t.submit()},this.cancelUpload=function(){var t=new XMLHttpRequest,i=this;n&&n.abort(),t.open("POST","?contextKey="+e.get_contextKey()+"&controlID="+e.get_id()+"&cancel=1&guid="+e._currentFileId+i.getQueryString(),!0),t.onreadystatechange=function(){if(i.setThrobber(!1),4==t.readyState){if(200!=t.status)throw i.raiseUploadError(t),"Failed to cancel upload.";e.cancelUpload()}},t.send(null)},this.getQueryString=function(){return"&"+window.location.search.replace("?","")},this.createIFrame=function(){var e=this._iframeName,t=document.createElement("IFRAME");t.width="0",t.height="0",t.style.display="none",t.src="about:blank",t.id=e,t.name=e,t.security="restricted",document.body.appendChild(t),t.contentWindow.name=e,$addHandlers(t,{load:Function.createDelegate(this,this.onIFrameLoadedHandler)}),this._iframe=t},this.onIFrameLoadedHandler=function(t){if(e._currentFileId)try{var i=this._iframe,n=null;if(i.contentDocument?n=i.contentDocument:i.contentWindow?n=i.contentWindow.document:i.document&&(n=i.document),null==n)throw"Document not initialized";e.doneAndUploadNextFile(e.getCurrentFileItem())}catch(t){if(!e._canceled||!t.message||!(t.message.indexOf("Access is denied")>-1||t.message.indexOf("Permission denied")>-1))throw this.raiseUploadError(t),t}},this.setThrobber=function(i){return e.get_serverPollingSupport()?(e.setPercent(0),$common.setVisible(t.progressBar,!!i),$common.setVisible(t.progressBarContainer,!!i),void this.pollingServerProgress(i)):void(null!=e.get_throbber()&&(e.get_throbber().style.display=i?"":"none"))},this.pollingServerProgress=function(t){t&&e._currentFileId&&(n.open("GET","?contextKey="+e.get_contextKey()+"&controlID="+e.get_id()+"&poll=1&guid="+e._currentFileId,!0),n.send(null))},this.createForm=function(){var t,i="___postForm"+e.get_id();try{t=document.createElement('')}catch(e){t=document.createElement("form"),t.setAttribute("id",i),t.setAttribute("method","post"),t.setAttribute("target",this._iframe.id),t.setAttribute("enctype","multipart/form-data")}t.style.visibility="hidden",t.style.display="none",document.body.appendChild(t),this._form=t},this.raiseUploadError=function(t){e.raise_uploadError(t),n&&n.abort(),e._currentFileId=null},this.resetUI=function(){e.setFileStatus(e._currentFileId,"error",Sys.Extended.UI.Resources.AjaxFileUpload_error)}},Sys.Extended.UI.AjaxFileUpload.ProcessorHtml5=function(e,t){var i=new Sys.Extended.UI.AjaxFileUpload.Utils,n=1e3*e.get_chunkSize(),l=0,s=null;this.initialize=function(){$common.setVisible(t.dropZone,!0),t.dropZone.innerHTML=Sys.Extended.UI.Resources.AjaxFileUpload_DropFiles,this.attachEvents()},this.attachEvents=function(){this.onFileDropped$delegate=Function.createDelegate(this,this.onFileDroppedHandler),this.onFileDragOver$delegate=Function.createDelegate(this,this.onFileDragOverHandler),this.onFileSelected$delegate=Function.createDelegate(this,this.onFileSelectedHandler),t.inputFile.addEventListener("change",this.onFileSelected$delegate,!1),t.dropZone.addEventListener("drop",this.onFileDropped$delegate,!1),t.dropZone.addEventListener("dragover",this.onFileDragOver$delegate,!1)},this.onFileDroppedHandler=function(t){t.stopPropagation(),t.preventDefault(),e.get_enabled()&&(this.addFilesToQueue(t.dataTransfer.files),e.get_autoStartUpload()&&e.startUpload())},this.onFileDragOverHandler=function(e){e.stopPropagation(),e.preventDefault()},this.onFileSelectedHandler=function(t){this.addFilesToQueue(t.target.files),this.createInputFileElement(),e.get_autoStartUpload()&&e.startUpload()},this.createInputFileElement=function(){var n=t.inputFile;delete n;var l=e.get_id()+"_file_"+i.generateGuid(),s=$common.createElementFromTemplate({nodeName:"input",properties:{id:l,name:"act-file-data",type:"file",style:{zIndex:0,cursor:"pointer",position:"absolute"},multiple:!0}},n.parentNode);$common.setElementOpacity(s,0),this.attachFileInputEvents(s,!0),t.inputFile=s},this.attachFileInputEvents=function(e,t){t?$addHandlers(e,{change:this.onFileSelected$delegate}):$common.removeHandlers(e,{change:this.onFileSelected$delegate})},this.addFilesToQueue=function(l){for(var s=0;sn&&(a=Math.ceil(o.size/n));var r={id:i.generateGuid(),value:l[s],type:i.getFileType(l[s]),uploaded:!1,slices:a};if(e.fileTypeIsValid(r.type)){if(e.fileSizeExceeded(r.value.size))e.confirmFileIsTooLarge(r);else if(!e.addFileToQueue(r))break}else e.confirmFileIsInvalid(r)}t.inputFile.value=null},this.cancelUpload=function(){s&&s.abort(),e.cancelUpload()},this.startUpload=function(){var i=e.getNextFile();i?(0===i._sliceIndex&&e.setPercent(0),$common.setVisible(t.progressBarContainer,!0),this.upload(i)):(e._currentFileId=null,e.setPercent(0),$common.setVisible(t.progressBarContainer,!1),e.done())},this.resetUI=function(){$common.setVisible(t.progressBarContainer,!1),$common.setVisible(e._elements.uploadOrCancelButton,!1);var i=e.getNextFile();i._isUploaded=!0,i._isUploading=!1},this.upload=function(i){if(e._isUploading){$common.setVisible(t.progressBar,!0),e.setAsUploading(i);var l=i.get_inputElementValue(),s=i._slices&&i._slices>0,o=0==i._sliceIndex;if(s){var a=i._sliceIndex*n,r=a+n;l=l.slice(a,r>l.size?l.size:r)}var d=new FormData,u=e._currentFileId=i._id,p=new XMLHttpRequest,c=this,h=function(e){return function(t){e.call(c,u,t)}};p.upload.addEventListener("progress",h(this.onProgressHandler),!1),p.addEventListener("load",h(this.onUploadCompleteHandler),!1),p.addEventListener("error",h(this.onUploadFailedHandler),!1),p.addEventListener("abort",h(this.onUploadCanceledHandler),!1),p.open("POST",e.get_uploadHandlerPath()+"?contextKey="+e.get_contextKey()+"&controlID="+e.get_id()+"&fileId="+u+"&fileName="+encodeURIComponent(i._fileName)+"&chunked="+(s?"true":"false")+"&firstChunk="+o,!0),d.append("act-file-data",l),p.send(d)}},this.onProgressHandler=function(t,i){if(e._isUploading&&i.lengthComputable){l=i.loaded;var n=e.getFileItem(t),s=n._slices,o=n._bytesUploaded+l,a=s-n._sliceIndex==1?o:i.total*s,r=0==s?(100*i.loaded/i.total).toFixed(2):(o/a*100).toFixed(2);e.setPercent(r)}},this.onUploadCompleteHandler=function(t,n){var s=this,o=e.getFileItem(t),a=o.get_inputElementValue();o._slices&&o._slices>0&&o._sliceIndex+10&&this._filesInQueue.length>=t)return alert(Sys.Extended.UI.Resources.AjaxFileUpload_MaxNumberOfFilesExceeded),!1;var i=new Sys.Extended.UI.AjaxFileUpload.Item(this.get_id(),e,Function.createDelegate(this,this.removeFileFromQueueHandler));return i.appendNodeTo(this._elements.queueContainer),i.setStatus("pending",Sys.Extended.UI.Resources.AjaxFileUpload_Pending),$common.setVisible(this._elements.queueContainer,!0),$common.setVisible(this._elements.uploadOrCancelButton,!0),this._filesInQueue.push(i),this._showFilesCount(),!0},_showFilesCount:function(){var e=0==this._filesInQueue.length;this.setStatusMessage(e?Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload:String.format(Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue,this._filesInQueue.length.toString()))},fileTypeIsValid:function(e){if(!this._allowedFileTypes)return!0;for(var t=this._allowedFileTypes.split(","),i=0;ithis.getMaxFileSizeInBytes()},confirmFileIsInvalid:function(e){var t=new Sys.Extended.UI.AjaxFileUpload.Utils;alert(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_WrongFileType,t.getFileName(e.value),e.type))},confirmFileIsTooLarge:function(e){var t=new Sys.Extended.UI.AjaxFileUpload.Utils;alert(String.format(Sys.Extended.UI.Resources.AjaxFileUpload_TooLargeFile,t.getFileName(e.value),this.get_maxFileSize()))},getMaxFileSizeInBytes:function(){return 1024*this.get_maxFileSize()},doneAndUploadNextFile:function(e){var t=new XMLHttpRequest,i=this;t.open("POST","?contextKey="+this.get_contextKey()+"&controlID="+this.get_id()+"&done=1&guid="+e._id+this.getQueryString(),!0),t.onreadystatechange=function(n){if(4==t.readyState){if(200!=t.status||""==t.responseText)throw i.setFileStatus(e,"error",Sys.Extended.UI.Resources.AjaxFileUpload_error),i.raise_uploadError(t),"error raising upload complete event and start new upload";i.raise_uploadComplete(Sys.Serialization.JavaScriptSerializer.deserialize(t.responseText)),i._processor.startUpload()}},t.send()},getQueryString:function(){return"&"+window.location.search.replace("?","")},cancelUpload:function(){var e=this.getCurrentFileItem();e._isUploaded=!1,e._isUploading=!1,this.setStatusMessage(Sys.Extended.UI.Resources.AjaxFileUpload_UploadCanceled);for(var t=0;t=100&&(e="100"),t.style.width=e+"%",$common.setText(t,String.format(Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage,e))},get_allowedFileTypes:function(){return this._allowedFileTypes},set_allowedFileTypes:function(e){this._allowedFileTypes=e},get_contextKey:function(){return this._contextKey},set_contextKey:function(e){this._contextKey=e},get_postBackUrl:function(){return this._postBackUrl},set_postBackUrl:function(e){this._postBackUrl=e},get_mode:function(){return this._mode},set_mode:function(e){this._mode=e},get_autoStartUpload:function(){return this._autoStartUpload},set_autoStartUpload:function(e){this._autoStartUpload=e},get_serverPollingSupport:function(){return this._serverPollingSupport},set_serverPollingSupport:function(e){this._serverPollingSupport=e},get_throbber:function(){return this._throbber},set_throbber:function(e){this._throbber=e},get_maximumNumberOfFiles:function(){return this._maximumNumberOfFiles},set_maximumNumberOfFiles:function(e){this._maximumNumberOfFiles=e},get_chunkSize:function(){return this._chunkSize},set_chunkSize:function(e){this._chunkSize=e},get_clearFileListAfterUpload:function(){return this._clearFileListAfterUpload},set_clearFileListAfterUpload:function(e){this._clearFileListAfterUpload=e},get_useAbsoluteHandlerPath:function(){return this._useAbsoluteHandlerPath},set_useAbsoluteHandlerPath:function(e){this._useAbsoluteHandlerPath=e},get_maxFileSize:function(){return this._maxFileSize},set_maxFileSize:function(e){this._maxFileSize=e},get_uploadHandlerPath:function(){return this._uploadHandlerPath},set_uploadHandlerPath:function(e){this._uploadHandlerPath=e},get_enabled:function(){return this.enabled},set_enabled:function(e){this.enabled=e},add_uploadStart:function(e){this.get_events().addHandler("uploadStart",e)},remove_uploadStart:function(e){this.get_events().removeHandler("uploadStart",e)},raiseUploadStart:function(e){Sys.Extended.Deprecated("raiseUploadStart(e)","raise_uploadStart(e)"),this.raise_uploadStart(e)},raise_uploadStart:function(e){var t=this.get_events().getHandler("uploadStart");if(t){var i=new Sys.Extended.UI.AjaxFileUploadStartEventArgs(e.FilesInQueue,e.ServerArguments);t(this,i)}},add_uploadComplete:function(e){this.get_events().addHandler("uploadComplete",e)},remove_uploadComplete:function(e){this.get_events().removeHandler("uploadComplete",e)},raiseUploadComplete:function(e){Sys.Extended.Deprecated("raiseUploadComplete(e)","raise_uploadComplete(e)"),this.raise_uploadComplete(e)},raise_uploadComplete:function(e){var t=this.getCurrentFileItem();if(!t||!e||e.FileId!==t._id)throw"Invalid finalizing upload server response.";this.setFileStatus(t,"uploaded",Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded),this.setStatusMessage("Uploaded "+this._currentQueueIndex+" of "+this._filesInQueue.length+" file(s)"),t._isUploaded=!0,t._isUploading=!1,t.hide();var i=this.get_events().getHandler("uploadComplete");if(i){var n=Array.indexOf(this._filesInQueue,t),l=new Sys.Extended.UI.AjaxFileUploadEventArgs(e.FileId,e.StatusMessage,e.FileName,e.FileSize,e.ContentType,e.PostedUrl,n,this._filesInQueue.length);i(this,l)}},add_uploadCompleteAll:function(e){this.get_events().addHandler("uploadCompleteAll",e)},remove_uploadCompleteAll:function(e){this.get_events().removeHandler("uploadCompleteAll",e)},raiseUploadCompleteAll:function(e){Sys.Extended.Deprecated("raiseUploadCompleteAll(e)","raise_uploadCompleteAll(e)"),this.raise_uploadCompleteAll("raiseUploadCompleteAll(e)","raise_uploadCompleteAll(e)")},raise_uploadCompleteAll:function(e){var t=this.get_events().getHandler("uploadCompleteAll");if(t){var i=new Sys.Extended.UI.AjaxFileUploadCompleteAllEventArgs(e.FilesInQueue,e.FilesUploaded,e.Reason,e.ServerArguments);t(this,i)}},add_uploadError:function(e){this.get_events().addHandler("uploadError",e)},remove_uploadError:function(e){this.get_events().removeHandler("uploadError",e)},raiseUploadError:function(e){Sys.Extended.Deprecated("raiseUploadError(e)","raise_uploadError(e)"),this.raise_uploadError(e)},raise_uploadError:function(e){var t=this.get_events().getHandler("uploadError");t&&t(this,e),this._processor.resetUI(),this._canceled=!1,this._isUploading=!1,this._isUploaded=!0,this.enableControls(!0)},getCurrentFileItem:function(){return this.getFileItem(this._currentFileId)},getNextFile:function(){if(!this._isUploading)return null;for(var e=0;e100&&(n=100),this._percentComplete=n,this.raisePropertyChanged("percentComplete"),t)this.onStep(n);n===100&&this.stop(!1)},setOwner:function(n){this._owner=n},raiseStarted:function(){var n=this.get_events().getHandler("started");n&&n(this,Sys.EventArgs.Empty)},add_started:function(n){this.get_events().addHandler("started",n)},remove_started:function(n){this.get_events().removeHandler("started",n)},raiseEnded:function(){var n=this.get_events().getHandler("ended");n&&n(this,Sys.EventArgs.Empty)},add_ended:function(n){this.get_events().addHandler("ended",n)},remove_ended:function(n){this.get_events().removeHandler("ended",n)},raiseStep:function(){var n=this.get_events().getHandler("step");n&&n(this,Sys.EventArgs.Empty)},add_step:function(n){this.get_events().addHandler("step",n)},remove_step:function(n){this.get_events().removeHandler("step",n)},get_target:function(){return!this._target&&this._parentAnimation?this._parentAnimation.get_target():this._target},set_target:function(n){this._target!=n&&(this._target=n,this.raisePropertyChanged("target"))},set_animationTarget:function(n){var i=null,t=$get(n),r;if(t?i=t:(r=$find(n),r&&(t=r.get_element(),t&&(i=t))),i)this.set_target(i);else throw Error.argument("id",String.format(Sys.Extended.UI.Resources.Animation_TargetNotFound,n));},get_duration:function(){return this._duration},set_duration:function(n){n=this._getFloat(n);this._duration!=n&&(this._duration=n,this.raisePropertyChanged("duration"))},get_fps:function(){return this._fps},set_fps:function(n){n=this._getInteger(n);this.fps!=n&&(this._fps=n,this.raisePropertyChanged("fps"))},get_isActive:function(){return this._timer!==null},get_isPlaying:function(){return this._timer!==null&&this._timer.get_enabled()},get_percentComplete:function(){return this._percentComplete},_getBoolean:function(n){return String.isInstanceOfType(n)?Boolean.parse(n):n},_getInteger:function(n){return String.isInstanceOfType(n)?parseInt(n):n},_getFloat:function(n){return String.isInstanceOfType(n)?parseFloat(n):n},_getEnum:function(n,t){return String.isInstanceOfType(n)&&t&&t.parse?t.parse(n):n}};$AA.Animation.registerClass("Sys.Extended.UI.Animation.Animation",Sys.Component);$AA.registerAnimation("animation",$AA.Animation);$AA.ParentAnimation=function(n,t,i,r){if($AA.ParentAnimation.initializeBase(this,[n,t,i]),this._animations=[],r&&r.length)for(var u=0;u=0;n--)this._animations[n].dispose(),this._animations[n]=null;Array.clear(this._animations);this._animations=[];this.raisePropertyChanged("animations")}}};$AA.ParentAnimation.registerClass("Sys.Extended.UI.Animation.ParentAnimation",$AA.Animation);$AA.registerAnimation("parent",$AA.ParentAnimation);$AA.ParallelAnimation=function(n,t,i,r){$AA.ParallelAnimation.initializeBase(this,[n,t,i,r])};$AA.ParallelAnimation.prototype={add:function(n){$AA.ParallelAnimation.callBaseMethod(this,"add",[n]);n.setOwner(this)},onStart:function(){var t,n;for($AA.ParallelAnimation.callBaseMethod(this,"onStart"),t=this.get_animations(),n=0;n=1||this._iterations<=0?(this._remainingIterations--,this._index=0,i=n[0],i.add_ended(this._handler),i.play()):this.stop()},onStep:function(){throw Error.invalidOperation(Sys.Extended.UI.Resources.Animation_CannotNestSequence);},onEnd:function(){this._remainingIterations=0;$AA.SequenceAnimation.callBaseMethod(this,"onEnd")},get_isActive:function(){return!0},get_isPlaying:function(){return this._playing&&!this._paused},get_iterations:function(){return this._iterations},set_iterations:function(n){n=this._getInteger(n);this._iterations!=n&&(this._iterations=n,this.raisePropertyChanged("iterations"))},get_isInfinite:function(){return this._iterations<=0}};$AA.SequenceAnimation.registerClass("Sys.Extended.UI.Animation.SequenceAnimation",$AA.ParentAnimation);$AA.registerAnimation("sequence",$AA.SequenceAnimation);$AA.SelectionAnimation=function(n,t,i,r){$AA.SelectionAnimation.initializeBase(this,[n,t,i,r]);this._selectedIndex=-1;this._selected=null};$AA.SelectionAnimation.prototype={getSelectedIndex:function(){throw Error.notImplemented();},onStart:function(){$AA.SelectionAnimation.callBaseMethod(this,"onStart");var n=this.get_animations();this._selectedIndex=this.getSelectedIndex();this._selectedIndex>=0&&this._selectedIndex0)try{selected=eval(this._conditionScript)?0:1}catch(ex){}return selected},get_conditionScript:function(){return this._conditionScript},set_conditionScript:function(n){this._conditionScript!=n&&(this._conditionScript=n,this.raisePropertyChanged("conditionScript"))}};$AA.ConditionAnimation.registerClass("Sys.Extended.UI.Animation.ConditionAnimation",$AA.SelectionAnimation);$AA.registerAnimation("condition",$AA.ConditionAnimation);$AA.CaseAnimation=function(n,t,i,r,u){$AA.CaseAnimation.initializeBase(this,[n,t,i,r]);this._selectScript=u};$AA.CaseAnimation.prototype={getSelectedIndex:function(){var selected=-1,result;if(this._selectScript&&this._selectScript.length>0)try{result=eval(this._selectScript);result!==undefined&&(selected=result)}catch(ex){}return selected},get_selectScript:function(){return this._selectScript},set_selectScript:function(n){this._selectScript!=n&&(this._selectScript=n,this.raisePropertyChanged("selectScript"))}};$AA.CaseAnimation.registerClass("Sys.Extended.UI.Animation.CaseAnimation",$AA.SelectionAnimation);$AA.registerAnimation("case",$AA.CaseAnimation);$AA.FadeEffect=function(){throw Error.invalidOperation();};$AA.FadeEffect.prototype={FadeIn:0,FadeOut:1};$AA.FadeEffect.registerEnum("Sys.Extended.UI.Animation.FadeEffect",!1);$AA.FadeAnimation=function(n,t,i,r,u,f,e){$AA.FadeAnimation.initializeBase(this,[n,t,i]);this._effect=r!==undefined?r:$AA.FadeEffect.FadeIn;this._max=f!==undefined?f:1;this._min=u!==undefined?u:0;this._start=this._min;this._end=this._max;this._layoutCreated=!1;this._forceLayoutInIE=e===undefined||e===null?!0:e;this._currentTarget=null;this._resetOpacities()};$AA.FadeAnimation.prototype={_resetOpacities:function(){this._effect==$AA.FadeEffect.FadeIn?(this._start=this._min,this._end=this._max):(this._start=this._max,this._end=this._min)},_createLayout:function(){var n=this._currentTarget,t;n&&(this._originalWidth=$common.getCurrentStyle(n,"width"),t=$common.getCurrentStyle(n,"height"),this._originalBackColor=$common.getCurrentStyle(n,"backgroundColor"),this._originalWidth&&this._originalWidth!=""&&this._originalWidth!="auto"||t&&t!=""&&t!="auto"||(n.style.width=n.offsetWidth+"px"),this._originalBackColor&&this._originalBackColor!=""&&this._originalBackColor!="transparent"&&this._originalBackColor!="rgba(0, 0, 0, 0)"||(n.style.backgroundColor=$common.getInheritedBackgroundColor(n)),this._layoutCreated=!0)},onStart:function(){$AA.FadeAnimation.callBaseMethod(this,"onStart");this._currentTarget=this.get_target();this.setValue(this._start);this._forceLayoutInIE&&!this._layoutCreated&&Sys.Browser.agent==Sys.Browser.InternetExplorer&&this._createLayout()},getAnimatedValue:function(n){return this.interpolate(this._start,this._end,n)},setValue:function(n){this._currentTarget&&$common.setElementOpacity(this._currentTarget,n)},get_effect:function(){return this._effect},set_effect:function(n){n=this._getEnum(n,$AA.FadeEffect);this._effect!=n&&(this._effect=n,this._resetOpacities(),this.raisePropertyChanged("effect"))},get_minimumOpacity:function(){return this._min},set_minimumOpacity:function(n){n=this._getFloat(n);this._min!=n&&(this._min=n,this._resetOpacities(),this.raisePropertyChanged("minimumOpacity"))},get_maximumOpacity:function(){return this._max},set_maximumOpacity:function(n){n=this._getFloat(n);this._max!=n&&(this._max=n,this._resetOpacities(),this.raisePropertyChanged("maximumOpacity"))},get_forceLayoutInIE:function(){return this._forceLayoutInIE},set_forceLayoutInIE:function(n){n=this._getBoolean(n);this._forceLayoutInIE!=n&&(this._forceLayoutInIE=n,this.raisePropertyChanged("forceLayoutInIE"))},set_startValue:function(n){n=this._getFloat(n);this._start=n}};$AA.FadeAnimation.registerClass("Sys.Extended.UI.Animation.FadeAnimation",$AA.Animation);$AA.registerAnimation("fade",$AA.FadeAnimation);$AA.FadeInAnimation=function(n,t,i,r,u,f){$AA.FadeInAnimation.initializeBase(this,[n,t,i,$AA.FadeEffect.FadeIn,r,u,f])};$AA.FadeInAnimation.prototype={onStart:function(){$AA.FadeInAnimation.callBaseMethod(this,"onStart");this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}};$AA.FadeInAnimation.registerClass("Sys.Extended.UI.Animation.FadeInAnimation",$AA.FadeAnimation);$AA.registerAnimation("fadeIn",$AA.FadeInAnimation);$AA.FadeOutAnimation=function(n,t,i,r,u,f){$AA.FadeOutAnimation.initializeBase(this,[n,t,i,$AA.FadeEffect.FadeOut,r,u,f])};$AA.FadeOutAnimation.prototype={onStart:function(){$AA.FadeOutAnimation.callBaseMethod(this,"onStart");this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}};$AA.FadeOutAnimation.registerClass("Sys.Extended.UI.Animation.FadeOutAnimation",$AA.FadeAnimation);$AA.registerAnimation("fadeOut",$AA.FadeOutAnimation);$AA.PulseAnimation=function(n,t,i,r,u,f,e){$AA.PulseAnimation.initializeBase(this,[n,t,i,null,r!==undefined?r:3]);this._out=new $AA.FadeOutAnimation(n,t,i,u,f,e);this.add(this._out);this._in=new $AA.FadeInAnimation(n,t,i,u,f,e);this.add(this._in)};$AA.PulseAnimation.prototype={get_minimumOpacity:function(){return this._out.get_minimumOpacity()},set_minimumOpacity:function(n){n=this._getFloat(n);this._out.set_minimumOpacity(n);this._in.set_minimumOpacity(n);this.raisePropertyChanged("minimumOpacity")},get_maximumOpacity:function(){return this._out.get_maximumOpacity()},set_maximumOpacity:function(n){n=this._getFloat(n);this._out.set_maximumOpacity(n);this._in.set_maximumOpacity(n);this.raisePropertyChanged("maximumOpacity")},get_forceLayoutInIE:function(){return this._out.get_forceLayoutInIE()},set_forceLayoutInIE:function(n){n=this._getBoolean(n);this._out.set_forceLayoutInIE(n);this._in.set_forceLayoutInIE(n);this.raisePropertyChanged("forceLayoutInIE")},set_duration:function(n){n=this._getFloat(n);$AA.PulseAnimation.callBaseMethod(this,"set_duration",[n]);this._in.set_duration(n);this._out.set_duration(n)},set_fps:function(n){n=this._getInteger(n);$AA.PulseAnimation.callBaseMethod(this,"set_fps",[n]);this._in.set_fps(n);this._out.set_fps(n)}};$AA.PulseAnimation.registerClass("Sys.Extended.UI.Animation.PulseAnimation",$AA.SequenceAnimation);$AA.registerAnimation("pulse",$AA.PulseAnimation);$AA.PropertyAnimation=function(n,t,i,r,u){$AA.PropertyAnimation.initializeBase(this,[n,t,i]);this._property=r;this._propertyKey=u;this._currentTarget=null};$AA.PropertyAnimation.prototype={onStart:function(){$AA.PropertyAnimation.callBaseMethod(this,"onStart");this._currentTarget=this.get_target()},setValue:function(n){var t=this._currentTarget;t&&this._property&&this._property.length>0&&(this._propertyKey&&this._propertyKey.length>0&&t[this._property]?t[this._property][this._propertyKey]=n:t[this._property]=n)},getValue:function(){var t=this.get_target(),n;return t&&this._property&&this._property.length>0&&(n=t[this._property],n)?this._propertyKey&&this._propertyKey.length>0?n[this._propertyKey]:n:null},get_property:function(){return this._property},set_property:function(n){this._property!=n&&(this._property=n,this.raisePropertyChanged("property"))},get_propertyKey:function(){return this._propertyKey},set_propertyKey:function(n){this._propertyKey!=n&&(this._propertyKey=n,this.raisePropertyChanged("propertyKey"))}};$AA.PropertyAnimation.registerClass("Sys.Extended.UI.Animation.PropertyAnimation",$AA.Animation);$AA.registerAnimation("property",$AA.PropertyAnimation);$AA.DiscreteAnimation=function(n,t,i,r,u,f){$AA.DiscreteAnimation.initializeBase(this,[n,t,i,r,u]);this._values=f&&f.length?f:[]};$AA.DiscreteAnimation.prototype={getAnimatedValue:function(n){var t=Math.floor(this.interpolate(0,this._values.length-1,n));return this._values[t]},get_values:function(){return this._values},set_values:function(n){this._values!=n&&(this._values=n,this.raisePropertyChanged("values"))}};$AA.DiscreteAnimation.registerClass("Sys.Extended.UI.Animation.DiscreteAnimation",$AA.PropertyAnimation);$AA.registerAnimation("discrete",$AA.DiscreteAnimation);$AA.InterpolatedAnimation=function(n,t,i,r,u,f,e){$AA.InterpolatedAnimation.initializeBase(this,[n,t,i,r!==undefined?r:"style",u]);this._startValue=f;this._endValue=e};$AA.InterpolatedAnimation.prototype={get_startValue:function(){return this._startValue},set_startValue:function(n){n=this._getFloat(n);this._startValue!=n&&(this._startValue=n,this.raisePropertyChanged("startValue"))},get_endValue:function(){return this._endValue},set_endValue:function(n){n=this._getFloat(n);this._endValue!=n&&(this._endValue=n,this.raisePropertyChanged("endValue"))}};$AA.InterpolatedAnimation.registerClass("Sys.Extended.UI.Animation.InterpolatedAnimation",$AA.PropertyAnimation);$AA.registerAnimation("interpolated",$AA.InterpolatedAnimation);$AA.ColorAnimation=function(n,t,i,r,u,f,e){$AA.ColorAnimation.initializeBase(this,[n,t,i,r,u,f,e]);this._start=null;this._end=null;this._interpolateRed=!1;this._interpolateGreen=!1;this._interpolateBlue=!1};$AA.ColorAnimation.prototype={onStart:function(){$AA.ColorAnimation.callBaseMethod(this,"onStart");this._start=$AA.ColorAnimation.getRGB(this.get_startValue());this._end=$AA.ColorAnimation.getRGB(this.get_endValue());this._interpolateRed=this._start.Red!=this._end.Red;this._interpolateGreen=this._start.Green!=this._end.Green;this._interpolateBlue=this._start.Blue!=this._end.Blue},getAnimatedValue:function(n){var t=this._start.Red,i=this._start.Green,r=this._start.Blue;return this._interpolateRed&&(t=Math.round(this.interpolate(t,this._end.Red,n))),this._interpolateGreen&&(i=Math.round(this.interpolate(i,this._end.Green,n))),this._interpolateBlue&&(r=Math.round(this.interpolate(r,this._end.Blue,n))),$AA.ColorAnimation.toColor(t,i,r)},set_startValue:function(n){this._startValue!=n&&(this._startValue=n,this.raisePropertyChanged("startValue"))},set_endValue:function(n){this._endValue!=n&&(this._endValue=n,this.raisePropertyChanged("endValue"))}};$AA.ColorAnimation.getRGB=function(n){if(!n||n.length!=7)throw String.format(Sys.Extended.UI.Resources.Animation_InvalidColor,n);return{Red:parseInt(n.substr(1,2),16),Green:parseInt(n.substr(3,2),16),Blue:parseInt(n.substr(5,2),16)}};$AA.ColorAnimation.toColor=function(n,t,i){var r=n.toString(16),u=t.toString(16),f=i.toString(16);return r.length==1&&(r="0"+r),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+r+u+f};$AA.ColorAnimation.registerClass("Sys.Extended.UI.Animation.ColorAnimation",$AA.InterpolatedAnimation);$AA.registerAnimation("color",$AA.ColorAnimation);$AA.LengthAnimation=function(n,t,i,r,u,f,e,o){$AA.LengthAnimation.initializeBase(this,[n,t,i,r,u,f,e]);this._unit=o!=null?o:"px"};$AA.LengthAnimation.prototype={getAnimatedValue:function(n){var t=this.interpolate(this.get_startValue(),this.get_endValue(),n);return Math.round(t)+this._unit},get_unit:function(){return this._unit},set_unit:function(n){this._unit!=n&&(this._unit=n,this.raisePropertyChanged("unit"))}};$AA.LengthAnimation.registerClass("Sys.Extended.UI.Animation.LengthAnimation",$AA.InterpolatedAnimation);$AA.registerAnimation("length",$AA.LengthAnimation);$AA.MoveAnimation=function(n,t,i,r,u,f,e){$AA.MoveAnimation.initializeBase(this,[n,t,i,null]);this._horizontal=r?r:0;this._vertical=u?u:0;this._relative=f===undefined?!0:f;this._horizontalAnimation=new $AA.LengthAnimation(n,t,i,"style","left",null,null,e);this._verticalAnimation=new $AA.LengthAnimation(n,t,i,"style","top",null,null,e);this.add(this._verticalAnimation);this.add(this._horizontalAnimation)};$AA.MoveAnimation.prototype={onStart:function(){$AA.MoveAnimation.callBaseMethod(this,"onStart");var n=this.get_target();this._horizontalAnimation.set_startValue(n.offsetLeft);this._horizontalAnimation.set_endValue(this._relative?n.offsetLeft+this._horizontal:this._horizontal);this._verticalAnimation.set_startValue(n.offsetTop);this._verticalAnimation.set_endValue(this._relative?n.offsetTop+this._vertical:this._vertical)},get_horizontal:function(){return this._horizontal},set_horizontal:function(n){n=this._getFloat(n);this._horizontal!=n&&(this._horizontal=n,this.raisePropertyChanged("horizontal"))},get_vertical:function(){return this._vertical},set_vertical:function(n){n=this._getFloat(n);this._vertical!=n&&(this._vertical=n,this.raisePropertyChanged("vertical"))},get_relative:function(){return this._relative},set_relative:function(n){n=this._getBoolean(n);this._relative!=n&&(this._relative=n,this.raisePropertyChanged("relative"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(n){var t=this._horizontalAnimation.get_unit();t!=n&&(this._horizontalAnimation.set_unit(n),this._verticalAnimation.set_unit(n),this.raisePropertyChanged("unit"))}};$AA.MoveAnimation.registerClass("Sys.Extended.UI.Animation.MoveAnimation",$AA.ParallelAnimation);$AA.registerAnimation("move",$AA.MoveAnimation);$AA.ResizeAnimation=function(n,t,i,r,u,f){$AA.ResizeAnimation.initializeBase(this,[n,t,i,null]);this._width=r;this._height=u;this._horizontalAnimation=new $AA.LengthAnimation(n,t,i,"style","width",null,null,f);this._verticalAnimation=new $AA.LengthAnimation(n,t,i,"style","height",null,null,f);this.add(this._horizontalAnimation);this.add(this._verticalAnimation)};$AA.ResizeAnimation.prototype={onStart:function(){$AA.ResizeAnimation.callBaseMethod(this,"onStart");var n=this.get_target();this._horizontalAnimation.set_startValue(n.offsetWidth);this._verticalAnimation.set_startValue(n.offsetHeight);this._horizontalAnimation.set_endValue(this._width!==null&&this._width!==undefined?this._width:n.offsetWidth);this._verticalAnimation.set_endValue(this._height!==null&&this._height!==undefined?this._height:n.offsetHeight)},get_width:function(){return this._width},set_width:function(n){n=this._getFloat(n);this._width!=n&&(this._width=n,this.raisePropertyChanged("width"))},get_height:function(){return this._height},set_height:function(n){n=this._getFloat(n);this._height!=n&&(this._height=n,this.raisePropertyChanged("height"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(n){var t=this._horizontalAnimation.get_unit();t!=n&&(this._horizontalAnimation.set_unit(n),this._verticalAnimation.set_unit(n),this.raisePropertyChanged("unit"))}};$AA.ResizeAnimation.registerClass("Sys.Extended.UI.Animation.ResizeAnimation",$AA.ParallelAnimation);$AA.registerAnimation("resize",$AA.ResizeAnimation);$AA.ScaleAnimation=function(n,t,i,r,u,f,e,o){$AA.ScaleAnimation.initializeBase(this,[n,t,i]);this._scaleFactor=r!==undefined?r:1;this._unit=u!==undefined?u:"px";this._center=f;this._scaleFont=e;this._fontUnit=o!==undefined?o:"pt";this._element=null;this._initialHeight=null;this._initialWidth=null;this._initialTop=null;this._initialLeft=null;this._initialFontSize=null};$AA.ScaleAnimation.prototype={getAnimatedValue:function(n){return this.interpolate(1,this._scaleFactor,n)},onStart:function(){$AA.ScaleAnimation.callBaseMethod(this,"onStart");this._element=this.get_target();this._element&&(this._initialHeight=this._element.offsetHeight,this._initialWidth=this._element.offsetWidth,this._center&&(this._initialTop=this._element.offsetTop,this._initialLeft=this._element.offsetLeft),this._scaleFont&&(this._initialFontSize=parseFloat($common.getCurrentStyle(this._element,"fontSize"))))},setValue:function(n){var i,r,t;this._element&&(i=Math.round(this._initialWidth*n),r=Math.round(this._initialHeight*n),this._element.style.width=i+this._unit,this._element.style.height=r+this._unit,this._center&&(this._element.style.top=this._initialTop+Math.round((this._initialHeight-r)/2)+this._unit,this._element.style.left=this._initialLeft+Math.round((this._initialWidth-i)/2)+this._unit),this._scaleFont&&(t=this._initialFontSize*n,(this._fontUnit=="px"||this._fontUnit=="pt")&&(t=Math.round(t)),this._element.style.fontSize=t+this._fontUnit))},onEnd:function(){this._element=null;this._initialHeight=null;this._initialWidth=null;this._initialTop=null;this._initialLeft=null;this._initialFontSize=null;$AA.ScaleAnimation.callBaseMethod(this,"onEnd")},get_scaleFactor:function(){return this._scaleFactor},set_scaleFactor:function(n){n=this._getFloat(n);this._scaleFactor!=n&&(this._scaleFactor=n,this.raisePropertyChanged("scaleFactor"))},get_unit:function(){return this._unit},set_unit:function(n){this._unit!=n&&(this._unit=n,this.raisePropertyChanged("unit"))},get_center:function(){return this._center},set_center:function(n){n=this._getBoolean(n);this._center!=n&&(this._center=n,this.raisePropertyChanged("center"))},get_scaleFont:function(){return this._scaleFont},set_scaleFont:function(n){n=this._getBoolean(n);this._scaleFont!=n&&(this._scaleFont=n,this.raisePropertyChanged("scaleFont"))},get_fontUnit:function(){return this._fontUnit},set_fontUnit:function(n){this._fontUnit!=n&&(this._fontUnit=n,this.raisePropertyChanged("fontUnit"))}};$AA.ScaleAnimation.registerClass("Sys.Extended.UI.Animation.ScaleAnimation",$AA.Animation);$AA.registerAnimation("scale",$AA.ScaleAnimation);$AA.Action=function(n,t,i){$AA.Action.initializeBase(this,[n,t,i]);t===undefined&&this.set_duration(0)};$AA.Action.prototype={onEnd:function(){this.doAction();$AA.Action.callBaseMethod(this,"onEnd")},doAction:function(){throw Error.notImplemented();},getAnimatedValue:function(){},setValue:function(){}};$AA.Action.registerClass("Sys.Extended.UI.Animation.Action",$AA.Animation);$AA.registerAnimation("action",$AA.Action);$AA.EnableAction=function(n,t,i,r){$AA.EnableAction.initializeBase(this,[n,t,i]);this._enabled=r!==undefined?r:!0};$AA.EnableAction.prototype={doAction:function(){var n=this.get_target();n&&(n.disabled=!this._enabled)},get_enabled:function(){return this._enabled},set_enabled:function(n){n=this._getBoolean(n);this._enabled!=n&&(this._enabled=n,this.raisePropertyChanged("enabled"))}};$AA.EnableAction.registerClass("Sys.Extended.UI.Animation.EnableAction",$AA.Action);$AA.registerAnimation("enableAction",$AA.EnableAction);$AA.HideAction=function(n,t,i,r){$AA.HideAction.initializeBase(this,[n,t,i]);this._visible=r};$AA.HideAction.prototype={doAction:function(){var n=this.get_target();n&&$common.setVisible(n,this._visible)},get_visible:function(){return this._visible},set_visible:function(n){this._visible!=n&&(this._visible=n,this.raisePropertyChanged("visible"))}};$AA.HideAction.registerClass("Sys.Extended.UI.Animation.HideAction",$AA.Action);$AA.registerAnimation("hideAction",$AA.HideAction);$AA.StyleAction=function(n,t,i,r,u){$AA.StyleAction.initializeBase(this,[n,t,i]);this._attribute=r;this._value=u};$AA.StyleAction.prototype={doAction:function(){var n=this.get_target();n&&(n.style[this._attribute]=this._value)},get_attribute:function(){return this._attribute},set_attribute:function(n){this._attribute!=n&&(this._attribute=n,this.raisePropertyChanged("attribute"))},get_value:function(){return this._value},set_value:function(n){this._value!=n&&(this._value=n,this.raisePropertyChanged("value"))}};$AA.StyleAction.registerClass("Sys.Extended.UI.Animation.StyleAction",$AA.Action);$AA.registerAnimation("styleAction",$AA.StyleAction);$AA.OpacityAction=function(n,t,i,r){$AA.OpacityAction.initializeBase(this,[n,t,i]);this._opacity=r};$AA.OpacityAction.prototype={doAction:function(){var n=this.get_target();n&&$common.setElementOpacity(n,this._opacity)},get_opacity:function(){return this._opacity},set_opacity:function(n){n=this._getFloat(n);this._opacity!=n&&(this._opacity=n,this.raisePropertyChanged("opacity"))}};$AA.OpacityAction.registerClass("Sys.Extended.UI.Animation.OpacityAction",$AA.Action);$AA.registerAnimation("opacityAction",$AA.OpacityAction);$AA.ScriptAction=function(n,t,i,r){$AA.ScriptAction.initializeBase(this,[n,t,i]);this._script=r};$AA.ScriptAction.prototype={doAction:function(){try{eval(this._script)}catch(ex){}},get_script:function(){return this._script},set_script:function(n){this._script!=n&&(this._script=n,this.raisePropertyChanged("script"))}};$AA.ScriptAction.registerClass("Sys.Extended.UI.Animation.ScriptAction",$AA.Action);$AA.registerAnimation("scriptAction",$AA.ScriptAction);var $AA; \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI.Animation"),$AA=Sys.Extended.UI.Animation,$AA.registerAnimation=function(t,i){if(!i||!(i===$AA.Animation||i.inheritsFrom&&i.inheritsFrom($AA.Animation)))throw Error.argumentType("type",i,$AA.Animation,Sys.Extended.UI.Resources.Animation_InvalidBaseType);$AA.__animations||($AA.__animations={}),$AA.__animations[t.toLowerCase()]=i,i.play=function(){var t=new i;i.apply(t,arguments),t.initialize();var e=Function.createDelegate(t,function(){t.remove_ended(e),e=null,t.dispose()});t.add_ended(e),t.play()}},$AA.buildAnimation=function(t,i){if(!t||""===t)return null;var e;if(t="("+t+")",Sys.Debug.isDebug)e=Sys.Serialization.JavaScriptSerializer.deserialize(t);else try{e=Sys.Serialization.JavaScriptSerializer.deserialize(t)}catch(t){}return $AA.createAnimation(e,i)},$AA.createAnimation=function(t,i){if(!t||!t.AnimationName)throw Error.argument("obj",Sys.Extended.UI.Resources.Animation_MissingAnimationName);var e=$AA.__animations[t.AnimationName.toLowerCase()];if(!e)throw Error.argument("type",String.format(Sys.Extended.UI.Resources.Animation_UknownAnimationName,t.AnimationName));var n=new e;if(i&&n.set_target(i),t.AnimationChildren&&t.AnimationChildren.length){if(!$AA.ParentAnimation.isInstanceOfType(n))throw Error.argument("obj",String.format(Sys.Extended.UI.Resources.Animation_ChildrenNotAllowed,e.getName()));for(var a=0;a100&&(t=100),this._percentComplete=t,this.raisePropertyChanged("percentComplete"),i&&this.onStep(t),100===t&&this.stop(!1)},setOwner:function(t){this._owner=t},add_started:function(t){this.get_events().addHandler("started",t)},remove_started:function(t){this.get_events().removeHandler("started",t)},raise_started:function(){var t=this.get_events().getHandler("started");t&&t(this,Sys.EventArgs.Empty)},raiseStarted:function(){Sys.Extended.Deprecated("raiseStarted()","raise_started()"),this.raise_started()},add_ended:function(t){this.get_events().addHandler("ended",t)},remove_ended:function(t){this.get_events().removeHandler("ended",t)},raise_ended:function(){var t=this.get_events().getHandler("ended");t&&t(this,Sys.EventArgs.Empty)},raiseEnded:function(){Sys.Extended.Deprecated("raiseEnded()","raise_ended()"),this.raise_ended()},add_step:function(t){this.get_events().addHandler("step",t)},remove_step:function(t){this.get_events().removeHandler("step",t)},raise_step:function(){var t=this.get_events().getHandler("step");t&&t(this,Sys.EventArgs.Empty)},raiseStep:function(){Sys.Extended.Deprecated("raiseStep()","raise_step()"),this.raise_ended()},get_target:function(){return!this._target&&this._parentAnimation?this._parentAnimation.get_target():this._target},set_target:function(t){this._target!=t&&(this._target=t,this.raisePropertyChanged("target"))},setAnimationTarget:function(t){var i=null,e=$get(t);if(e)i=e;else{var n=$find(t);n&&(e=n.get_element(),e&&(i=e))}if(!i)throw Error.argument("id",String.format(Sys.Extended.UI.Resources.Animation_TargetNotFound,t));this.set_target(i)},set_animationTarget:function(t){Sys.Extended.Deprecated("setAnimationTarget(id)","set_animationTarget(id)"),this.setAnimationTarget(t)},get_duration:function(){return this._duration},set_duration:function(t){t=this._getFloat(t),this._duration!=t&&(this._duration=t,this.raisePropertyChanged("duration"))},get_fps:function(){return this._fps},set_fps:function(t){t=this._getInteger(t),this.fps!=t&&(this._fps=t,this.raisePropertyChanged("fps"))},get_isActive:function(){return null!==this._timer},get_isPlaying:function(){return null!==this._timer&&this._timer.get_enabled()},get_percentComplete:function(){return this._percentComplete},_getBoolean:function(t){return String.isInstanceOfType(t)?Boolean.parse(t):t},_getInteger:function(t){return String.isInstanceOfType(t)?parseInt(t):t},_getFloat:function(t){return String.isInstanceOfType(t)?parseFloat(t):t},_getEnum:function(t,i){return String.isInstanceOfType(t)&&i&&i.parse?i.parse(t):t}},$AA.Animation.registerClass("Sys.Extended.UI.Animation.Animation",Sys.Component),$AA.registerAnimation("animation",$AA.Animation),$AA.ParentAnimation=function(t,i,e,n){if($AA.ParentAnimation.initializeBase(this,[t,i,e]),this._animations=[],n&&n.length)for(var a=0;a=0;t--)this._animations[t].dispose(),this._animations[t]=null;Array.clear(this._animations),this._animations=[],this.raisePropertyChanged("animations")}}},$AA.ParentAnimation.registerClass("Sys.Extended.UI.Animation.ParentAnimation",$AA.Animation),$AA.registerAnimation("parent",$AA.ParentAnimation),$AA.ParallelAnimation=function(t,i,e,n){$AA.ParallelAnimation.initializeBase(this,[t,i,e,n])},$AA.ParallelAnimation.prototype={add:function(t){$AA.ParallelAnimation.callBaseMethod(this,"add",[t]),t.setOwner(this)},onStart:function(){$AA.ParallelAnimation.callBaseMethod(this,"onStart");for(var t=this.get_animations(),i=0;i=1||this._iterations<=0){this._remainingIterations--,this._index=0;var n=t[0];n.add_ended(this._handler),n.play()}else this.stop()},onStep:function(t){throw Error.invalidOperation(Sys.Extended.UI.Resources.Animation_CannotNestSequence)},onEnd:function(){this._remainingIterations=0,$AA.SequenceAnimation.callBaseMethod(this,"onEnd")},get_isActive:function(){return!0},get_isPlaying:function(){return this._playing&&!this._paused},get_iterations:function(){return this._iterations},set_iterations:function(t){t=this._getInteger(t),this._iterations!=t&&(this._iterations=t,this.raisePropertyChanged("iterations"))},get_isInfinite:function(){return this._iterations<=0}},$AA.SequenceAnimation.registerClass("Sys.Extended.UI.Animation.SequenceAnimation",$AA.ParentAnimation),$AA.registerAnimation("sequence",$AA.SequenceAnimation),$AA.SelectionAnimation=function(t,i,e,n){$AA.SelectionAnimation.initializeBase(this,[t,i,e,n]),this._selectedIndex=-1,this._selected=null},$AA.SelectionAnimation.prototype={getSelectedIndex:function(){throw Error.notImplemented()},onStart:function(){$AA.SelectionAnimation.callBaseMethod(this,"onStart");var t=this.get_animations();this._selectedIndex=this.getSelectedIndex(),this._selectedIndex>=0&&this._selectedIndex0)try{selected=eval(this._conditionScript)?0:1}catch(t){}return selected},get_conditionScript:function(){return this._conditionScript},set_conditionScript:function(t){this._conditionScript!=t&&(this._conditionScript=t,this.raisePropertyChanged("conditionScript"))}},$AA.ConditionAnimation.registerClass("Sys.Extended.UI.Animation.ConditionAnimation",$AA.SelectionAnimation),$AA.registerAnimation("condition",$AA.ConditionAnimation),$AA.CaseAnimation=function(t,i,e,n,a){$AA.CaseAnimation.initializeBase(this,[t,i,e,n]),this._selectScript=a},$AA.CaseAnimation.prototype={getSelectedIndex:function(){var selected=-1;if(this._selectScript&&this._selectScript.length>0)try{var result=eval(this._selectScript);void 0!==result&&(selected=result)}catch(t){}return selected},get_selectScript:function(){return this._selectScript},set_selectScript:function(t){this._selectScript!=t&&(this._selectScript=t,this.raisePropertyChanged("selectScript"))}},$AA.CaseAnimation.registerClass("Sys.Extended.UI.Animation.CaseAnimation",$AA.SelectionAnimation),$AA.registerAnimation("case",$AA.CaseAnimation),$AA.FadeEffect=function(){throw Error.invalidOperation()},$AA.FadeEffect.prototype={FadeIn:0,FadeOut:1},$AA.FadeEffect.registerEnum("Sys.Extended.UI.Animation.FadeEffect",!1),$AA.FadeAnimation=function(t,i,e,n,a,s,o){$AA.FadeAnimation.initializeBase(this,[t,i,e]),this._effect=void 0!==n?n:$AA.FadeEffect.FadeIn,this._max=void 0!==s?s:1,this._min=void 0!==a?a:0,this._start=this._min,this._end=this._max,this._layoutCreated=!1,this._forceLayoutInIE=void 0===o||null===o||o,this._currentTarget=null,this._resetOpacities()},$AA.FadeAnimation.prototype={_resetOpacities:function(){this._effect==$AA.FadeEffect.FadeIn?(this._start=this._min,this._end=this._max):(this._start=this._max,this._end=this._min)},_createLayout:function(){var t=this._currentTarget;if(t){this._originalWidth=$common.getCurrentStyle(t,"width");var i=$common.getCurrentStyle(t,"height");this._originalBackColor=$common.getCurrentStyle(t,"backgroundColor"),this._originalWidth&&""!=this._originalWidth&&"auto"!=this._originalWidth||i&&""!=i&&"auto"!=i||(t.style.width=t.offsetWidth+"px"),this._originalBackColor&&""!=this._originalBackColor&&"transparent"!=this._originalBackColor&&"rgba(0, 0, 0, 0)"!=this._originalBackColor||(t.style.backgroundColor=$common.getInheritedBackgroundColor(t)),this._layoutCreated=!0}},onStart:function(){$AA.FadeAnimation.callBaseMethod(this,"onStart"),this._currentTarget=this.get_target(),this.setValue(this._start),this._forceLayoutInIE&&!this._layoutCreated&&Sys.Browser.agent==Sys.Browser.InternetExplorer&&this._createLayout()},getAnimatedValue:function(t){return this.interpolate(this._start,this._end,t)},setValue:function(t){this._currentTarget&&$common.setElementOpacity(this._currentTarget,t)},get_effect:function(){return this._effect},set_effect:function(t){t=this._getEnum(t,$AA.FadeEffect),this._effect!=t&&(this._effect=t,this._resetOpacities(),this.raisePropertyChanged("effect"))},get_minimumOpacity:function(){return this._min},set_minimumOpacity:function(t){t=this._getFloat(t),this._min!=t&&(this._min=t,this._resetOpacities(),this.raisePropertyChanged("minimumOpacity"))},get_maximumOpacity:function(){return this._max},set_maximumOpacity:function(t){t=this._getFloat(t),this._max!=t&&(this._max=t,this._resetOpacities(),this.raisePropertyChanged("maximumOpacity"))},get_forceLayoutInIE:function(){return this._forceLayoutInIE},set_forceLayoutInIE:function(t){t=this._getBoolean(t),this._forceLayoutInIE!=t&&(this._forceLayoutInIE=t,this.raisePropertyChanged("forceLayoutInIE"))},setStartValue:function(t){t=this._getFloat(t),this._start=t},set_startValue:function(t){Sys.Extended.Deprecated("setStartValue(value)","set_startValue(value)"),this.setStartValue(t)}},$AA.FadeAnimation.registerClass("Sys.Extended.UI.Animation.FadeAnimation",$AA.Animation),$AA.registerAnimation("fade",$AA.FadeAnimation),$AA.FadeInAnimation=function(t,i,e,n,a,s){$AA.FadeInAnimation.initializeBase(this,[t,i,e,$AA.FadeEffect.FadeIn,n,a,s])},$AA.FadeInAnimation.prototype={onStart:function(){$AA.FadeInAnimation.callBaseMethod(this,"onStart"),this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}},$AA.FadeInAnimation.registerClass("Sys.Extended.UI.Animation.FadeInAnimation",$AA.FadeAnimation),$AA.registerAnimation("fadeIn",$AA.FadeInAnimation),$AA.FadeOutAnimation=function(t,i,e,n,a,s){$AA.FadeOutAnimation.initializeBase(this,[t,i,e,$AA.FadeEffect.FadeOut,n,a,s])},$AA.FadeOutAnimation.prototype={onStart:function(){$AA.FadeOutAnimation.callBaseMethod(this,"onStart"),this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}},$AA.FadeOutAnimation.registerClass("Sys.Extended.UI.Animation.FadeOutAnimation",$AA.FadeAnimation),$AA.registerAnimation("fadeOut",$AA.FadeOutAnimation),$AA.PulseAnimation=function(t,i,e,n,a,s,o){$AA.PulseAnimation.initializeBase(this,[t,i,e,null,void 0!==n?n:3]),this._out=new $AA.FadeOutAnimation(t,i,e,a,s,o),this.add(this._out),this._in=new $AA.FadeInAnimation(t,i,e,a,s,o),this.add(this._in)},$AA.PulseAnimation.prototype={get_minimumOpacity:function(){return this._out.get_minimumOpacity()},set_minimumOpacity:function(t){t=this._getFloat(t),this._out.set_minimumOpacity(t),this._in.set_minimumOpacity(t),this.raisePropertyChanged("minimumOpacity")},get_maximumOpacity:function(){return this._out.get_maximumOpacity()},set_maximumOpacity:function(t){t=this._getFloat(t),this._out.set_maximumOpacity(t),this._in.set_maximumOpacity(t),this.raisePropertyChanged("maximumOpacity")},get_forceLayoutInIE:function(){return this._out.get_forceLayoutInIE()},set_forceLayoutInIE:function(t){t=this._getBoolean(t),this._out.set_forceLayoutInIE(t),this._in.set_forceLayoutInIE(t),this.raisePropertyChanged("forceLayoutInIE")},setDuration:function(t){t=this._getFloat(t),$AA.PulseAnimation.callBaseMethod(this,"set_duration",[t]),this._in.set_duration(t),this._out.set_duration(t)},set_duration:function(t){Sys.Extended.Deprecated("setDuration(value)","set_duration(value)"),this.setDuration(t)},setFps:function(t){t=this._getInteger(t),$AA.PulseAnimation.callBaseMethod(this,"set_fps",[t]),this._in.set_fps(t),this._out.set_fps(t)},set_fps:function(t){Sys.Extended.Deprecated("setFps(value)","set_fps(value)"),this.setFps(t)}},$AA.PulseAnimation.registerClass("Sys.Extended.UI.Animation.PulseAnimation",$AA.SequenceAnimation),$AA.registerAnimation("pulse",$AA.PulseAnimation),$AA.PropertyAnimation=function(t,i,e,n,a){$AA.PropertyAnimation.initializeBase(this,[t,i,e]),this._property=n,this._propertyKey=a,this._currentTarget=null},$AA.PropertyAnimation.prototype={onStart:function(){$AA.PropertyAnimation.callBaseMethod(this,"onStart"),this._currentTarget=this.get_target()},setValue:function(t){var i=this._currentTarget;i&&this._property&&this._property.length>0&&(this._propertyKey&&this._propertyKey.length>0&&i[this._property]?i[this._property][this._propertyKey]=t:i[this._property]=t)},getValue:function(){var t=this.get_target();if(t&&this._property&&this._property.length>0){var i=t[this._property];if(i)return this._propertyKey&&this._propertyKey.length>0?i[this._propertyKey]:i}return null},get_property:function(){return this._property},set_property:function(t){this._property!=t&&(this._property=t,this.raisePropertyChanged("property"))},get_propertyKey:function(){return this._propertyKey},set_propertyKey:function(t){this._propertyKey!=t&&(this._propertyKey=t,this.raisePropertyChanged("propertyKey"))}},$AA.PropertyAnimation.registerClass("Sys.Extended.UI.Animation.PropertyAnimation",$AA.Animation),$AA.registerAnimation("property",$AA.PropertyAnimation),$AA.DiscreteAnimation=function(t,i,e,n,a,s){$AA.DiscreteAnimation.initializeBase(this,[t,i,e,n,a]),this._values=s&&s.length?s:[]},$AA.DiscreteAnimation.prototype={getAnimatedValue:function(t){var i=Math.floor(this.interpolate(0,this._values.length-1,t));return this._values[i]},get_values:function(){return this._values},set_values:function(t){this._values!=t&&(this._values=t,this.raisePropertyChanged("values"))}},$AA.DiscreteAnimation.registerClass("Sys.Extended.UI.Animation.DiscreteAnimation",$AA.PropertyAnimation),$AA.registerAnimation("discrete",$AA.DiscreteAnimation),$AA.InterpolatedAnimation=function(t,i,e,n,a,s,o){$AA.InterpolatedAnimation.initializeBase(this,[t,i,e,void 0!==n?n:"style",a]),this._startValue=s,this._endValue=o},$AA.InterpolatedAnimation.prototype={get_startValue:function(){return this._startValue},set_startValue:function(t){t=this._getFloat(t),this._startValue!=t&&(this._startValue=t,this.raisePropertyChanged("startValue"))},get_endValue:function(){return this._endValue},set_endValue:function(t){t=this._getFloat(t),this._endValue!=t&&(this._endValue=t,this.raisePropertyChanged("endValue"))}},$AA.InterpolatedAnimation.registerClass("Sys.Extended.UI.Animation.InterpolatedAnimation",$AA.PropertyAnimation),$AA.registerAnimation("interpolated",$AA.InterpolatedAnimation),$AA.ColorAnimation=function(t,i,e,n,a,s,o){$AA.ColorAnimation.initializeBase(this,[t,i,e,n,a,s,o]),this._start=null,this._end=null,this._interpolateRed=!1,this._interpolateGreen=!1,this._interpolateBlue=!1},$AA.ColorAnimation.prototype={onStart:function(){$AA.ColorAnimation.callBaseMethod(this,"onStart"),this._start=$AA.ColorAnimation.getRGB(this.get_startValue()),this._end=$AA.ColorAnimation.getRGB(this.get_endValue()),this._interpolateRed=this._start.Red!=this._end.Red,this._interpolateGreen=this._start.Green!=this._end.Green,this._interpolateBlue=this._start.Blue!=this._end.Blue},getAnimatedValue:function(t){var i=this._start.Red,e=this._start.Green,n=this._start.Blue;return this._interpolateRed&&(i=Math.round(this.interpolate(i,this._end.Red,t))),this._interpolateGreen&&(e=Math.round(this.interpolate(e,this._end.Green,t))),this._interpolateBlue&&(n=Math.round(this.interpolate(n,this._end.Blue,t))),$AA.ColorAnimation.toColor(i,e,n)},set_startValue:function(t){this._startValue!=t&&(this._startValue=t,this.raisePropertyChanged("startValue"))},set_endValue:function(t){this._endValue!=t&&(this._endValue=t,this.raisePropertyChanged("endValue"))}},$AA.ColorAnimation.getRGB=function(t){if(!t||7!=t.length)throw String.format(Sys.Extended.UI.Resources.Animation_InvalidColor,t);return{Red:parseInt(t.substr(1,2),16),Green:parseInt(t.substr(3,2),16),Blue:parseInt(t.substr(5,2),16)}},$AA.ColorAnimation.toColor=function(t,i,e){var n=t.toString(16),a=i.toString(16),s=e.toString(16);return 1==n.length&&(n="0"+n),1==a.length&&(a="0"+a),1==s.length&&(s="0"+s),"#"+n+a+s},$AA.ColorAnimation.registerClass("Sys.Extended.UI.Animation.ColorAnimation",$AA.InterpolatedAnimation),$AA.registerAnimation("color",$AA.ColorAnimation),$AA.LengthAnimation=function(t,i,e,n,a,s,o,r){$AA.LengthAnimation.initializeBase(this,[t,i,e,n,a,s,o]),this._unit=null!=r?r:"px"},$AA.LengthAnimation.prototype={getAnimatedValue:function(t){var i=this.interpolate(this.get_startValue(),this.get_endValue(),t);return Math.round(i)+this._unit},get_unit:function(){return this._unit},set_unit:function(t){this._unit!=t&&(this._unit=t,this.raisePropertyChanged("unit"))}},$AA.LengthAnimation.registerClass("Sys.Extended.UI.Animation.LengthAnimation",$AA.InterpolatedAnimation),$AA.registerAnimation("length",$AA.LengthAnimation),$AA.MoveAnimation=function(t,i,e,n,a,s,o){$AA.MoveAnimation.initializeBase(this,[t,i,e,null]),this._horizontal=n?n:0,this._vertical=a?a:0,this._relative=void 0===s||s,this._horizontalAnimation=new $AA.LengthAnimation(t,i,e,"style","left",null,null,o),this._verticalAnimation=new $AA.LengthAnimation(t,i,e,"style","top",null,null,o),this.add(this._verticalAnimation),this.add(this._horizontalAnimation)},$AA.MoveAnimation.prototype={onStart:function(){$AA.MoveAnimation.callBaseMethod(this,"onStart");var t=this.get_target();this._horizontalAnimation.set_startValue(t.offsetLeft),this._horizontalAnimation.set_endValue(this._relative?t.offsetLeft+this._horizontal:this._horizontal),this._verticalAnimation.set_startValue(t.offsetTop),this._verticalAnimation.set_endValue(this._relative?t.offsetTop+this._vertical:this._vertical)},get_horizontal:function(){return this._horizontal},set_horizontal:function(t){t=this._getFloat(t),this._horizontal!=t&&(this._horizontal=t,this.raisePropertyChanged("horizontal"))},get_vertical:function(){return this._vertical},set_vertical:function(t){t=this._getFloat(t),this._vertical!=t&&(this._vertical=t,this.raisePropertyChanged("vertical"))},get_relative:function(){return this._relative},set_relative:function(t){t=this._getBoolean(t),this._relative!=t&&(this._relative=t,this.raisePropertyChanged("relative"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(t){var i=this._horizontalAnimation.get_unit();i!=t&&(this._horizontalAnimation.set_unit(t),this._verticalAnimation.set_unit(t),this.raisePropertyChanged("unit"))}},$AA.MoveAnimation.registerClass("Sys.Extended.UI.Animation.MoveAnimation",$AA.ParallelAnimation),$AA.registerAnimation("move",$AA.MoveAnimation),$AA.ResizeAnimation=function(t,i,e,n,a,s){$AA.ResizeAnimation.initializeBase(this,[t,i,e,null]),this._width=n,this._height=a,this._horizontalAnimation=new $AA.LengthAnimation(t,i,e,"style","width",null,null,s),this._verticalAnimation=new $AA.LengthAnimation(t,i,e,"style","height",null,null,s),this.add(this._horizontalAnimation),this.add(this._verticalAnimation)},$AA.ResizeAnimation.prototype={onStart:function(){$AA.ResizeAnimation.callBaseMethod(this,"onStart");var t=this.get_target();this._horizontalAnimation.set_startValue(t.offsetWidth),this._verticalAnimation.set_startValue(t.offsetHeight),this._horizontalAnimation.set_endValue(null!==this._width&&void 0!==this._width?this._width:t.offsetWidth),this._verticalAnimation.set_endValue(null!==this._height&&void 0!==this._height?this._height:t.offsetHeight)},get_width:function(){return this._width},set_width:function(t){t=this._getFloat(t),this._width!=t&&(this._width=t,this.raisePropertyChanged("width"))},get_height:function(){return this._height},set_height:function(t){t=this._getFloat(t),this._height!=t&&(this._height=t,this.raisePropertyChanged("height"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(t){var i=this._horizontalAnimation.get_unit();i!=t&&(this._horizontalAnimation.set_unit(t),this._verticalAnimation.set_unit(t),this.raisePropertyChanged("unit"))}},$AA.ResizeAnimation.registerClass("Sys.Extended.UI.Animation.ResizeAnimation",$AA.ParallelAnimation),$AA.registerAnimation("resize",$AA.ResizeAnimation),$AA.ScaleAnimation=function(t,i,e,n,a,s,o,r){$AA.ScaleAnimation.initializeBase(this,[t,i,e]),this._scaleFactor=void 0!==n?n:1,this._unit=void 0!==a?a:"px",this._center=s,this._scaleFont=o,this._fontUnit=void 0!==r?r:"pt",this._element=null,this._initialHeight=null,this._initialWidth=null,this._initialTop=null,this._initialLeft=null,this._initialFontSize=null},$AA.ScaleAnimation.prototype={getAnimatedValue:function(t){return this.interpolate(1,this._scaleFactor,t)},onStart:function(){$AA.ScaleAnimation.callBaseMethod(this,"onStart"),this._element=this.get_target(),this._element&&(this._initialHeight=this._element.offsetHeight,this._initialWidth=this._element.offsetWidth,this._center&&(this._initialTop=this._element.offsetTop,this._initialLeft=this._element.offsetLeft),this._scaleFont&&(this._initialFontSize=parseFloat($common.getCurrentStyle(this._element,"fontSize"))))},setValue:function(t){if(this._element){var i=Math.round(this._initialWidth*t),e=Math.round(this._initialHeight*t);if(this._element.style.width=i+this._unit,this._element.style.height=e+this._unit,this._center&&(this._element.style.top=this._initialTop+Math.round((this._initialHeight-e)/2)+this._unit,this._element.style.left=this._initialLeft+Math.round((this._initialWidth-i)/2)+this._unit),this._scaleFont){var n=this._initialFontSize*t;"px"!=this._fontUnit&&"pt"!=this._fontUnit||(n=Math.round(n)),this._element.style.fontSize=n+this._fontUnit}}},onEnd:function(){this._element=null,this._initialHeight=null,this._initialWidth=null,this._initialTop=null,this._initialLeft=null,this._initialFontSize=null,$AA.ScaleAnimation.callBaseMethod(this,"onEnd")},get_scaleFactor:function(){return this._scaleFactor},set_scaleFactor:function(t){t=this._getFloat(t),this._scaleFactor!=t&&(this._scaleFactor=t,this.raisePropertyChanged("scaleFactor"))},get_unit:function(){return this._unit},set_unit:function(t){this._unit!=t&&(this._unit=t,this.raisePropertyChanged("unit"))},get_center:function(){return this._center},set_center:function(t){t=this._getBoolean(t),this._center!=t&&(this._center=t,this.raisePropertyChanged("center"))},get_scaleFont:function(){return this._scaleFont},set_scaleFont:function(t){t=this._getBoolean(t),this._scaleFont!=t&&(this._scaleFont=t,this.raisePropertyChanged("scaleFont"))},get_fontUnit:function(){return this._fontUnit},set_fontUnit:function(t){this._fontUnit!=t&&(this._fontUnit=t,this.raisePropertyChanged("fontUnit"))}},$AA.ScaleAnimation.registerClass("Sys.Extended.UI.Animation.ScaleAnimation",$AA.Animation),$AA.registerAnimation("scale",$AA.ScaleAnimation),$AA.Action=function(t,i,e){$AA.Action.initializeBase(this,[t,i,e]),void 0===i&&this.set_duration(0)},$AA.Action.prototype={onEnd:function(){this.doAction(),$AA.Action.callBaseMethod(this,"onEnd")},doAction:function(){throw Error.notImplemented()},getAnimatedValue:function(){},setValue:function(){}},$AA.Action.registerClass("Sys.Extended.UI.Animation.Action",$AA.Animation),$AA.registerAnimation("action",$AA.Action),$AA.EnableAction=function(t,i,e,n){$AA.EnableAction.initializeBase(this,[t,i,e]),this._enabled=void 0===n||n},$AA.EnableAction.prototype={doAction:function(){var t=this.get_target();t&&(t.disabled=!this._enabled)},get_enabled:function(){return this._enabled},set_enabled:function(t){t=this._getBoolean(t),this._enabled!=t&&(this._enabled=t,this.raisePropertyChanged("enabled"))}},$AA.EnableAction.registerClass("Sys.Extended.UI.Animation.EnableAction",$AA.Action),$AA.registerAnimation("enableAction",$AA.EnableAction),$AA.HideAction=function(t,i,e,n){$AA.HideAction.initializeBase(this,[t,i,e]),this._visible=n},$AA.HideAction.prototype={doAction:function(){var t=this.get_target();t&&$common.setVisible(t,this._visible)},get_visible:function(){return this._visible},set_visible:function(t){this._visible!=t&&(this._visible=t,this.raisePropertyChanged("visible"))}},$AA.HideAction.registerClass("Sys.Extended.UI.Animation.HideAction",$AA.Action),$AA.registerAnimation("hideAction",$AA.HideAction),$AA.StyleAction=function(t,i,e,n,a){$AA.StyleAction.initializeBase(this,[t,i,e]),this._attribute=n,this._value=a},$AA.StyleAction.prototype={doAction:function(){var t=this.get_target();t&&(t.style[this._attribute]=this._value)},get_attribute:function(){return this._attribute},set_attribute:function(t){this._attribute!=t&&(this._attribute=t,this.raisePropertyChanged("attribute"))},get_value:function(){return this._value},set_value:function(t){this._value!=t&&(this._value=t,this.raisePropertyChanged("value"))}},$AA.StyleAction.registerClass("Sys.Extended.UI.Animation.StyleAction",$AA.Action),$AA.registerAnimation("styleAction",$AA.StyleAction),$AA.OpacityAction=function(t,i,e,n){$AA.OpacityAction.initializeBase(this,[t,i,e]),this._opacity=n},$AA.OpacityAction.prototype={doAction:function(){var t=this.get_target(); +t&&$common.setElementOpacity(t,this._opacity)},get_opacity:function(){return this._opacity},set_opacity:function(t){t=this._getFloat(t),this._opacity!=t&&(this._opacity=t,this.raisePropertyChanged("opacity"))}},$AA.OpacityAction.registerClass("Sys.Extended.UI.Animation.OpacityAction",$AA.Action),$AA.registerAnimation("opacityAction",$AA.OpacityAction),$AA.ScriptAction=function(t,i,e,n){$AA.ScriptAction.initializeBase(this,[t,i,e]),this._script=n},$AA.ScriptAction.prototype={doAction:function(){try{eval(this._script)}catch(t){}},get_script:function(){return this._script},set_script:function(t){this._script!=t&&(this._script=t,this.raisePropertyChanged("script"))}},$AA.ScriptAction.registerClass("Sys.Extended.UI.Animation.ScriptAction",$AA.Action),$AA.registerAnimation("scriptAction",$AA.ScriptAction);var $AA; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/AreaChart.js b/Scripts/AjaxControlToolkit/Release/AreaChart.js index b3dad6283..84b58bf79 100644 --- a/Scripts/AjaxControlToolkit/Release/AreaChart.js +++ b/Scripts/AjaxControlToolkit/Release/AreaChart.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.AreaChart=function(n){Sys.Extended.UI.AreaChart.initializeBase(this,[n]);var t=this.get_id();t=t.replace("_ctl00","");this._parentDiv=document.getElementById(t+"__ParentDiv");this._displayValues=!0;this._chartWidth="300";this._chartHeight="300";this._chartTitle="";this._categoriesAxis="";this._series=null;this._chartType=Sys.Extended.UI.AreaChartType.Basic;this._theme="AreaChart";this._valueAxisLines=9;this._chartTitleColor="";this._valueAxisLineColor="";this._categoryAxisLineColor="";this._baseLineColor="";this.yMax=0;this.yMin=0;this.roundedTickRange=0;this.startX=0;this.startY=0;this.endX=0;this.endY=0;this.xInterval=0;this.yInterval=0;this.arrXAxis;this.arrXAxisLength=0;this.charLength=3.5;this.arrCombinedData=null};Sys.Extended.UI.AreaChart.prototype={initialize:function(){if(Sys.Extended.UI.AreaChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Current version of browser does not support SVG.";this._valueAxisLines==0&&(this._valueAxisLines=9);this.generateAreaChart()},dispose:function(){Sys.Extended.UI.AreaChart.callBaseMethod(this,"dispose")},generateAreaChart:function(){this.arrXAxis=this._categoriesAxis.split(",");this.arrXAxisLength=this.arrXAxis.length;this.calculateMinMaxValues();this.calculateInterval();this.calculateValueAxis();var n=this.initializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLines();n=n+this.drawBackgroundVerticalLines();n=n+this.drawBaseLines();n=n+this.drawLegendArea();n=n+this.drawAxisValues();this._parentDiv.innerHTML=n;this.drawAreas()},calculateInterval:function(){this.startX=this._chartWidth/10+.5;this.endX=parseInt(this._chartWidth)-4.5;this.startY=this.yMin>=0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*24/100)+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*12/100)/2+.5;this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValues:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.AreaChartType.Basic)for(n=0;nthis.yMax&&(this.yMax=u),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t);this.startX=this.startX+(this.roundedTickRange*10*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLines:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._categoryAxisLineColor);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._categoryAxisLineColor);return t},drawBackgroundVerticalLines:function(){var t="",n;for(this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength),n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLines:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),t=0;t<\/path>',parseInt(this._chartWidth)-5-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0)for(n=n+String.format('<\/path>',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);return n},drawLegendArea:function(){for(var r,l,t="",o=parseInt(this._chartHeight)*82/100+5,i=7.5,u=5,c=0,n=0;nparseInt(this._chartWidth)/2&&(r=r/2,l=!0);t=t+"";t=t+String.format('<\/path>',parseInt(this._chartWidth)/2-r/2,o,Math.round(parseInt(this._chartWidth)/2+c*5)+Math.round((i+u*2)*this._series.length),Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)*40/100-r/2+i+u,s=e,f=parseInt(this._chartWidth)*40/100-r/2,h=f;for(n=0;n<\/path>',f,o+7.5,f+i,o+15,n+1,this._series[n].AreaColor),t=t+String.format('{2}<\/text>',e,o+15,this._series[n].Name),this._series[n].Name.length>10?(h=f+this._series[n].Name.length*5+i+u*2,s=e+this._series[n].Name.length*5+i+u*2):(h=h+this._series[n].Name.length*6+i+u*2,s=s+this._series[n].Name.length*6+i+u*2);return t+"<\/g>"},drawAxisValues:function(){for(var t="",i=0,n=0;n{2}<\/text>',Math.round(this.startX+this.xInterval*10*n/10+this.xInterval/2-i),this.startY+Math.round(this.yInterval*65/100),this.arrXAxis[n]);for(n=0;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-15,this.startY-this.yInterval*10*n/10+3.5,this.roundedTickRange*10*n/10);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('-{2}<\/text>',this.startX-i-19,this.startY+this.yInterval*10*n/10,this.roundedTickRange*10*n/10);return t},initializeSVG:function(){var n=String.format('',this._theme);return n=n+String.format('',this._chartWidth,this._chartHeight),n=n+"",n=n+'',n=n+'<\/stop>',n=n+'<\/stop>',n=n+'<\/stop><\/linearGradient>',n=n+"<\/defs>",n=n+String.format('<\/path>',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('<\/path>',this._chartWidth,this._chartHeight),n+String.format('<\/path>',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawAreas:function(){for(var n,f,h,e=this.get_displayValues(),r="",t=[],o=[],s=[],u=[],i=0;i0?r+String.format('{2}<\/text>',this.startX+this.xInterval*i+this.xInterval/2-t[n].toString().length*this.charLength,this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))-7.5,e?t[n]:""):r+String.format('{2}<\/text>',this.startX+this.xInterval*i+this.xInterval/2-t[n].toString().length*this.charLength,this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))+7.5,e?t[n]:"");o[n]=this.startX+this.xInterval*i+this.xInterval/2;s[n]=this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))}this._parentDiv.innerHTML=this._parentDiv.innerHTML+r;h=this._parentDiv.innerHTML;this._drawArea(u,0)},_drawArea:function(n,t){var i=this;i._parentDiv.innerHTML=i._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/path><\/g><\/svg>',n[t],t+1,i._series[t].AreaColor);t++;t{2}',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,5*parseInt(this._chartHeight)/100,this._chartTitle,this._chartTitleColor),t+=this.drawBackgroundHorizontalLines(),t+=this.drawBackgroundVerticalLines(),t+=this.drawBaseLines(),t+=this.drawLegendArea(),t+=this.drawAxisValues(),this._parentDiv.innerHTML=t,this.drawAreas()},calculateInterval:function(){this.startX=10*this._chartWidth/100+.5,this.endX=parseInt(this._chartWidth)-4.5,this.yMin>=0?this.startY=Math.round(parseInt(this._chartHeight)-24*parseInt(this._chartHeight)/100)+.5:this.startY=Math.round(parseInt(this._chartHeight)-12*parseInt(this._chartHeight)/100)/2+.5,this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValues:function(){var t,i,e;if(this._chartType==Sys.Extended.UI.AreaChartType.Basic)for(var s=0;sthis.yMax&&(this.yMax=t),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin),i=t/(this._valueAxisLines-1),i<1?this.roundedTickRange=i.toFixed(1):(e=Math.ceil(Math.log(i)/Math.log(10)-1),s=Math.pow(10,e),this.roundedTickRange=Math.ceil(i/s)*s),this.startX=this.startX+(10*this.roundedTickRange*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLines:function(){for(var t="",i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY-this.yInterval*i,this._categoryAxisLineColor);if(this.yMin<0)for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY+this.yInterval*i,this._categoryAxisLineColor);return t},drawBackgroundVerticalLines:function(){var t="";this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength);for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLines:function(){var t="";t+=String.format('',this.startX,this.startY,this.endX,this._baseLineColor),t+=String.format('',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.startY+4,this._baseLineColor);for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY,this.startY+4,this._baseLineColor);for(var i=0;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY-this.yInterval*i,this._baseLineColor);if(this.yMin<0){t+=String.format('',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor);for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY+this.yInterval*i,this._baseLineColor)}return t},drawLegendArea:function(){for(var t="",i=82*parseInt(this._chartHeight)/100+5,e=7.5,s=7.5,r=5,a=0,h=0;hparseInt(this._chartWidth)/2&&(n/=2,o=!0),t+="",t+=String.format('',50*parseInt(this._chartWidth)/100-n/2,i,Math.round(50*parseInt(this._chartWidth)/100+5*a)+Math.round((e+2*r)*this._series.length),Math.round(97.5*parseInt(this._chartHeight)/100));for(var l=40*parseInt(this._chartWidth)/100-n/2+e+r,d=l,c=40*parseInt(this._chartWidth)/100-n/2,_=c,h=0;h',c,i+s,c+e,i+15,h+1,this._series[h].AreaColor),t+=String.format('{2}',l,i+15,this._series[h].Name),this._series[h].Name.length>10?(_=c+5*this._series[h].Name.length+e+2*r,d=l+5*this._series[h].Name.length+e+2*r):(_=_+6*this._series[h].Name.length+e+2*r,d=d+6*this._series[h].Name.length+e+2*r);return t+=""},drawAxisValues:function(){for(var t="",i=0,e=0;e{2}',Math.round(this.startX+10*this.xInterval*e/10+50*this.xInterval/100-i),this.startY+Math.round(65*this.yInterval/100),this.arrXAxis[e]);for(var e=0;e<=this._valueAxisLines;e++)i=5.5*(10*this.roundedTickRange*e/10).toString().length,t+=String.format('{2}',this.startX-i-15,this.startY-10*this.yInterval*e/10+3.5,10*this.roundedTickRange*e/10);if(this.yMin<0)for(var e=1;e<=this._valueAxisLines;e++)i=5.5*(10*this.roundedTickRange*e/10).toString().length,t+=String.format('-{2}',this.startX-i-19,this.startY+10*this.yInterval*e/10,10*this.roundedTickRange*e/10);return t},initializeSVG:function(){var t=String.format('',this._theme);return t+=String.format('',this._chartWidth,this._chartHeight),t+="",t+='',t+='',t+='',t+='',t+="",t+=String.format('',1*parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-1*parseInt(this._chartHeight)/10),t+=String.format('',this._chartWidth,this._chartHeight),t+=String.format('',1*parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-1*parseInt(this._chartHeight)/10)},drawAreas:function(){for(var t=this.get_displayValues(),i="",e=new Array,s=new Array,r=new Array,a=new Array,h=0;h0?String.format('{2}',this.startX+this.xInterval*h+50*this.xInterval/100-e[n].toString().length*this.charLength,this.startY-Math.round(e[n]*(this.yInterval/this.roundedTickRange))-7.5,t?e[n]:""):String.format('{2}',this.startX+this.xInterval*h+50*this.xInterval/100-e[n].toString().length*this.charLength,this.startY-Math.round(e[n]*(this.yInterval/this.roundedTickRange))+7.5,t?e[n]:""),s[n]=this.startX+this.xInterval*h+this.xInterval/2,r[n]=this.startY-Math.round(e[n]*(this.yInterval/this.roundedTickRange))}this._parentDiv.innerHTML=this._parentDiv.innerHTML+i;this._parentDiv.innerHTML;this._drawArea(a,0)},_drawArea:function(t,i){var e=this;e._parentDiv.innerHTML=e._parentDiv.innerHTML.replace("","")+String.format('',t[i],i+1,e._series[i].AreaColor),i++,i0){if(t[0]=="error"){this._onError(t[1]);return}u=parseInt(t[0])}t.length>1&&(i=t[1]);this.get_completeBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor());this.raise_uploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,u,i,null))},_onload:function(n){var l=!0,f=this,i=document.getElementById(this._formName),t,a,u,e,v,o,r,s,h,y,c,n;try{if(t=this._iframe.contentWindow.document,t==null||t.location==null){n={message:Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem};throw n;}else if(t.location.href=="about:blank"){if(this._removeTimer(),this.get_uploadingBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_uploadingBackColor():this._inputFile.style.backgroundColor=this.get_uploadingBackColor()),a=this._onStart(this._inputFile.value),a)return u=this._postBackUrl,u+=u.indexOf("?")===-1?"?":"&",i.action=u+"AsyncFileUploadID="+this.get_element().id+"&rnd="+Math.random().toString().replace(/\./g,""),i.target=this._iframeName,l=!1,this.setThrobber(!0),setTimeout(function(){i.submit();f._waitTimer=setTimeout(function(){f._wait()},100)},0),!0}else{if(t.body.innerHTML=="")return!0;if(e=t.getElementById(this.get_element().id),o="",e!=null){if(r=e.innerHTML.split("------"),r.length>0){if(r[0]=="error"){n={message:r[1]};throw n;}v=parseInt(r[0])}r.length>1&&(o=r[1])}else{s=Sys.Extended.UI.Resources.AsyncFileUpload_UnknownServerError;function w(n,t){return s=t,""}if(t.body.innerHTML.replace(/Exception\]:([^\n\r]+)[\n\r]/,w),h=Sys.Extended.UI.Resources.AsyncFileUpload_ServerResponseError+": '"+s+"'",y=confirm(h+"\n\n"+Sys.Extended.UI.Resources.AsyncFileUpload_ConfirmToSeeErrorPage),y){c=window.open("","NotFoundInAnswer","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400");function p(){try{c.document||setTimeout(p,100)}catch(i){return}var n=c.document;n.open();n.write(""+t.body.innerHTML+"<\/body>");n.close()}setTimeout(p,0)}n={message:h};throw n;}this._removeTimer();i.target="_top";i.action=this._postBackUrl;this.get_completeBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor());this.setThrobber(!1);this.raise_uploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,v,o,null))}}catch(b){this._removeTimer();i.target="_top";i.action=this._postBackUrl;this._onError(b.message)}finally{l&&setTimeout(function(){f._removeIframe()},100)}},_wait:function(){var n;if(this._waitTimer!=null){n=this;try{var t=this._iframe.contentWindow.document,i=t.location,r=i.href;this._waitTimer=setTimeout(function(){n._wait()},100)}catch(u){setTimeout(function(){n._removeIframe()},100);setTimeout(function(){n._onError(Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem)},0);this._waitTimer=null}}}};Sys.Extended.UI.AsyncFileUpload.registerClass("Sys.Extended.UI.AsyncFileUpload",Sys.Extended.UI.ControlBase);Sys.Extended.UI.AsyncFileUploadEventArgs=function(n,t,i,r){if(arguments.length!=4)throw Error.parameterCount();Sys.Extended.UI.AsyncFileUploadEventArgs.initializeBase(this);this._fileName=n;this._length=t;this._contentType=i;this._errorMessage=r};Sys.Extended.UI.AsyncFileUploadEventArgs.prototype={get_fileName:function(){var n=this._fileName.lastIndexOf("/"),t=this._fileName.lastIndexOf("\\");return this._fileName.substr((n>t?n:t)+1)},get_path:function(){return this._fileName},get_length:function(){return this._length},get_contentType:function(){return this._contentType},get_errorMessage:function(){return this._errorMessage}};Sys.Extended.UI.AsyncFileUploadEventArgs.registerClass("Sys.Extended.UI.AsyncFileUploadEventArgs",Sys.EventArgs); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.AsyncFileUpload=function(e){Sys.Extended.UI.AsyncFileUpload.initializeBase(this,[e]),this._hiddenField=null,this._inputFile=null,this._innerTB=null,this._postBackUrl="",this._formName="",this._iframe=null,this._waitTimer=null,this._completeBackColor="",this._uploadingBackColor="",this._errorBackColor="",this._throbber=null,this._onchange$delegate=null,this._onload$delegate=null,this._app_onload$delegate=Function.createDelegate(this,this._app_onload),this._onmouseup$delegate=null},Sys.Extended.UI.AsyncFileUpload.prototype={get_throbber:function(){return this._throbber},set_throbber:function(e){this._throbber=e},get_completeBackColor:function(){return this._completeBackColor},set_completeBackColor:function(e){this._completeBackColor=e},get_errorBackColor:function(){return this._errorBackColor},set_errorBackColor:function(e){this._errorBackColor=e},get_uploadingBackColor:function(){return this._uploadingBackColor},set_uploadingBackColor:function(e){this._uploadingBackColor=e},get_inputFile:function(){return this._inputFile},set_inputFile:function(e){this._inputFile=e},get_hiddenField:function(){return this._hiddenField},set_hiddenField:function(e){this._hiddenField=e},get_innerTB:function(){return this._innerTB},set_innerTB:function(e){this._innerTB=e},get_postBackUrl:function(){return this._postBackUrl},set_postBackUrl:function(e){this._postBackUrl=e},get_formName:function(){return this._formName},set_formName:function(e){this._formName=e},add_uploadStarted:function(e){this.get_events().addHandler("uploadStarted",e)},remove_uploadStarted:function(e){this.get_events().removeHandler("uploadStarted",e)},raise_uploadStarted:function(e){var t=this.get_events().getHandler("uploadStarted");return!t||t(this,e)},raiseUploadStarted:function(e){return Sys.Extended.Deprecated("raiseUploadStarted(e)","raise_uploadStarted(e)"),this.raise_uploadStarted(e)},add_uploadComplete:function(e){this.get_events().addHandler("uploadComplete",e)},remove_uploadComplete:function(e){this.get_events().removeHandler("uploadComplete",e)},raise_uploadComplete:function(e){var t=this.get_events().getHandler("uploadComplete");t&&t(this,e)},raiseUploadComplete:function(e){return Sys.Extended.Deprecated("raiseUploadComplete(e)","raise_uploadComplete(e)"),this.raise_uploadComplete(e)},add_uploadError:function(e){this.get_events().addHandler("uploadError",e)},remove_uploadError:function(e){this.get_events().removeHandler("uploadError",e)},raise_uploadError:function(e){var t=this.get_events().getHandler("uploadError");return!!t&&(t(this,e),!0)},raiseUploadError:function(e){return Sys.Extended.Deprecated("raiseUploadError(e)","raise_uploadError(e)"),this.raise_uploadError(e)},setThrobber:function(e){null!=this.get_throbber()&&(this.get_throbber().style.display=e?"":"none")},_onStart:function(e){var t=this.raise_uploadStarted(new Sys.Extended.UI.AsyncFileUploadEventArgs(e,null,null,null));return"undefined"==typeof t&&(t=!0),t},initialize:function(){Sys.Extended.UI.AsyncFileUpload.callBaseMethod(this,"initialize"),Sys.Application.add_load(this._app_onload$delegate),this._iframeName=this.get_element().id+"_iframe",this.setThrobber(!1)},dispose:function(){Sys.Application.remove_load(this._app_onload$delegate),null!=this._onchange$delegate&&($common.removeHandlers(this._inputFile,{change:this._onchange$delegate}),this._onchange$delegate=null),null!=this._onmouseup$delegate&&($common.removeHandlers(this._inputFile,{mouseup:this._onmouseup$delegate}),this._onmouseup$delegate=null),this._removeIframe(),Sys.Extended.UI.AsyncFileUpload.callBaseMethod(this,"dispose")},_onmouseup:function(){var e=this._inputFile;return setTimeout(function(){e.blur()},0),!0},_app_onload:function(e,t){if(this.setThrobber(!1),null!=this._inputFile&&(null==this._onchange$delegate&&(this._onchange$delegate=Function.createDelegate(this,this._onchange),$addHandlers(this._inputFile,{change:this._onchange$delegate})),null!=this._innerTB)){this._inputFile.blur();var i=this._inputFile;setTimeout(function(){i.blur()},0),this._innerTB.style.width=this._inputFile.offsetWidth-107+"px",this._inputFile.parentNode.style.width=this._inputFile.offsetWidth+"px",Sys.Browser.agent==Sys.Browser.InternetExplorer&&(this._onmouseup$delegate=Function.createDelegate(this,this._onmouseup),$addHandlers(this._inputFile,{mouseup:this._onmouseup$delegate}))}},_removeIframe:function(){this._removeTimer(),null!=this._iframe&&(null!=this._onload$delegate&&($common.removeHandlers(this._iframe,{load:this._onload$delegate}),this._onload$delegate=null),document.body.removeChild(this._iframe),this._iframe=null)},_removeTimer:function(){null!=this._waitTimer&&(window.clearTimeout(this._waitTimer),this._waitTimer=null)},_onError:function(e){var t=Sys.Extended.UI.Resources.AsyncFileUpload_UnhandledException;this.setThrobber(!1),""!=this.get_errorBackColor()&&(null!=this._innerTB?this._innerTB.style.backgroundColor=this.get_errorBackColor():this._inputFile.style.backgroundColor=this.get_errorBackColor()),this.raise_uploadError(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,null,null,e))||alert(t+": "+e)},_onchange:function(e){var t=this._inputFile.value;if(""!=t){null!=this._innerTB&&(this._innerTB.value=t),null!=this._hiddenField&&(this._hiddenField.value=t);try{if(null==this._iframe){this._onload$delegate=Function.createDelegate(this,this._onload);var i=document.createElement("IFRAME");i.width="0",i.height="0",i.style.display="none",i.src="about:blank",i.id=this._iframeName,i.name=this._iframeName,$addHandlers(i,{load:this._onload$delegate}),this._iframe=i,document.body.appendChild(this._iframe),i.contentWindow.name=this._iframeName}else{this._removeIframe();var n=Sys.Extended.UI.Resources.AsyncFileUpload_InternalErrorMessage;this._onError(n)}}catch(e){this._onError(e.message)}}},_stopLoad:function(e){var t=document.getElementById(this._formName);this._removeTimer(),this.setThrobber(!1),this._restoreFormTarget(t),t.action=this._postBackUrl;var i,n="",o=e.split("------");if(o.length>0){if("error"==o[0])return void this._onError(o[1]);i=parseInt(o[0])}o.length>1&&(n=o[1]),""!=this.get_completeBackColor()&&(null!=this._innerTB?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor()),this.raise_uploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,i,n,null))},_onload:function(e){function t(e,t){return _=t,""}function i(){try{m.document||setTimeout(i,100)}catch(e){return}var e=m.document;e.open(),e.write(""+s.body.innerHTML+""),e.close()}var n=!0,o=this,r=document.getElementById(this._formName);try{var s=this._iframe.contentWindow.document;if(null==s||null==s.location){var e={message:Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem};throw e}if("about:blank"==s.location.href){this._removeTimer(),""!=this.get_uploadingBackColor()&&(null!=this._innerTB?this._innerTB.style.backgroundColor=this.get_uploadingBackColor():this._inputFile.style.backgroundColor=this.get_uploadingBackColor());var l=this._onStart(this._inputFile.value);if(l){var a=this._postBackUrl;return a+=a.indexOf("?")===-1?"?":"&",r.action=a+"AsyncFileUploadID="+this.get_element().id+"&rnd="+Math.random().toString().replace(/\./g,""),this._changeFormTarget(r),n=!1,this.setThrobber(!0),setTimeout(function(){r.submit(),o._waitTimer=setTimeout(function(){o._wait()},100)},0),!0}}else{if(""==s.body.innerHTML)return!0;var d,u=s.getElementById(this.get_element().id),h="";if(null==u){var _=Sys.Extended.UI.Resources.AsyncFileUpload_UnknownServerError;s.body.innerHTML.replace(/Exception\]:([^\n\r]+)[\n\r]/,t);var c=Sys.Extended.UI.Resources.AsyncFileUpload_ServerResponseError+": '"+_+"'",p=confirm(c+"\n\n"+Sys.Extended.UI.Resources.AsyncFileUpload_ConfirmToSeeErrorPage);if(p){var m=window.open("","NotFoundInAnswer","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400");setTimeout(i,0)}var e={message:c};throw e}var g=u.innerHTML.split("------");if(g.length>0){if("error"==g[0]){var e={message:g[1]};throw e}d=parseInt(g[0])}g.length>1&&(h=g[1]),this._removeTimer(),this._restoreFormTarget(r),r.action=this._postBackUrl,""!=this.get_completeBackColor()&&(null!=this._innerTB?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor()),this.setThrobber(!1),this.raise_uploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,d,h,null))}}catch(e){this._removeTimer(),this._restoreFormTarget(r),r.action=this._postBackUrl,this._onError(e.message)}finally{n&&setTimeout(function(){o._removeIframe()},100)}},_wait:function(){if(null!=this._waitTimer){var e=this;try{var t=this._iframe.contentWindow.document,i=t.location;i.href;this._waitTimer=setTimeout(function(){e._wait()},100)}catch(t){setTimeout(function(){e._removeIframe()},100),setTimeout(function(){e._onError(Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem)},0),this._waitTimer=null}}},_changeFormTarget:function(e){this._mainFormOldTarget=e.target,e.target=this._iframeName},_restoreFormTarget:function(e){e.target=this._mainFormOldTarget,this._mainFormOldTarget=void 0}},Sys.Extended.UI.AsyncFileUpload.registerClass("Sys.Extended.UI.AsyncFileUpload",Sys.Extended.UI.ControlBase),Sys.Extended.UI.AsyncFileUploadEventArgs=function(e,t,i,n){if(4!=arguments.length)throw Error.parameterCount();Sys.Extended.UI.AsyncFileUploadEventArgs.initializeBase(this),this._fileName=e,this._length=t,this._contentType=i,this._errorMessage=n},Sys.Extended.UI.AsyncFileUploadEventArgs.prototype={get_fileName:function(){var e=this._fileName.lastIndexOf("/"),t=this._fileName.lastIndexOf("\\"),i=this._fileName.substr((e>t?e:t)+1);return i},get_path:function(){return this._fileName},get_length:function(){return this._length},get_contentType:function(){return this._contentType},get_errorMessage:function(){return this._errorMessage}},Sys.Extended.UI.AsyncFileUploadEventArgs.registerClass("Sys.Extended.UI.AsyncFileUploadEventArgs",Sys.EventArgs); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/AutoComplete.js b/Scripts/AjaxControlToolkit/Release/AutoComplete.js index d15944cbc..1c824eb27 100644 --- a/Scripts/AjaxControlToolkit/Release/AutoComplete.js +++ b/Scripts/AjaxControlToolkit/Release/AutoComplete.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.AutoCompleteBehavior=function(n){Sys.Extended.UI.AutoCompleteBehavior.initializeBase(this,[n]);this._servicePath=null;this._serviceMethod=null;this._contextKey=null;this._useContextKey=!1;this._minimumPrefixLength=3;this._completionSetCount=10;this._completionInterval=1e3;this._completionListElementID=null;this._completionListElement=null;this._textColor="windowtext";this._textBackground="window";this._popupBehavior=null;this._popupBehaviorHiddenHandler=null;this._onShowJson=null;this._onHideJson=null;this._timer=null;this._cache=null;this._currentPrefix=null;this._selectIndex=-1;this._focusHandler=null;this._blurHandler=null;this._bodyClickHandler=null;this._completionListBlurHandler=null;this._keyDownHandler=null;this._mouseDownHandler=null;this._mouseUpHandler=null;this._mouseOverHandler=null;this._tickHandler=null;this._enableCaching=!0;this._flyoutHasFocus=!1;this._textBoxHasFocus=!1;this._completionListCssClass=null;this._completionListItemCssClass=null;this._highlightedItemCssClass=null;this._delimiterCharacters=null;this._firstRowSelected=!1;this._showOnlyCurrentWordInCompletionListItem=!1;this._webRequest=null};Sys.Extended.UI.AutoCompleteBehavior.prototype={initialize:function(){Sys.Extended.UI.AutoCompleteBehavior.callBaseMethod(this,"initialize");$common.prepareHiddenElementForATDeviceUpdate();this._popupBehaviorHiddenHandler=Function.createDelegate(this,this._popupHidden);this._tickHandler=Function.createDelegate(this,this._onTimerTick);this._focusHandler=Function.createDelegate(this,this._onGotFocus);this._blurHandler=Function.createDelegate(this,this._onLostFocus);this._keyDownHandler=Function.createDelegate(this,this._onKeyDown);this._mouseDownHandler=Function.createDelegate(this,this._onListMouseDown);this._mouseUpHandler=Function.createDelegate(this,this._onListMouseUp);this._mouseOverHandler=Function.createDelegate(this,this._onListMouseOver);this._completionListBlurHandler=Function.createDelegate(this,this._onCompletionListBlur);this._bodyClickHandler=Function.createDelegate(this,this._onCompletionListBlur);this._timer=new Sys.Timer;this.initializeTimer(this._timer);var n=this.get_element();this.initializeTextBox(n);this._completionListElementID!==null&&(this._completionListElement=$get(this._completionListElementID));this._completionListElement==null&&(this._completionListElement=document.createElement("ul"),this._completionListElement.id=this.get_id()+"_completionListElem",Sys.Browser.agent===Sys.Browser.Safari?document.body.appendChild(this._completionListElement):n.parentNode.insertBefore(this._completionListElement,n.nextSibling));this.initializeCompletionList(this._completionListElement);this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"PopupBehavior",parentElement:n,positioningMode:Sys.Extended.UI.PositioningMode.BottomLeft},null,null,this._completionListElement);this._popupBehavior.add_hidden(this._popupBehaviorHiddenHandler);this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson)},dispose:function(){this._onShowJson=null;this._onHideJson=null;this._popupBehavior&&(this._popupBehaviorHiddenHandler&&this._popupBehavior.remove_hidden(this._popupBehaviorHiddenHandler),this._popupBehavior.dispose(),this._popupBehavior=null);this._timer&&(this._timer.dispose(),this._timer=null);var n=this.get_element();n&&($removeHandler(n,"focus",this._focusHandler),$removeHandler(n,"blur",this._blurHandler),$removeHandler(n,"keydown",this._keyDownHandler),$removeHandler(this._completionListElement,"blur",this._completionListBlurHandler),$removeHandler(this._completionListElement,"mousedown",this._mouseDownHandler),$removeHandler(this._completionListElement,"mouseup",this._mouseUpHandler),$removeHandler(this._completionListElement,"mouseover",this._mouseOverHandler));this._bodyClickHandler&&($removeHandler(document.body,"click",this._bodyClickHandler),this._bodyClickHandler=null);this._popupBehaviorHiddenHandler=null;this._tickHandler=null;this._focusHandler=null;this._blurHandler=null;this._keyDownHandler=null;this._completionListBlurHandler=null;this._mouseDownHandler=null;this._mouseUpHandler=null;this._mouseOverHandler=null;Sys.Extended.UI.AutoCompleteBehavior.callBaseMethod(this,"dispose")},initializeTimer:function(n){n.set_interval(this._completionInterval);n.add_tick(this._tickHandler)},initializeTextBox:function(n){n.autocomplete="off";$addHandler(n,"focus",this._focusHandler);$addHandler(n,"blur",this._blurHandler);$addHandler(n,"keydown",this._keyDownHandler)},initializeCompletionList:function(n){if(this._completionListCssClass)Sys.UI.DomElement.addCssClass(n,this._completionListCssClass);else{var t=n.style;t.textAlign="left";t.visibility="hidden";t.cursor="default";t.listStyle="none";t.padding="0px";t.margin="0px! important";Sys.Browser.agent===Sys.Browser.Safari?(t.border="solid 1px gray",t.backgroundColor="white",t.color="black"):(t.border="solid 1px buttonshadow",t.backgroundColor=this._textBackground,t.color=this._textColor)}$addHandler(n,"mousedown",this._mouseDownHandler);$addHandler(n,"mouseup",this._mouseUpHandler);$addHandler(n,"mouseover",this._mouseOverHandler);$addHandler(n,"blur",this._completionListBlurHandler);$addHandler(document.body,"click",this._bodyClickHandler)},_currentCompletionWord:function(){var u=this.get_element(),t=u.value,r=t,n,i;return this.get_isMultiWord()&&(n=this._getCurrentWordStartIndex(),i=this._getCurrentWordEndIndex(n),r=i<=n?t.substring(n):t.substring(n,i)),r},_getCursorIndex:function(){return this.get_element().selectionStart},_getCurrentWordStartIndex:function(){for(var r,u=this.get_element(),f=u.value.substring(0,this._getCursorIndex()),n=0,t=-1,i=0;it&&(t=r);return n=t,n>=this._getCursorIndex()&&(n=0),n<0?0:n+1},_getCurrentWordEndIndex:function(n){for(var i,u=this.get_element(),f=u.value.substring(n),t=0,r=0;r0&&(i0&&(f=r.substring(0,t));u>t&&(e=r.substring(u));i=f+n+e}return i},_hideCompletionList:function(){var n=new Sys.CancelEventArgs;(this.raise_hiding(n),n.get_cancel())||this.hidePopup()},showPopup:function(){this._popupBehavior.show();this.raise_shown(Sys.EventArgs.Empty)},hidePopup:function(){this._popupBehavior?this._popupBehavior.hide():this._popupHidden()},_popupHidden:function(){this._completionListElement.innerHTML="";this._selectIndex=-1;this._flyoutHasFocus=!1;this.raise_hidden(Sys.EventArgs.Empty)},_highlightItem:function(n){for(var t,r=this._completionListElement.childNodes,i=0;i0&&(this._selectIndex--,this._handleScroll(this._completionListElement.childNodes[this._selectIndex],this._selectIndex),this._highlightItem(this._completionListElement.childNodes[this._selectIndex]),n.stopPropagation(),n.preventDefault()):t===Sys.UI.Key.down?this._selectIndex=0&&(i.scrollTop+=r.height*t-(i.clientHeight+i.scrollTop)+r.height);r.height*(u-(t+1))-(i.scrollHeight-i.scrollTop)>=0&&(i.scrollTop-=r.height*(u-(t+1))-(i.scrollHeight-i.scrollTop)+r.height);i.scrollTop%r.height!=0&&(r.height*(t+1)-(i.clientHeight+i.scrollTop)>=0?i.scrollTop-=i.scrollTop%r.height:i.scrollTop+=r.height-i.scrollTop%r.height)},_handleFlyoutFocus:function(){this._textBoxHasFocus||this._flyoutHasFocus||(this._webRequest&&(this._webRequest.get_executor().abort(),this._webRequest=null),this._hideCompletionList())},_onLostFocus:function(){this._textBoxHasFocus=!1;this._timer.set_enabled(!1);window.setTimeout(Function.createDelegate(this,this._handleFlyoutFocus),500)},_onMethodComplete:function(n,t){this._webRequest=null;this._update(t,n,!0)},_onMethodFailed:function(){this._webRequest=null},_onTimerTick:function(n,t){var i,t,r;if(this._timer.set_enabled(!1),this._servicePath&&this._serviceMethod){if(i=this._currentCompletionWord(),i.trim().lengths&&(s=o)}return i=s,i>=this._getCursorIndex()&&(i=0),i<0?0:i+1},_getCurrentWordEndIndex:function(e){for(var t=this.get_element(),i=t.value.substring(e),s=0,n=0;n0&&(o0&&(r=s.substring(0,n)),o>n&&(l=s.substring(o)),t=r+e+l}return t},_hideCompletionList:function(){var e=new Sys.CancelEventArgs;this.raise_hiding(e),e.get_cancel()||this.hidePopup()},showPopup:function(){this._popupBehavior.show(),this.raise_shown(Sys.EventArgs.Empty)},hidePopup:function(){this._popupBehavior?this._popupBehavior.hide():this._popupHidden()},_popupHidden:function(){this._completionListElement.innerHTML="",this._selectIndex=-1,this._flyoutHasFocus=!1,this.raise_hidden(Sys.EventArgs.Empty)},_highlightItem:function(e){for(var t=this._completionListElement.childNodes,i=0;i0&&(this._selectIndex--,this._handleScroll(this._completionListElement.childNodes[this._selectIndex],this._selectIndex),this._highlightItem(this._completionListElement.childNodes[this._selectIndex]),e.stopPropagation(),e.preventDefault()):t===Sys.UI.Key.down?this._selectIndex=0&&(i.scrollTop+=s.height*t-(i.clientHeight+i.scrollTop)+s.height),s.height*(n-(t+1))-(i.scrollHeight-i.scrollTop)>=0&&(i.scrollTop-=s.height*(n-(t+1))-(i.scrollHeight-i.scrollTop)+s.height),i.scrollTop%s.height!==0&&(s.height*(t+1)-(i.clientHeight+i.scrollTop)>=0?i.scrollTop-=i.scrollTop%s.height:i.scrollTop+=s.height-i.scrollTop%s.height)},_handleFlyoutFocus:function(){this._textBoxHasFocus||this._flyoutHasFocus||(this._webRequest&&(this._webRequest.get_executor().abort(),this._webRequest=null),this._hideCompletionList())},_onLostFocus:function(){this._textBoxHasFocus=!1,this._timer.set_enabled(!1),window.setTimeout(Function.createDelegate(this,this._handleFlyoutFocus),500)},_onMethodComplete:function(e,t){this._webRequest=null,this._update(t,e,!0)},_onMethodFailed:function(e,t,i){this._webRequest=null},_onTimerTick:function(e,t){if(this._timer.set_enabled(!1),this._servicePath&&this._serviceMethod){var i=this._currentCompletionWord();if(i.trim().length0&&f-r>c-l?u0&&h-i>a-r?p{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLinesForColumnType();n=n+this.drawBackgroundVerticalLinesForColumnType();n=n+this.drawBaseLinesForColumnType();n=n+this.drawLegendArea();n=n+this.drawAxisValuesForColumnType();n=n+this.drawBarsForColumnType();n=n+"<\/svg>";this._parentDiv.innerHTML=n},calculateIntervalForColumnType:function(){this.startX=this._chartWidth/10+.5;this.endX=parseInt(this._chartWidth)-4.5;this.startY=this.yMin>=0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*24/100)+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*12/100)/2+.5;this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValuesForColumnType:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.BarChartType.Column)for(n=0;nthis.yMax&&(this.yMax=u),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t);this.startX=this.startX+(this.roundedTickRange*10*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLinesForColumnType:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._categoryAxisLineColor);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._categoryAxisLineColor);return t},drawBackgroundVerticalLinesForColumnType:function(){var t="",n;for(this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength),n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLinesForColumnType:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),t=0;t<\/path>',parseInt(this._chartWidth)-5-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0)for(n=n+String.format('<\/path>',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);return n},drawAxisValuesForColumnType:function(){for(var t="",i=0,n=0;n{2}<\/text>',Math.round(this.startX+this.xInterval*10*n/10+this.xInterval/2-i),this.startY+Math.round(this.yInterval*65/100),this.arrXAxis[n]);for(n=0;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-15,this.startY-this.yInterval*10*n/10+3.5,this.roundedTickRange*10*n/10);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('-{2}<\/text>',this.startX-i-19,this.startY+this.yInterval*10*n/10,this.roundedTickRange*10*n/10);return t},drawBarsForColumnType:function(){var i="",o=this._series.length,e=this.xInterval/10,r,s,t,u,f,n;for(r=this._chartType==Sys.Extended.UI.BarChartType.Column?Math.round((this.xInterval*80/100-e*o)/o):Math.round(this.xInterval*80/100),s="",t=0;t",this._chartType==Sys.Extended.UI.BarChartType.Column)for(n=0;n',this.startX+this.xInterval*t+this.xInterval*15/100+(e+r)*n,this.startX+this.xInterval*t+this.xInterval*15/100+(e+r)*n+r,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*t+this.xInterval*12.5/100+(e+r)*n,this.startX+this.xInterval*t+this.xInterval*12.5/100+(e+r)*n+r,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor),i=this.yVal>0?i+String.format('{2}<\/text>',this.startX+this.xInterval*t+this.xInterval/5+(e+r)*n+r/10-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))-7.5,this.yVal):i+String.format('{2}<\/text>',this.startX+this.xInterval*t+this.xInterval/5+(e+r)*n+r/10-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))+7.5,this.yVal);else for(u=this.startY,f=this.startY,n=0;n0?i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100,this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100+r,u,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100,this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100+r,f,f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):this.yVal>0?i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval/20,this.startX+this.xInterval*10*t/10+this.xInterval/20+r,u,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval/20,this.startX+this.xInterval*10*t/10+this.xInterval/20+r,f,f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor),this.yVal>0?(i=i+String.format('{2}<\/text>',this.startX+this.xInterval*10*t/10+this.xInterval*30/100+r/10,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)/2),this.yVal),u=u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))):(i=i+String.format('{2}<\/text>',this.startX+this.xInterval*10*t/10+this.xInterval*30/100+r/10,f+Math.round(Math.abs(this.yVal)*(this.yInterval/this.roundedTickRange)/2),this.yVal),f=f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)));i=i+"<\/g>"}return i},initializeSVG:function(){var n=String.format('',this._theme);return n=n+String.format('',this._chartWidth,this._chartHeight),n=n+"",n=n+'',n=n+'<\/stop>',n=n+'<\/stop>',n=n+'<\/stop><\/linearGradient>',n=n+"<\/defs>",n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('',this._chartWidth,this._chartHeight),n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawLegendArea:function(){for(var t,c,i="",o=parseInt(this._chartHeight)*84/100+5,r=7.5,u=5,l=0,n=0;nparseInt(this._chartWidth)/2&&(t=t/2,c=!0);i=i+"";i=i+String.format('<\/path>',Math.round(parseInt(this._chartWidth)/2-t/2),o,Math.round(parseInt(this._chartWidth)/2+t/2),Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)*40/100-t/2+r+u,s=e,f=parseInt(this._chartWidth)*40/100-t/2,h=f;for(n=0;n<\/path>',f,o+7.5,f+r,o+15,n+1,this._series[n].BarColor),i=i+String.format('{2}<\/text>',e,o+15,this._series[n].Name),this._series[n].Name.length>10?(h=f+this._series[n].Name.length*5+r+u*2,s=e+this._series[n].Name.length*5+r+u*2):(h=h+this._series[n].Name.length*6+r+u*2,s=s+this._series[n].Name.length*6+r+u*2);return i+"<\/g>"},generateBarChart:function(){this.arrYAxis=this._categoriesAxis.split(",");this.arrYAxisLength=this.arrYAxis.length;this.calculateMinMaxValuesForBarType();this.calculateIntervalForBarType();this.calculateValueAxisForBarType();var n=this.initializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLinesForBarType();n=n+this.drawBackgroundVerticalLinesForBarType();n=n+this.drawBaseLinesForBarType();n=n+this.drawLegendArea();n=n+this.drawAxisValuesForBarType();n=n+this.drawBarsForBarType();n=n+"<\/svg>";this._parentDiv.innerHTML=n},calculateIntervalForBarType:function(){this.startY=Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/5)+.5;this.endY=parseInt(this._chartHeight)*8/100+5;this.endX=parseInt(this._chartWidth)-10+.5;this.startX=this.xMin>=0?this._chartWidth*15/100+.5:Math.round(parseInt(this._chartWidth)/2)+.5;this.xInterval=Math.round((this.endX-this.startX)/this._valueAxisLines)},calculateMinMaxValuesForBarType:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.BarChartType.Bar)for(n=0;nthis.xMax&&(this.xMax=u),i=0?this.xMax:this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t)},drawBackgroundVerticalLinesForBarType:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);if(this.xMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);return t},drawBackgroundHorizontalLinesForBarType:function(){var t="",n;for(this.yInterval=Math.round((this.startY-this.endY)/this.arrYAxisLength),n=0;n<=this.arrYAxisLength;n++)t=t+String.format('<\/path>',this.startX,this.startX+this.xInterval*this._valueAxisLines,this.startY-this.yInterval*n,this._valueAxisLineColor);if(this.xMin<0)for(n=0;n<=this.arrYAxisLength;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY-this.yInterval*n,this._valueAxisLineColor);return t},drawBaseLinesForBarType:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startX-4,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.endX,this.startY,this._baseLineColor),t=0;t<\/path>',this.startX,this.startX-4,this.startY-this.yInterval*t,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX+this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0)for(n=n+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);return n},drawAxisValuesForBarType:function(){for(var t="",i=0,n=0;n{2}<\/text>',this.startX-this.xInterval*15/100-i,Math.round(this.startY-this.yInterval*(n+1)+this.yInterval*60/100),this.arrYAxis[n]);for(n=0;n<=this._valueAxisLines;n++)t=t+String.format('{2}<\/text>',this.startX+this.xInterval*n-(this.roundedTickRange*n).toString().length*this.charLength,this.startY+this.yInterval*35/100,this.roundedTickRange*n);if(this.xMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('-{2}<\/text>',this.startX-this.xInterval*n-(this.roundedTickRange*n).toString().length*this.charLength,this.startY+this.yInterval*35/100,this.roundedTickRange*n);return t},drawBarsForBarType:function(){for(var u,f,n,i="",o=this._series.length,e=this.yInterval/10,r=this._chartType==Sys.Extended.UI.BarChartType.Bar?Math.round((this.yInterval*80/100-e*o)/o):Math.round(this.yInterval*80/100),t=0;t",this._chartType==Sys.Extended.UI.BarChartType.Bar)for(n=0;n',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*15/100-(e+r)*n,this.startY-this.yInterval*t-this.yInterval*15/100-(e+r)*n-r,n+1,this._series[n].BarColor):i+String.format('',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*12.5/100-(e+r)*n,this.startY-this.yInterval*t-this.yInterval*12.5/100-(e+r)*n-r,n+1,this._series[n].BarColor),i=this.xVal>0?i+String.format('{2}<\/text>',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))+this.xVal.toString().length*this.charLength,this.startY-this.yInterval*t-this.yInterval/5-(e+r)*n-r/10,this.xVal):i+String.format('{2}<\/text>',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))-(this.xVal.toString().length+1)*this.charLength-5,this.startY-this.yInterval*t-this.yInterval/5-(e+r)*n-r/10,this.xVal);else for(u=this.startX,f=this.startX,n=0;n0?i+String.format('',u,u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval/10,this.startY-this.yInterval*t-this.xInterval/10-r,n+1,this._series[n].BarColor):i+String.format('',f,f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval/10,this.startY-this.yInterval*t-this.xInterval/10-r,n+1,this._series[n].BarColor):this.xVal>0?i+String.format('',u,u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*7.55/100,this.startY-this.yInterval*t-this.xInterval*7.5/100-r,n+1,this._series[n].BarColor):i+String.format('',f,f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*7.55/100,this.startY-this.yInterval*t-this.xInterval*7.5/100-r,n+1,this._series[n].BarColor),this.xVal>0?(i=i+String.format('{2}<\/text>',u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*t-this.yInterval*30/100-r/10,this.xVal),u=u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))):(i=i+String.format('{2}<\/text>',f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*t-this.yInterval*30/100-r/10,this.xVal),f=f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)));i=i+"<\/g>"}return i},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(n){this._chartWidth=n},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(n){this._chartHeight=n},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(n){this._chartTitle=n},get_categoriesAxis:function(){return this._categoriesAxis},set_categoriesAxis:function(n){this._categoriesAxis=n},get_clientSeries:function(){return this._series},set_clientSeries:function(n){this._series=n},get_ClientSeries:function(){return Sys.Extended.Deprecated("get_ClientSeries","get_clientSeries"),this.get_clientSeries()},set_ClientSeries:function(n){Sys.Extended.Deprecated("set_ClientSeries","set_clientSeries");this.set_clientSeries(n)},get_chartType:function(){return this._chartType},set_chartType:function(n){this._chartType=n},get_theme:function(){return this._theme},set_theme:function(n){this._theme=n},get_valueAxisLines:function(){return this._valueAxisLines},set_valueAxisLines:function(n){this._valueAxisLines=n},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(n){this._chartTitleColor=n},get_valueAxisLineColor:function(){return this._valueAxisLineColor},set_valueAxisLineColor:function(n){this._valueAxisLineColor=n},get_categoryAxisLineColor:function(){return this._categoryAxisLineColor},set_categoryAxisLineColor:function(n){this._categoryAxisLineColor=n},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(n){this._baseLineColor=n}};Sys.Extended.UI.BarChart.registerClass("Sys.Extended.UI.BarChart",Sys.Extended.UI.ControlBase);Sys.Extended.UI.BarChartType=function(){throw Error.invalidOperation();};Sys.Extended.UI.BarChartType.prototype={Column:0,Bar:1,StackedColumn:2,StackedBar:3};Sys.Extended.UI.BarChartType.registerEnum("Sys.Extended.UI.BarChartType",!1); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.BarChart=function(t){Sys.Extended.UI.BarChart.initializeBase(this,[t]),this._chartWidth="300",this._chartHeight="200",this._chartTitle="",this._categoriesAxis="",this._series=null,this._chartType=Sys.Extended.UI.BarChartType.Column,this._theme="BarChart",this._valueAxisLines=9,this._chartTitleColor="",this._valueAxisLineColor="",this._categoryAxisLineColor="",this._baseLineColor="",this._container=null,this.yMax=0,this.yMin=0,this.xMax=0,this.xMin=0,this.roundedTickRange=0,this.startX=0,this.startY=0,this.endX=0,this.endY=0,this.xInterval=0,this.yInterval=0,this.arrXAxis,this.arrXAxisLength=0,this.arrYAxis,this.arrYAxisLength=0,this.charLength=3.5,this.arrCombinedData=null},Sys.Extended.UI.BarChart.prototype={initialize:function(){if(Sys.Extended.UI.BarChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Browser does not support SVG.";0==this._valueAxisLines&&(this._valueAxisLines=9),this._parentDiv=this.get_container(),this._chartType==Sys.Extended.UI.BarChartType.Column||this._chartType==Sys.Extended.UI.BarChartType.StackedColumn?this.generateColumnChart():this._chartType!=Sys.Extended.UI.BarChartType.Bar&&this._chartType!=Sys.Extended.UI.BarChartType.StackedBar||this.generateBarChart()},dispose:function(){Sys.Extended.UI.BarChart.callBaseMethod(this,"dispose")},generateColumnChart:function(){this.arrXAxis=this._categoriesAxis.split(","),this.arrXAxisLength=this.arrXAxis.length,this.calculateMinMaxValuesForColumnType(),this.calculateIntervalForColumnType(),this.calculateValueAxisForColumnType();var t=this.initializeSVG();t+=String.format('{2}',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,5*parseInt(this._chartHeight)/100,this._chartTitle,this._chartTitleColor),t+=this.drawBackgroundHorizontalLinesForColumnType(),t+=this.drawBackgroundVerticalLinesForColumnType(),t+=this.drawBaseLinesForColumnType(),t+=this.drawLegendArea(),t+=this.drawAxisValuesForColumnType(),t+=this.drawBarsForColumnType(),t+="",this._parentDiv.innerHTML=t},calculateIntervalForColumnType:function(){this.startX=10*this._chartWidth/100+.5,this.endX=parseInt(this._chartWidth)-4.5,this.yMin>=0?this.startY=Math.round(parseInt(this._chartHeight)-24*parseInt(this._chartHeight)/100)+.5:this.startY=Math.round(parseInt(this._chartHeight)-12*parseInt(this._chartHeight)/100)/2+.5,this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValuesForColumnType:function(t){var i,s,r;if(this._chartType==Sys.Extended.UI.BarChartType.Column)for(var e=0;ethis.yMax&&(this.yMax=i),s=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin),i=t/(this._valueAxisLines-1),i<1?this.roundedTickRange=i.toFixed(1):(s=Math.ceil(Math.log(i)/Math.log(10)-1),r=Math.pow(10,s),this.roundedTickRange=Math.ceil(i/r)*r),this.startX=this.startX+(10*this.roundedTickRange*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLinesForColumnType:function(){for(var t="",i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY-this.yInterval*i,this._categoryAxisLineColor);if(this.yMin<0)for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY+this.yInterval*i,this._categoryAxisLineColor);return t},drawBackgroundVerticalLinesForColumnType:function(){var t="";this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength);for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLinesForColumnType:function(){var t="";t+=String.format('',this.startX,this.startY,this.endX,this._baseLineColor),t+=String.format('',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.startY+4,this._baseLineColor);for(var i=0;i',parseInt(this._chartWidth)-5-this.xInterval*i,this.startY,this.startY+4,this._baseLineColor);for(var i=0;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY-this.yInterval*i,this._baseLineColor);if(this.yMin<0){t+=String.format('',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor);for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY+this.yInterval*i,this._baseLineColor)}return t},drawAxisValuesForColumnType:function(){for(var t="",i=0,s=0;s{2}',Math.round(this.startX+10*this.xInterval*s/10+50*this.xInterval/100-i),this.startY+Math.round(65*this.yInterval/100),this.arrXAxis[s]);for(var s=0;s<=this._valueAxisLines;s++)i=5.5*(10*this.roundedTickRange*s/10).toString().length,t+=String.format('{2}',this.startX-i-15,this.startY-10*this.yInterval*s/10+3.5,10*this.roundedTickRange*s/10);if(this.yMin<0)for(var s=1;s<=this._valueAxisLines;s++)i=5.5*(10*this.roundedTickRange*s/10).toString().length,t+=String.format('-{2}',this.startX-i-19,this.startY+10*this.yInterval*s/10,10*this.roundedTickRange*s/10);return t},drawBarsForColumnType:function(){var t,i="",s=this._series.length,r=10*this.xInterval/100;t=this._chartType==Sys.Extended.UI.BarChartType.Column?Math.round((80*this.xInterval/100-r*s)/s):Math.round(80*this.xInterval/100);for(var e=0;e",this._chartType==Sys.Extended.UI.BarChartType.Column)for(var a=0;a',this.startX+this.xInterval*e+15*this.xInterval/100+(r+t)*a,this.startX+this.xInterval*e+15*this.xInterval/100+(r+t)*a+t,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor):String.format('',this.startX+this.xInterval*e+12.5*this.xInterval/100+(r+t)*a,this.startX+this.xInterval*e+12.5*this.xInterval/100+(r+t)*a+t,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor),i+=this.yVal>0?String.format('{2}',this.startX+this.xInterval*e+20*this.xInterval/100+(r+t)*a+10*t/100-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))-7.5,this.yVal):String.format('{2}',this.startX+this.xInterval*e+20*this.xInterval/100+(r+t)*a+10*t/100-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))+7.5,this.yVal);else for(var h=this.startY,n=this.startY,a=0;a0?String.format('',this.startX+10*this.xInterval*e/10+7.5*this.xInterval/100,this.startX+10*this.xInterval*e/10+7.5*this.xInterval/100+t,h,h-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor):String.format('',this.startX+10*this.xInterval*e/10+7.5*this.xInterval/100,this.startX+10*this.xInterval*e/10+7.5*this.xInterval/100+t,n,n-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor):this.yVal>0?String.format('',this.startX+10*this.xInterval*e/10+5*this.xInterval/100,this.startX+10*this.xInterval*e/10+5*this.xInterval/100+t,h,h-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor):String.format('',this.startX+10*this.xInterval*e/10+5*this.xInterval/100,this.startX+10*this.xInterval*e/10+5*this.xInterval/100+t,n,n-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),a+1,this._series[a].BarColor),this.yVal>0?(i+=String.format('{2}',this.startX+10*this.xInterval*e/10+30*this.xInterval/100+10*t/100,h-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)/2),this.yVal),h-=Math.round(this.yVal*(this.yInterval/this.roundedTickRange))):(i+=String.format('{2}',this.startX+10*this.xInterval*e/10+30*this.xInterval/100+10*t/100,n+Math.round(Math.abs(this.yVal)*(this.yInterval/this.roundedTickRange)/2),this.yVal),n-=Math.round(this.yVal*(this.yInterval/this.roundedTickRange)));i+=""}return i},initializeSVG:function(){var t=String.format('',this._theme);return t+=String.format('',this._chartWidth,this._chartHeight),t+="",t+='',t+='',t+='',t+='',t+="",t+=String.format('',this._chartWidth,this._chartHeight)},drawLegendArea:function(){for(var t="",i=84*parseInt(this._chartHeight)/100+5,s=7.5,r=7.5,e=5,a=0,h=0;hparseInt(this._chartWidth)/2&&(n/=2,l=!0),t+="",t+=String.format('',Math.round(parseInt(this._chartWidth)/2-n/2),i,Math.round(parseInt(this._chartWidth)/2+n/2),Math.round(97.5*parseInt(this._chartHeight)/100));for(var o=40*parseInt(this._chartWidth)/100-n/2+s+e,d=o,x=40*parseInt(this._chartWidth)/100-n/2,u=x,h=0;h',x,i+r,x+s,i+15,h+1,this._series[h].BarColor),t+=String.format('{2}',o,i+15,this._series[h].Name),this._series[h].Name.length>10?(u=x+5*this._series[h].Name.length+s+2*e,d=o+5*this._series[h].Name.length+s+2*e):(u=u+6*this._series[h].Name.length+s+2*e,d=d+6*this._series[h].Name.length+s+2*e);return t+=""},generateBarChart:function(){this.arrYAxis=this._categoriesAxis.split(","),this.arrYAxisLength=this.arrYAxis.length,this.calculateMinMaxValuesForBarType(),this.calculateIntervalForBarType(),this.calculateValueAxisForBarType();var t=this.initializeSVG();t+=String.format('{2}',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,5*parseInt(this._chartHeight)/100,this._chartTitle,this._chartTitleColor),t+=this.drawBackgroundHorizontalLinesForBarType(),t+=this.drawBackgroundVerticalLinesForBarType(),t+=this.drawBaseLinesForBarType(),t+=this.drawLegendArea(),t+=this.drawAxisValuesForBarType(),t+=this.drawBarsForBarType(),t+="",this._parentDiv.innerHTML=t},calculateIntervalForBarType:function(){this.startY=Math.round(parseInt(this._chartHeight)-20*parseInt(this._chartHeight)/100)+.5,this.endY=8*parseInt(this._chartHeight)/100+5,this.endX=parseInt(this._chartWidth)-10+.5,this.xMin>=0?this.startX=15*this._chartWidth/100+.5:this.startX=Math.round(parseInt(this._chartWidth)/2)+.5,this.xInterval=Math.round((this.endX-this.startX)/this._valueAxisLines)},calculateMinMaxValuesForBarType:function(t){var i,s,r;if(this._chartType==Sys.Extended.UI.BarChartType.Bar)for(var e=0;ethis.xMax&&(this.xMax=i),s=0?this.xMax:this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin),i=t/(this._valueAxisLines-1),i<1?this.roundedTickRange=i.toFixed(1):(s=Math.ceil(Math.log(i)/Math.log(10)-1),r=Math.pow(10,s),this.roundedTickRange=Math.ceil(i/r)*r)},drawBackgroundVerticalLinesForBarType:function(){for(var t="",i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX+this.xInterval*i,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);if(this.xMin<0)for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-this.xInterval*i,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);return t},drawBackgroundHorizontalLinesForBarType:function(){var t="";this.yInterval=Math.round((this.startY-this.endY)/this.arrYAxisLength);for(var i=0;i<=this.arrYAxisLength;i++)t+=String.format('',this.startX,this.startX+this.xInterval*this._valueAxisLines,this.startY-this.yInterval*i,this._valueAxisLineColor);if(this.xMin<0)for(var i=0;i<=this.arrYAxisLength;i++)t+=String.format('',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY-this.yInterval*i,this._valueAxisLineColor);return t},drawBaseLinesForBarType:function(){var t="";t+=String.format('',this.startX,this.startY,this.endY,this._baseLineColor),t+=String.format('',this.startX,this.startX-4,this.startY,this._baseLineColor),t+=String.format('',this.startX,this.endX,this.startY,this._baseLineColor);for(var i=0;i',this.startX,this.startX-4,this.startY-this.yInterval*i,this._baseLineColor);for(var i=0;i<=this._valueAxisLines;i++)t+=String.format('',this.startX+this.xInterval*i,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0){t+=String.format('',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY,this._baseLineColor);for(var i=1;i<=this._valueAxisLines;i++)t+=String.format('',this.startX-this.xInterval*i,this.startY,this.startY+4,this._baseLineColor)}return t},drawAxisValuesForBarType:function(){for(var t="",i=0,s=0;s{2}',this.startX-15*this.xInterval/100-i,Math.round(this.startY-this.yInterval*(s+1)+60*this.yInterval/100),this.arrYAxis[s]);for(var s=0;s<=this._valueAxisLines;s++)t+=String.format('{2}',this.startX+this.xInterval*s-(this.roundedTickRange*s).toString().length*this.charLength,this.startY+35*this.yInterval/100,this.roundedTickRange*s);if(this.xMin<0)for(var s=1;s<=this._valueAxisLines;s++)t+=String.format('-{2}',this.startX-this.xInterval*s-(this.roundedTickRange*s).toString().length*this.charLength,this.startY+35*this.yInterval/100,this.roundedTickRange*s);return t},drawBarsForBarType:function(){for(var t="",i=this._series.length,s=10*this.yInterval/100,r=this._chartType==Sys.Extended.UI.BarChartType.Bar?Math.round((80*this.yInterval/100-s*i)/i):Math.round(80*this.yInterval/100),e=0;e",this._chartType==Sys.Extended.UI.BarChartType.Bar)for(var a=0;a',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-15*this.yInterval/100-(s+r)*a,this.startY-this.yInterval*e-15*this.yInterval/100-(s+r)*a-r,a+1,this._series[a].BarColor):String.format('',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-12.5*this.yInterval/100-(s+r)*a,this.startY-this.yInterval*e-12.5*this.yInterval/100-(s+r)*a-r,a+1,this._series[a].BarColor),t+=this.xVal>0?String.format('{2}',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))+this.xVal.toString().length*this.charLength,this.startY-this.yInterval*e-20*this.yInterval/100-(s+r)*a-10*r/100,this.xVal):String.format('{2}',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))-(this.xVal.toString().length+1)*this.charLength-5,this.startY-this.yInterval*e-20*this.yInterval/100-(s+r)*a-10*r/100,this.xVal);else for(var h=this.startX,n=this.startX,a=0;a0?String.format('',h,h+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-10*this.yInterval/100,this.startY-this.yInterval*e-10*this.xInterval/100-r,a+1,this._series[a].BarColor):String.format('',n,n+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-10*this.yInterval/100,this.startY-this.yInterval*e-10*this.xInterval/100-r,a+1,this._series[a].BarColor):this.xVal>0?String.format('',h,h+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-7.55*this.yInterval/100,this.startY-this.yInterval*e-7.5*this.xInterval/100-r,a+1,this._series[a].BarColor):String.format('',n,n+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*e-7.55*this.yInterval/100,this.startY-this.yInterval*e-7.5*this.xInterval/100-r,a+1,this._series[a].BarColor),this.xVal>0?(t+=String.format('{2}',h+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*e-30*this.yInterval/100-10*r/100,this.xVal),h+=Math.round(this.xVal*(this.xInterval/this.roundedTickRange))):(t+=String.format('{2}',n+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*e-30*this.yInterval/100-10*r/100,this.xVal),n+=Math.round(this.xVal*(this.xInterval/this.roundedTickRange)));t+=""}return t},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(t){this._chartWidth=t},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(t){this._chartHeight=t},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(t){this._chartTitle=t},get_categoriesAxis:function(){return this._categoriesAxis},set_categoriesAxis:function(t){this._categoriesAxis=t},get_clientSeries:function(){return this._series},set_clientSeries:function(t){this._series=t},get_ClientSeries:function(){return Sys.Extended.Deprecated("get_ClientSeries","get_clientSeries"),this.get_clientSeries()},set_ClientSeries:function(t){Sys.Extended.Deprecated("set_ClientSeries","set_clientSeries"),this.set_clientSeries(t)},get_chartType:function(){return this._chartType},set_chartType:function(t){this._chartType=t},get_theme:function(){return this._theme},set_theme:function(t){this._theme=t},get_valueAxisLines:function(){return this._valueAxisLines},set_valueAxisLines:function(t){this._valueAxisLines=t},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(t){this._chartTitleColor=t},get_valueAxisLineColor:function(){return this._valueAxisLineColor},set_valueAxisLineColor:function(t){this._valueAxisLineColor=t},get_categoryAxisLineColor:function(){return this._categoryAxisLineColor},set_categoryAxisLineColor:function(t){this._categoryAxisLineColor=t},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(t){this._baseLineColor=t},get_container:function(){return this._container},set_container:function(t){this._container=t}},Sys.Extended.UI.BarChart.registerClass("Sys.Extended.UI.BarChart",Sys.Extended.UI.ControlBase),Sys.Extended.UI.BarChartType=function(){throw Error.invalidOperation()},Sys.Extended.UI.BarChartType.prototype={Column:0,Bar:1,StackedColumn:2,StackedBar:3},Sys.Extended.UI.BarChartType.registerEnum("Sys.Extended.UI.BarChartType",!1); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/BaseScripts.js b/Scripts/AjaxControlToolkit/Release/BaseScripts.js index b64596cb4..a5890433e 100644 --- a/Scripts/AjaxControlToolkit/Release/BaseScripts.js +++ b/Scripts/AjaxControlToolkit/Release/BaseScripts.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.BehaviorBase=function(n){Sys.Extended.UI.BehaviorBase.initializeBase(this,[n]);this._clientStateFieldID=null;this._pageRequestManager=null;this._partialUpdateBeginRequestHandler=null;this._partialUpdateEndRequestHandler=null};Sys.Extended.UI.BehaviorBase.prototype={initialize:function(){Sys.Extended.UI.BehaviorBase.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.BehaviorBase.callBaseMethod(this,"dispose");this._pageRequestManager&&(this._partialUpdateBeginRequestHandler&&(this._pageRequestManager.remove_beginRequest(this._partialUpdateBeginRequestHandler),this._partialUpdateBeginRequestHandler=null),this._partialUpdateEndRequestHandler&&(this._pageRequestManager.remove_endRequest(this._partialUpdateEndRequestHandler),this._partialUpdateEndRequestHandler=null),this._pageRequestManager=null)},get_ClientStateFieldID:function(){return this._clientStateFieldID},set_ClientStateFieldID:function(n){this._clientStateFieldID!=n&&(this._clientStateFieldID=n,this.raisePropertyChanged("ClientStateFieldID"))},get_ClientState:function(){if(this._clientStateFieldID){var n=document.getElementById(this._clientStateFieldID);if(n)return n.value}return null},set_ClientState:function(n){if(this._clientStateFieldID){var t=document.getElementById(this._clientStateFieldID);t&&(t.value=n)}},registerPartialUpdateEvents:function(){Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&(this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance(),this._pageRequestManager&&(this._partialUpdateBeginRequestHandler=Function.createDelegate(this,this._partialUpdateBeginRequest),this._pageRequestManager.add_beginRequest(this._partialUpdateBeginRequestHandler),this._partialUpdateEndRequestHandler=Function.createDelegate(this,this._partialUpdateEndRequest),this._pageRequestManager.add_endRequest(this._partialUpdateEndRequestHandler)))},_partialUpdateBeginRequest:function(){},_partialUpdateEndRequest:function(){}};Sys.Extended.UI.BehaviorBase.registerClass("Sys.Extended.UI.BehaviorBase",Sys.UI.Behavior);Sys.Extended.UI.DynamicPopulateBehaviorBase=function(n){Sys.Extended.UI.DynamicPopulateBehaviorBase.initializeBase(this,[n]);this._DynamicControlID=null;this._DynamicContextKey=null;this._DynamicServicePath=null;this._DynamicServiceMethod=null;this._cacheDynamicResults=!1;this._dynamicPopulateBehavior=null;this._populatingHandler=null;this._populatedHandler=null};Sys.Extended.UI.DynamicPopulateBehaviorBase.prototype={initialize:function(){Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(this,"initialize");this._populatingHandler=Function.createDelegate(this,this._onPopulating);this._populatedHandler=Function.createDelegate(this,this._onPopulated)},dispose:function(){this._populatedHandler&&(this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.remove_populated(this._populatedHandler),this._populatedHandler=null);this._populatingHandler&&(this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.remove_populating(this._populatingHandler),this._populatingHandler=null);this._dynamicPopulateBehavior&&(this._dynamicPopulateBehavior.dispose(),this._dynamicPopulateBehavior=null);Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(this,"dispose")},populate:function(n){this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.get_element()!=$get(this._DynamicControlID)&&(this._dynamicPopulateBehavior.dispose(),this._dynamicPopulateBehavior=null);!this._dynamicPopulateBehavior&&this._DynamicControlID&&this._DynamicServiceMethod&&(this._dynamicPopulateBehavior=$create(Sys.Extended.UI.DynamicPopulateBehavior,{id:this.get_id()+"_DynamicPopulateBehavior",ContextKey:this._DynamicContextKey,ServicePath:this._DynamicServicePath,ServiceMethod:this._DynamicServiceMethod,cacheDynamicResults:this._cacheDynamicResults},null,null,$get(this._DynamicControlID)),this._dynamicPopulateBehavior.add_populating(this._populatingHandler),this._dynamicPopulateBehavior.add_populated(this._populatedHandler));this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.populate(n?n:this._DynamicContextKey)},_onPopulating:function(n,t){this.raisePopulating(t)},_onPopulated:function(n,t){this.raisePopulated(t)},get_dynamicControlID:function(){return this._DynamicControlID},get_DynamicControlID:this.get_dynamicControlID,set_dynamicControlID:function(n){this._DynamicControlID!=n&&(this._DynamicControlID=n,this.raisePropertyChanged("dynamicControlID"),this.raisePropertyChanged("DynamicControlID"))},set_DynamicControlID:this.set_dynamicControlID,get_dynamicContextKey:function(){return this._DynamicContextKey},get_DynamicContextKey:this.get_dynamicContextKey,set_dynamicContextKey:function(n){this._DynamicContextKey!=n&&(this._DynamicContextKey=n,this.raisePropertyChanged("dynamicContextKey"),this.raisePropertyChanged("DynamicContextKey"))},set_DynamicContextKey:this.set_dynamicContextKey,get_dynamicServicePath:function(){return this._DynamicServicePath},get_DynamicServicePath:this.get_dynamicServicePath,set_dynamicServicePath:function(n){this._DynamicServicePath!=n&&(this._DynamicServicePath=n,this.raisePropertyChanged("dynamicServicePath"),this.raisePropertyChanged("DynamicServicePath"))},set_DynamicServicePath:this.set_dynamicServicePath,get_dynamicServiceMethod:function(){return this._DynamicServiceMethod},get_DynamicServiceMethod:this.get_dynamicServiceMethod,set_dynamicServiceMethod:function(n){this._DynamicServiceMethod!=n&&(this._DynamicServiceMethod=n,this.raisePropertyChanged("dynamicServiceMethod"),this.raisePropertyChanged("DynamicServiceMethod"))},set_DynamicServiceMethod:this.set_dynamicServiceMethod,get_cacheDynamicResults:function(){return this._cacheDynamicResults},set_cacheDynamicResults:function(n){this._cacheDynamicResults!=n&&(this._cacheDynamicResults=n,this.raisePropertyChanged("cacheDynamicResults"))},add_populated:function(n){this.get_events().addHandler("populated",n)},remove_populated:function(n){this.get_events().removeHandler("populated",n)},raisePopulated:function(n){var t=this.get_events().getHandler("populated");t&&t(this,n)},add_populating:function(n){this.get_events().addHandler("populating",n)},remove_populating:function(n){this.get_events().removeHandler("populating",n)},raisePopulating:function(n){var t=this.get_events().getHandler("populating");t&&t(this,n)}};Sys.Extended.UI.DynamicPopulateBehaviorBase.registerClass("Sys.Extended.UI.DynamicPopulateBehaviorBase",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.ControlBase=function(n){Sys.Extended.UI.ControlBase.initializeBase(this,[n]);this._clientStateField=null;this._callbackTarget=null;this._onsubmit$delegate=Function.createDelegate(this,this._onsubmit);this._oncomplete$delegate=Function.createDelegate(this,this._oncomplete);this._onerror$delegate=Function.createDelegate(this,this._onerror)};Sys.Extended.UI.ControlBase.__doPostBack=function(n,t){if(!Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())for(var i=0;i{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);this.calculateIntervals();n=n+this.drawBackgroundHorizontalLines();n=n+this.drawBackgroundVerticalLines();n=n+this.drawBaseLines();n=n+this.drawAxisValues();this._parentDiv.innerHTML=this._parentDiv.innerHTML+n;this.drawBubbles(this,0)},intializeSVG:function(){var n=String.format('',this._theme);return n=String.format('',this._chartWidth,this._chartHeight,parseFloat(this._chartWidth)*.99,parseFloat(this._chartHeight)*.99),n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('',this._chartWidth,parseInt(this._chartHeight)-5),n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawBubbles:function(n,t){n._parentDiv.innerHTML=n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle><\/svg>',n.startX+Math.round(parseFloat(n._bubbleChartClientValues[t].X)/n.xRoundedIntervalLabelSize*n.xInterval),n.startY+Math.round(-1*parseFloat(n._bubbleChartClientValues[t].Y)/n.yRoundedIntervalLabelSize*n.yInterval),Math.round(parseFloat(n._bubbleChartClientValues[t].Data)/n.roundedBubbleSize*n._bubbleSizes),n._bubbleChartClientValues[t].BubbleColor,t+1,n._bubbleChartClientValues[t].Category,n._bubbleChartClientValues[t].Data,n._bubbleLabel);t++;tthis.dataMax&&(this.dataMax=parseFloat(this._bubbleChartClientValues[n].Data)),parseFloat(this._bubbleChartClientValues[n].Data)this.xMax&&(this.xMax=parseFloat(this._bubbleChartClientValues[n].X)),parseFloat(this._bubbleChartClientValues[n].Data)this.yMax&&(this.yMax=parseFloat(this._bubbleChartClientValues[n].Y)),parseFloat(this._bubbleChartClientValues[n].Y)Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin):this.yMax;n=i/(this._yAxisLines-1);n<1?this.yRoundedIntervalLabelSize=n.toFixed(1):(x=Math.ceil(Math.log(n)/Math.log(10)-1),pow10x=Math.pow(10,x),this.yRoundedIntervalLabelSize=Math.ceil(n/pow10x)*pow10x);r=this.xMin<0?this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin):this.xMax;t=r/(this._xAxisLines-1);n<1?this.xRoundedIntervalLabelSize=t.toFixed(1):(x=Math.ceil(Math.log(t)/Math.log(10)-1),pow10x=Math.pow(10,x),this.xRoundedIntervalLabelSize=Math.ceil(t/pow10x)*pow10x)},calculateIntervals:function(){this.endX=parseFloat(this._chartWidth)-parseFloat(this._chartWidth)/20;this.startX=this.xMin<0?Math.round(parseFloat(this._chartWidth)+parseFloat(this._chartWidth)/10)/2+.5:parseFloat(this._chartWidth)/5+.5;this.xInterval=this.xMin<0?(this.endX-this.startX)/this._xAxisLines:Math.round((this.endX-this.startX)/this._xAxisLines);this.startY=this.yMin<0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/20)/2+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/5)+.5;this.yInterval=this.startY/(this._yAxisLines+1);this.endY=this.startY-this.yInterval*this._yAxisLines},drawBackgroundHorizontalLines:function(){for(var t="",n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._xAxisLineColor);if(this.yMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._xAxisLineColor);if(this.xMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY-this.yInterval*n,this._xAxisLineColor);if(this.xMin<0&&this.yMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY+this.yInterval*n,this._xAxisLineColor);return t},drawBackgroundVerticalLines:function(){for(var t="",n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.endY,this._yAxisLineColor);if(this.xMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.endY,this._yAxisLineColor);if(this.yMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);if(this.xMin<0&&this.yMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);return t},drawBaseLines:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.endY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startX+4,this._baseLineColor),t=0;t<=this._yAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0){for(t=1;t<=this._yAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);n=n+String.format('<\/path>',this.startX-this.xInterval*this._xAxisLines,this.startY,this.startY+4,this._baseLineColor);n=n+String.format('<\/path>',this.startX,this.startY,this.startY+this.yInterval*this._yAxisLines,this._baseLineColor)}for(t=0;t<=this._xAxisLines;t++)n=n+String.format('<\/path>',this.startX+this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0){for(t=1;t<=this._xAxisLines;t++)n=n+String.format('<\/path>',this.startX-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);n=n+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY,this._baseLineColor)}return n},drawAxisValues:function(){for(var r,t="",i=0,n=1;n<=this._yAxisLines;n++)i=(this.yRoundedIntervalLabelSize*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-10,this.startY-this.yInterval*n+4,this.yRoundedIntervalLabelSize*10*n/10);if(this.yMin<0)for(n=1;n<=this._yAxisLines;n++)i=(this.yRoundedIntervalLabelSize*10*n/10).toString().length*5.5+5.5,t=t+String.format('-{2}<\/text>',this.startX-i-10,this.startY+this.yInterval*n+4,this.yRoundedIntervalLabelSize*10*n/10);for(n=1;n<=this._xAxisLines;n++)i=(this.xRoundedIntervalLabelSize*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',Math.round(this.startX+this.xInterval*n-i/2),this.startY+Math.round(this.yInterval/4)+5,this.xRoundedIntervalLabelSize*10*n/10);if(this.xMin<0)for(n=1;n<=this._xAxisLines;n++)i=(this.xRoundedIntervalLabelSize*10*n/10).toString().length*5.5+5.5,t=t+String.format('-{2}<\/text>',Math.round(this.startX-this.xInterval*n-i/2),this.startY+Math.round(this.yInterval/4)+5,this.xRoundedIntervalLabelSize*10*n/10);return r=this.yMin<0?Math.round(this.startY+this.yInterval*this._yAxisLines-(this.startY-this.yInterval*this._yAxisLines))/2:Math.round((this.startY-this.endY)/2),t=t+String.format('{2}<\/text>',Math.round(parseFloat(this._chartWidth)/20),r+this._yAxisLabel.toString().length*this.charLength,this._yAxisLabel,this._axislabelFontColor),t+String.format('{2}<\/text>',Math.round(parseInt(this._chartWidth)/2-this._xAxisLabel.toString().length*this.charLength/2),Math.round(parseInt(this._chartHeight)*90/100+5),this._xAxisLabel,this._axislabelFontColor)},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(n){this._chartWidth=n},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(n){this._chartHeight=n},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(n){this._chartTitle=n},get_bubbleChartClientValues:function(){return this._bubbleChartClientValues},set_bubbleChartClientValues:function(n){this._bubbleChartClientValues=n},get_BubbleChartClientValues:function(){return Sys.Extended.Deprecated("get_BubbleChartClientValues","get_bubbleChartClientValues"),this.get_bubbleChartClientValues()},set_BubbleChartClientValues:function(n){Sys.Extended.Deprecated("set_BubbleChartClientValues","set_bubbleChartClientValues");this.set_bubbleChartClientValues(n)},get_theme:function(){return this._theme},set_theme:function(n){this._theme=n},get_yAxisLines:function(){return this._yAxisLines},set_yAxisLines:function(n){this._yAxisLines=n},get_xAxisLines:function(){return this._xAxisLines},set_xAxisLines:function(n){this._xAxisLines=n},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(n){this._chartTitleColor=n},get_yAxisLineColor:function(){return this._yAxisLineColor},set_yAxisLineColor:function(n){this._yAxisLineColor=n},get_xAxisLineColor:function(){return this._xAxisLineColor},set_xAxisLineColor:function(n){this._xAxisLineColor=n},get_bubbleSizes:function(){return this._bubbleSizes},set_bubbleSizes:function(n){this._bubbleSizes=n},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(n){this._baseLineColor=n},get_tooltipBackgroundColor:function(){return this.tooltipBackgroundColor},set_tooltipBackgroundColor:function(n){this.tooltipBackgroundColor=n},get_tooltipFontColor:function(){return this._tooltipFontColor},set_tooltipFontColor:function(n){this._tooltipFontColor=n},get_tooltipBorderColor:function(){return this._tooltipBorderColor},set_tooltipBorderColor:function(n){this._tooltipBorderColor=n},get_xAxisLabel:function(){return this._xAxisLabel},set_xAxisLabel:function(n){this._xAxisLabel=n},get_yAxisLabel:function(){return this._yAxisLabel},set_yAxisLabel:function(n){this._yAxisLabel=n},get_bubbleLabel:function(){return this._bubbleLabel},set_bubbleLabel:function(n){this._bubbleLabel=n},get_axislabelFontColor:function(){return this._axislabelFontColor},set_axislabelFontColor:function(n){this._axislabelFontColor=n}};Sys.Extended.UI.BubbleChart.registerClass("Sys.Extended.UI.BubbleChart",Sys.Extended.UI.ControlBase); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.BubbleChart=function(t){Sys.Extended.UI.BubbleChart.initializeBase(this,[t]);var i=this.get_id();i=i.replace("_ctl00",""),this._parentDiv=document.getElementById(i+"__ParentDiv"),this._chartWidth="300",this._chartHeight="200",this._chartTitle="",this._bubbleChartClientValues=null,this._theme="BubbleChart",this._yAxisLines=6,this._xAxisLines=6,this._bubbleSizes=5,this._chartTitleColor="",this._yAxisLineColor="",this._xAxisLineColor="",this._baseLineColor="",this._tooltipBackgroundColor="#FFFFFF",this._tooltipFontColor="#0E426C",this._tooltipBorderColor="#B85B3E",this._xAxisLabel="",this._yAxisLabel="",this._bubbleLabel="",this._axislabelFontColor="#000000",this.yMax=0,this.yMin=0,this.xMax=0,this.xMin=0,this.dataMax=0,this.dataMin=0,this.yRoundedIntervalLabelSize=0,this.xRoundedIntervalLabelSize=0,this.roundedBubbleSize=0,this.startX=0,this.startY=0,this.endX=0,this.endY=0,this.xInterval=0,this.yInterval=0,this.charLength=3.5,this._divTooltip=null},Sys.Extended.UI.BubbleChart.prototype={initialize:function(){if(Sys.Extended.UI.BubbleChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Current version of browser does not support SVG.";0==this._yAxisLines&&(this._yAxisLines=6),0==this._xAxisLines&&(this._xAxisLines=6),0==this._bubbleSizes&&(this._bubbleSizes=5),this.generateTooltipDiv(),this.generateBubbleChart()},dispose:function(){Sys.Extended.UI.BubbleChart.callBaseMethod(this,"dispose")},generateTooltipDiv:function(){this._divTooltip=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_tooltipDiv",style:{position:"absolute",backgroundColor:this._tooltipBackgroundColor,borderStyle:"solid",borderWidth:"5px",borderColor:this._tooltipBorderColor,left:"0px",top:"0px",color:this._tooltipFontColor,visibility:"hidden",zIndex:Sys.Extended.UI.zIndex.BubbleChartTooltip,padding:"10px"}}},this._parentDiv)},generateBubbleChart:function(){this.calculateMinMaxValues(),this.calculateBubbleSize(),this.calculateAxisValues();var t=this.intializeSVG();t+=String.format('{2}',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,5*parseInt(this._chartHeight)/100,this._chartTitle,this._chartTitleColor),this.calculateIntervals(),t+=this.drawBackgroundHorizontalLines(),t+=this.drawBackgroundVerticalLines(),t+=this.drawBaseLines(),t+=this.drawAxisValues(),this._parentDiv.innerHTML=this._parentDiv.innerHTML+t,this.drawBubbles(this,0)},intializeSVG:function(){var t=String.format('',this._theme);return t=String.format('',this._chartWidth,this._chartHeight,.99*parseFloat(this._chartWidth),.99*parseFloat(this._chartHeight)),t+=String.format('',1*parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-1*parseInt(this._chartHeight)/10),t+=String.format('',this._chartWidth,parseInt(this._chartHeight)-5),t+=String.format('',1*parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-1*parseInt(this._chartHeight)/10)},drawBubbles:function(t,i){t._parentDiv.innerHTML=t._parentDiv.innerHTML.replace("","")+String.format('',t.startX+Math.round(parseFloat(t._bubbleChartClientValues[i].X)/t.xRoundedIntervalLabelSize*t.xInterval),t.startY+Math.round(-1*parseFloat(t._bubbleChartClientValues[i].Y)/t.yRoundedIntervalLabelSize*t.yInterval),Math.round(parseFloat(t._bubbleChartClientValues[i].Data)/t.roundedBubbleSize*t._bubbleSizes),t._bubbleChartClientValues[i].BubbleColor,i+1,t._bubbleChartClientValues[i].Category,t._bubbleChartClientValues[i].Data,t._bubbleLabel),i++,ithis.dataMax&&(this.dataMax=parseFloat(this._bubbleChartClientValues[t].Data)),parseFloat(this._bubbleChartClientValues[t].Data)this.xMax&&(this.xMax=parseFloat(this._bubbleChartClientValues[t].X)),parseFloat(this._bubbleChartClientValues[t].Data)this.yMax&&(this.yMax=parseFloat(this._bubbleChartClientValues[t].Y)),parseFloat(this._bubbleChartClientValues[t].Y)Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin):this.yMax,i=t/(this._yAxisLines-1),i<1?this.yRoundedIntervalLabelSize=i.toFixed(1):(x=Math.ceil(Math.log(i)/Math.log(10)-1),pow10x=Math.pow(10,x),this.yRoundedIntervalLabelSize=Math.ceil(i/pow10x)*pow10x);var s,e;s=this.xMin<0?this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin):this.xMax,e=s/(this._xAxisLines-1),i<1?this.xRoundedIntervalLabelSize=e.toFixed(1):(x=Math.ceil(Math.log(e)/Math.log(10)-1),pow10x=Math.pow(10,x),this.xRoundedIntervalLabelSize=Math.ceil(e/pow10x)*pow10x)},calculateIntervals:function(){this.endX=parseFloat(this._chartWidth)-5*parseFloat(this._chartWidth)/100,this.xMin<0?this.startX=Math.round(parseFloat(this._chartWidth)+10*parseFloat(this._chartWidth)/100)/2+.5:this.startX=20*parseFloat(this._chartWidth)/100+.5,this.xMin<0?this.xInterval=(this.endX-this.startX)/this._xAxisLines:this.xInterval=Math.round((this.endX-this.startX)/this._xAxisLines),this.yMin<0?this.startY=Math.round(parseInt(this._chartHeight)-5*parseInt(this._chartHeight)/100)/2+.5:this.startY=Math.round(parseInt(this._chartHeight)-20*parseInt(this._chartHeight)/100)+.5,this.yInterval=this.startY/(this._yAxisLines+1),this.endY=this.startY-this.yInterval*this._yAxisLines},drawBackgroundHorizontalLines:function(){for(var t="",i=1;i<=this._yAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY-this.yInterval*i,this._xAxisLineColor);if(this.yMin<0)for(var i=1;i<=this._yAxisLines;i++)t+=String.format('',this.startX,this.endX,this.startY+this.yInterval*i,this._xAxisLineColor);if(this.xMin<0)for(var i=1;i<=this._yAxisLines;i++)t+=String.format('',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY-this.yInterval*i,this._xAxisLineColor);if(this.xMin<0&&this.yMin<0)for(var i=1;i<=this._yAxisLines;i++)t+=String.format('',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY+this.yInterval*i,this._xAxisLineColor);return t},drawBackgroundVerticalLines:function(){for(var t="",i=1;i<=this._xAxisLines;i++)t+=String.format('',this.startX+this.xInterval*i,this.startY,this.endY,this._yAxisLineColor);if(this.xMin<0)for(var i=1;i<=this._xAxisLines;i++)t+=String.format('',this.startX-this.xInterval*i,this.startY,this.endY,this._yAxisLineColor);if(this.yMin<0)for(var i=1;i<=this._xAxisLines;i++)t+=String.format('',this.startX+this.xInterval*i,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);if(this.xMin<0&&this.yMin<0)for(var i=1;i<=this._xAxisLines;i++)t+=String.format('',this.startX-this.xInterval*i,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);return t},drawBaseLines:function(){var t="";t+=String.format('',this.startX,this.startY,this.endX,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.startY+4,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.endY,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.startX+4,this._baseLineColor);for(var i=0;i<=this._yAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY-this.yInterval*i,this._baseLineColor);if(this.yMin<0){for(var i=1;i<=this._yAxisLines;i++)t+=String.format('',this.startX-4,this.startX,this.startY+this.yInterval*i,this._baseLineColor);t+=String.format('',this.startX-this.xInterval*this._xAxisLines,this.startY,this.startY+4,this._baseLineColor),t+=String.format('',this.startX,this.startY,this.startY+this.yInterval*this._yAxisLines,this._baseLineColor)}for(var i=0;i<=this._xAxisLines;i++)t+=String.format('',this.startX+this.xInterval*i,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0){for(var i=1;i<=this._xAxisLines;i++)t+=String.format('',this.startX-this.xInterval*i,this.startY,this.startY+4,this._baseLineColor);t+=String.format('',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY,this._baseLineColor)}return t},drawAxisValues:function(){for(var t="",i=0,s=1;s<=this._yAxisLines;s++)i=5.5*(10*this.yRoundedIntervalLabelSize*s/10).toString().length,t+=String.format('{2}',this.startX-i-10,this.startY-this.yInterval*s+4,10*this.yRoundedIntervalLabelSize*s/10);if(this.yMin<0)for(var s=1;s<=this._yAxisLines;s++)i=5.5*(10*this.yRoundedIntervalLabelSize*s/10).toString().length+5.5,t+=String.format('-{2}',this.startX-i-10,this.startY+this.yInterval*s+4,10*this.yRoundedIntervalLabelSize*s/10);for(var s=1;s<=this._xAxisLines;s++)i=5.5*(10*this.xRoundedIntervalLabelSize*s/10).toString().length,t+=String.format('{2}',Math.round(this.startX+this.xInterval*s-i/2),this.startY+Math.round(25*this.yInterval/100)+5,10*this.xRoundedIntervalLabelSize*s/10);if(this.xMin<0)for(var s=1;s<=this._xAxisLines;s++)i=5.5*(10*this.xRoundedIntervalLabelSize*s/10).toString().length+5.5,t+=String.format('-{2}',Math.round(this.startX-this.xInterval*s-i/2),this.startY+Math.round(25*this.yInterval/100)+5,10*this.xRoundedIntervalLabelSize*s/10);var e;return e=this.yMin<0?Math.round(this.startY+this.yInterval*this._yAxisLines-(this.startY-this.yInterval*this._yAxisLines))/2:Math.round((this.startY-this.endY)/2),t+=String.format('{2}',Math.round(5*parseFloat(this._chartWidth)/100),e+this._yAxisLabel.toString().length*this.charLength,this._yAxisLabel,this._axislabelFontColor),t+=String.format('{2}',Math.round(parseInt(this._chartWidth)/2-this._xAxisLabel.toString().length*this.charLength/2),Math.round(90*parseInt(this._chartHeight)/100+5),this._xAxisLabel,this._axislabelFontColor)},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(t){this._chartWidth=t},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(t){this._chartHeight=t},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(t){this._chartTitle=t},get_bubbleChartClientValues:function(){return this._bubbleChartClientValues},set_bubbleChartClientValues:function(t){this._bubbleChartClientValues=t},get_BubbleChartClientValues:function(){return Sys.Extended.Deprecated("get_BubbleChartClientValues","get_bubbleChartClientValues"),this.get_bubbleChartClientValues()},set_BubbleChartClientValues:function(t){Sys.Extended.Deprecated("set_BubbleChartClientValues","set_bubbleChartClientValues"),this.set_bubbleChartClientValues(t)},get_theme:function(){return this._theme},set_theme:function(t){this._theme=t},get_yAxisLines:function(){return this._yAxisLines},set_yAxisLines:function(t){this._yAxisLines=t},get_xAxisLines:function(){return this._xAxisLines},set_xAxisLines:function(t){this._xAxisLines=t},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(t){this._chartTitleColor=t},get_yAxisLineColor:function(){return this._yAxisLineColor},set_yAxisLineColor:function(t){this._yAxisLineColor=t},get_xAxisLineColor:function(){return this._xAxisLineColor},set_xAxisLineColor:function(t){this._xAxisLineColor=t},get_bubbleSizes:function(){return this._bubbleSizes},set_bubbleSizes:function(t){this._bubbleSizes=t},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(t){this._baseLineColor=t},get_tooltipBackgroundColor:function(){return this.tooltipBackgroundColor},set_tooltipBackgroundColor:function(t){this.tooltipBackgroundColor=t},get_tooltipFontColor:function(){return this._tooltipFontColor},set_tooltipFontColor:function(t){this._tooltipFontColor=t},get_tooltipBorderColor:function(){return this._tooltipBorderColor},set_tooltipBorderColor:function(t){this._tooltipBorderColor=t},get_xAxisLabel:function(){return this._xAxisLabel},set_xAxisLabel:function(t){this._xAxisLabel=t},get_yAxisLabel:function(){return this._yAxisLabel},set_yAxisLabel:function(t){this._yAxisLabel=t},get_bubbleLabel:function(){return this._bubbleLabel},set_bubbleLabel:function(t){this._bubbleLabel=t},get_axislabelFontColor:function(){return this._axislabelFontColor},set_axislabelFontColor:function(t){this._axislabelFontColor=t}},Sys.Extended.UI.BubbleChart.registerClass("Sys.Extended.UI.BubbleChart",Sys.Extended.UI.ControlBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/Calendar.js b/Scripts/AjaxControlToolkit/Release/Calendar.js index 6cf3dedba..04315d000 100644 --- a/Scripts/AjaxControlToolkit/Release/Calendar.js +++ b/Scripts/AjaxControlToolkit/Release/Calendar.js @@ -1 +1,2 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.CalendarBehavior=function(n){Sys.Extended.UI.CalendarBehavior.initializeBase(this,[n]);this._textbox=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(n);this._format="d";this._todaysDateFormat="MMMM d, yyyy";this._daysModeTitleFormat="MMMM, yyyy";this._cssClass="ajax__calendar";this._enabled=!0;this._animated=!0;this._buttonID=null;this._layoutRequested=0;this._layoutSuspended=!1;this._button=null;this._popupMouseDown=!1;this._selectedDate=null;this._startDate=null;this._endDate=null;this._visibleDate=null;this._todaysDate=null;this._firstDayOfWeek=Sys.Extended.UI.FirstDayOfWeek.Default;this._firstPopUp=!0;this._container=null;this._popupDiv=null;this._header=null;this._prevArrow=null;this._nextArrow=null;this._title=null;this._body=null;this._today=null;this._days=null;this._daysTable=null;this._daysTableHeader=null;this._daysTableHeaderRow=null;this._daysBody=null;this._months=null;this._monthsTable=null;this._monthsBody=null;this._years=null;this._yearsTable=null;this._yearsBody=null;this._popupPosition=Sys.Extended.UI.CalendarPosition.BottomLeft;this._defaultView=Sys.Extended.UI.CalendarDefaultView.Days;this._popupBehavior=null;this._modeChangeAnimation=null;this._modeChangeMoveTopOrLeftAnimation=null;this._modeChangeMoveBottomOrRightAnimation=null;this._mode="days";this._selectedDateChanging=!1;this._isOpen=!1;this._isAnimating=!1;this._clearTime=!1;this._width=170;this._height=139;this._modes={days:null,months:null,years:null};this._modeOrder={days:0,months:1,years:2};this._blur=new Sys.Extended.UI.DeferredOperation(1,this,this.blur);this._button$delegates={click:Function.createDelegate(this,this._button_onclick),keypress:Function.createDelegate(this,this._button_onkeypress),blur:Function.createDelegate(this,this._button_onblur)};this._element$delegates={change:Function.createDelegate(this,this._element_onchange),keypress:Function.createDelegate(this,this._element_onkeypress),click:Function.createDelegate(this,this._element_onclick),focus:Function.createDelegate(this,this._element_onfocus),blur:Function.createDelegate(this,this._element_onblur)};this._popup$delegates={mousedown:Function.createDelegate(this,this._popup_onmousedown),mouseup:Function.createDelegate(this,this._popup_onmouseup),drag:Function.createDelegate(this,this._popup_onevent),dragstart:Function.createDelegate(this,this._popup_onevent)};this._cell$delegates={mouseover:Function.createDelegate(this,this._cell_onmouseover),mouseout:Function.createDelegate(this,this._cell_onmouseout),click:Function.createDelegate(this,this._cell_onclick)}};Sys.Extended.UI.CalendarBehavior.prototype={get_clearTime:function(){return this._clearTime},set_clearTime:function(n){this._clearTime!=n&&(this._clearTime=n,this.raisePropertyChanged("clearTime"))},get_animated:function(){return this._animated},set_animated:function(n){this._animated!=n&&(this._animated=n,this.raisePropertyChanged("animated"))},get_enabled:function(){return this._enabled},set_enabled:function(n){this._enabled!=n&&(this._enabled=n,this.raisePropertyChanged("enabled"))},get_button:function(){return this._button},set_button:function(n){this._button!=n&&(this._button&&this.get_isInitialized()&&$common.removeHandlers(this._button,this._button$delegates),this._button=n,this._button&&this.get_isInitialized()&&$addHandlers(this._button,this._button$delegates),this.raisePropertyChanged("button"))},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(n){this._popupPosition!=n&&(this._popupPosition=n,this.raisePropertyChanged("popupPosition"))},get_startDate:function(){return this._startDate},set_startDate:function(n){this._startDate!=n&&(this._startDate=new Date(n),this.raisePropertyChanged("startDate"))},get_endDate:function(){return this._endDate},set_endDate:function(n){this._endDate!=n&&(this._endDate=new Date(n),this.raisePropertyChanged("endDate"))},get_format:function(){return this._format},set_format:function(n){this._format!=n&&(this._format=n,this.raisePropertyChanged("format"))},get_todaysDateFormat:function(){return this._todaysDateFormat},set_todaysDateFormat:function(n){this._todaysDateFormat!=n&&(this._todaysDateFormat=n,this.raisePropertyChanged("todaysDateFormat"))},get_daysModeTitleFormat:function(){return this._daysModeTitleFormat},set_daysModeTitleFormat:function(n){this._daysModeTitleFormat!=n&&(this._daysModeTitleFormat=n,this.raisePropertyChanged("daysModeTitleFormat"))},get_selectedDate:function(){if(this._selectedDate==null){var n=this._textbox.get_Value();n&&(n=this._parseTextValue(n),n&&(this._selectedDate=n))}return this._selectedDate},set_selectedDate:function(n){var i,t;n&&String.isInstanceOfType(n)&&n.length!=0&&(n=Date.fromISO(n));this._selectedDate!=n&&(this._selectedDate=n,this._selectedDateChanging=!0,i="",n&&(i=this._convertToLocal(n).localeFormat(this._format),this._clearTime||(t=this._textbox.get_Value(),t&&(t=this._parseTextValue(t)),t&&n!=t.getDateOnly()&&(n.setUTCHours(t.getUTCHours()),n.setUTCMinutes(t.getUTCMinutes()),n.setUTCSeconds(t.getUTCSeconds()),n.setUTCMilliseconds(t.getUTCMilliseconds()),i=this._convertToLocal(n).localeFormat(this._format)))),i!=this._textbox.get_Value()&&(this._textbox.set_Value(i),this._fireChanged()),this._selectedDateChanging=!1,this.invalidate(),this.raisePropertyChanged("selectedDate"))},get_defaultView:function(){return this._defaultView},set_defaultView:function(n){this._defaultView!=n&&(this._defaultView=n,this.raisePropertyChanged("defaultView"))},get_visibleDate:function(){return this._visibleDate},set_visibleDate:function(n){n&&String.isInstanceOfType(n)&&n.length!=0&&(n=new Date(n));this._visibleDate!=n&&(this._switchMonth(n,!this._isOpen),this.raisePropertyChanged("visibleDate"))},get_isOpen:function(){return this._isOpen},get_todaysDate:function(){return this._todaysDate!=null?this._todaysDate:new Date},set_todaysDate:function(n){this._todaysDate!=n&&(this._todaysDate=n,this.invalidate(),this.raisePropertyChanged("todaysDate"))},get_firstDayOfWeek:function(){return this._firstDayOfWeek},set_firstDayOfWeek:function(n){this._firstDayOfWeek!=n&&(this._firstDayOfWeek=n,this.invalidate(),this.raisePropertyChanged("firstDayOfWeek"))},get_cssClass:function(){return this._cssClass},set_cssClass:function(n){this._cssClass!=n&&(this._cssClass&&this.get_isInitialized()&&Sys.UI.DomElement.removeCssClass(this._container,this._cssClass),this._cssClass=n,this._cssClass&&this.get_isInitialized()&&Sys.UI.DomElement.addCssClass(this._container,this._cssClass),this.raisePropertyChanged("cssClass"))},get_todayButton:function(){return this._today},get_dayCell:function(n,t){return this._daysBody?this._daysBody.rows[n].cells[t].firstChild:null},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raise_showing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},raiseShowing:function(n){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)");this.raise_showing(n)},add_shown:function(n){this.get_events().addHandler("shown",n)},remove_shown:function(n){this.get_events().removeHandler("shown",n)},raise_shown:function(){var n=this.get_events().getHandler("shown");n&&n(this,Sys.EventArgs.Empty)},raiseShown:function(){Sys.Extended.Deprecated("raiseShown","raise_shown");this.raise_shown()},add_hiding:function(n){this.get_events().addHandler("hiding",n)},remove_hiding:function(n){this.get_events().removeHandler("hiding",n)},raise_hiding:function(n){var t=this.get_events().getHandler("hiding");t&&t(this,n)},raiseHiding:function(n){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)");this.raise_hiding(n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raise_hidden:function(){var n=this.get_events().getHandler("hidden");n&&n(this,Sys.EventArgs.Empty)},raiseHidden:function(){Sys.Extended.Deprecated("raiseHidden","raise_hidden");this.raise_hidden()},add_dateSelectionChanged:function(n){this.get_events().addHandler("dateSelectionChanged",n)},remove_dateSelectionChanged:function(n){this.get_events().removeHandler("dateSelectionChanged",n)},raise_dateSelectionChanged:function(){var n=this.get_events().getHandler("dateSelectionChanged");n&&n(this,Sys.EventArgs.Empty)},raiseDateSelectionChanged:function(){Sys.Extended.Deprecated("raiseDateSelectionChanged","raise_dateSelectionChanged");this.raise_dateSelectionChanged()},initialize:function(){var t,n;Sys.Extended.UI.CalendarBehavior.callBaseMethod(this,"initialize");t=this.get_element();$addHandlers(t,this._element$delegates);this._button&&$addHandlers(this._button,this._button$delegates);this._modeChangeMoveTopOrLeftAnimation=new Sys.Extended.UI.Animation.LengthAnimation(null,null,null,"style",null,0,0,"px");this._modeChangeMoveBottomOrRightAnimation=new Sys.Extended.UI.Animation.LengthAnimation(null,null,null,"style",null,0,0,"px");this._modeChangeAnimation=new Sys.Extended.UI.Animation.ParallelAnimation(null,.25,null,[this._modeChangeMoveTopOrLeftAnimation,this._modeChangeMoveBottomOrRightAnimation]);n=this.get_selectedDate();n&&this.set_selectedDate(n)},dispose:function(){var n,i,t,r;if(this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null),this._modes=null,this._modeOrder=null,this._modeChangeMoveTopOrLeftAnimation&&(this._modeChangeMoveTopOrLeftAnimation.dispose(),this._modeChangeMoveTopOrLeftAnimation=null),this._modeChangeMoveBottomOrRightAnimation&&(this._modeChangeMoveBottomOrRightAnimation.dispose(),this._modeChangeMoveBottomOrRightAnimation=null),this._modeChangeAnimation&&(this._modeChangeAnimation.dispose(),this._modeChangeAnimation=null),this._container&&(this._container.parentNode&&this._container.parentNode.removeChild(this._container),this._container=null),this._popupDiv&&($common.removeHandlers(this._popupDiv,this._popup$delegates),this._popupDiv=null),this._prevArrow&&($common.removeHandlers(this._prevArrow,this._cell$delegates),this._prevArrow=null),this._nextArrow&&($common.removeHandlers(this._nextArrow,this._cell$delegates),this._nextArrow=null),this._title&&($common.removeHandlers(this._title,this._cell$delegates),this._title=null),this._today&&($common.removeHandlers(this._today,this._cell$delegates),this._today=null),this._button&&($common.removeHandlers(this._button,this._button$delegates),this._button=null),this._daysBody){for(n=0;n0?this._layoutRequested=!0:this._performLayout()},_buildCalendar:function(){var t=this.get_element(),n=this.get_id();this._container=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_container"},cssClasses:[this._cssClass],visible:!1},t.parentNode);this._popupDiv=$common.createElementFromTemplate({nodeName:"div",events:this._popup$delegates,properties:{id:n+"_popupDiv"},cssClasses:["ajax__calendar_container"]},this._container)},_buildHeader:function(){var n=this.get_id(),t,i,r;this._header=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_header"},cssClasses:["ajax__calendar_header"]},this._popupDiv);t=$common.createElementFromTemplate({nodeName:"div"},this._header);this._prevArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_prevArrow",mode:"prev"},events:this._cell$delegates,cssClasses:["ajax__calendar_prev"]},t);i=$common.createElementFromTemplate({nodeName:"div"},this._header);this._nextArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_nextArrow",mode:"next"},events:this._cell$delegates,cssClasses:["ajax__calendar_next"]},i);r=$common.createElementFromTemplate({nodeName:"div"},this._header);this._title=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_title",mode:"title"},events:this._cell$delegates,cssClasses:["ajax__calendar_title"]},r)},_buildBody:function(){this._body=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_body"},cssClasses:["ajax__calendar_body"]},this._popupDiv);this._buildDays();this._buildMonths();this._buildYears()},_buildFooter:function(){var n=$common.createElementFromTemplate({nodeName:"div"},this._popupDiv);this._today=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_today",mode:"today"},events:this._cell$delegates,cssClasses:["ajax__calendar_footer","ajax__calendar_today"]},n)},_buildDays:function(){var e=Sys.CultureInfo.CurrentCulture.dateTimeFormat,t=this.get_id(),n,f,r,i,u;for(this._days=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_days"},cssClasses:["ajax__calendar_days"]},this._body),this._modes.days=this._days,this._daysTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:t+"_daysTable",style:{margin:"auto"}}},this._days),this._daysTableHeader=$common.createElementFromTemplate({nodeName:"thead",properties:{id:t+"_daysTableHeader"}},this._daysTable),this._daysTableHeaderRow=$common.createElementFromTemplate({nodeName:"tr",properties:{id:t+"_daysTableHeaderRow"}},this._daysTableHeader),n=0;n<7;n++)i=$common.createElementFromTemplate({nodeName:"td"},this._daysTableHeaderRow),u=$common.createElementFromTemplate({nodeName:"div",cssClasses:["ajax__calendar_dayname"]},i);for(this._daysBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:t+"_daysBody"}},this._daysTable),n=0;n<6;n++)for(f=$common.createElementFromTemplate({nodeName:"tr"},this._daysBody),r=0;r<7;r++)i=$common.createElementFromTemplate({nodeName:"td"},f),u=$common.createElementFromTemplate({nodeName:"div",properties:{mode:"day",id:t+"_day_"+n+"_"+r,innerHTML:" "},events:this._cell$delegates,cssClasses:["ajax__calendar_day"]},i)},_buildMonths:function(){var f=Sys.CultureInfo.CurrentCulture.dateTimeFormat,i=this.get_id(),n,r,t,u,e;for(this._months=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_months"},cssClasses:["ajax__calendar_months"],visible:!1},this._body),this._modes.months=this._months,this._monthsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:i+"_monthsTable",style:{margin:"auto"}}},this._months),this._monthsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:i+"_monthsBody"}},this._monthsTable),n=0;n<3;n++)for(r=$common.createElementFromTemplate({nodeName:"tr"},this._monthsBody),t=0;t<4;t++)u=$common.createElementFromTemplate({nodeName:"td"},r),e=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_month_"+n+"_"+t,mode:"month",month:n*4+t,innerHTML:"
"+f.AbbreviatedMonthNames[n*4+t]},events:this._cell$delegates,cssClasses:["ajax__calendar_month"]},u)},_buildYears:function(){var i=this.get_id(),n,r,t,u,f;for(this._years=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_years"},cssClasses:["ajax__calendar_years"],visible:!1},this._body),this._modes.years=this._years,this._yearsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:i+"_yearsTable",style:{margin:"auto"}}},this._years),this._yearsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:i+"_yearsBody"}},this._yearsTable),n=0;n<3;n++)for(r=$common.createElementFromTemplate({nodeName:"tr"},this._yearsBody),t=0;t<4;t++)u=$common.createElementFromTemplate({nodeName:"td"},r),f=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_year_"+n+"_"+t,mode:"year",year:n*4+t-1},events:this._cell$delegates,cssClasses:["ajax__calendar_year"]},u)},_isInDateRange:function(n,t){switch(t){case"d":if(this._startDate&&this._getDateOnly(n)this._getDateOnly(this._endDate))return!1;break;case"M":if(this._startDate&&this._getMonthOnly(n)this._getMonthOnly(this._endDate))return!1;break;case"y":if(this._startDate&&n.getUTCFullYear()this._endDate.getUTCFullYear())return!1;break;case"yy":var i=n.getUTCFullYear(),r=n.getUTCFullYear()+9;return this._startDate&&this._endDate?ithis._endDate.getUTCFullYear()?!0:!1:!this._startDate&&!this._endDate?!0:this._startDate&&r>this._startDate.getUTCFullYear()?!0:this._endDate&&ithis._getDateOnly(this._startDate))return!1;break;case"M":if(this._startDate&&this._getMonthOnly(n)>this._getMonthOnly(this._startDate))return!1;break;case"y":if(this._startDate&&n.getUTCFullYear()>this._startDate.getUTCFullYear())return!1;break;case"yy":var i=n.getUTCFullYear(),r=n.getUTCFullYear();if(this._startDate&&n.getUTCFullYear()>this._startDate.getUTCFullYear())return!1}return!0},_isInPrevDateRange:function(n,t){switch(t){case"d":if(this._endDate&&this._getDateOnly(n)this._endDate.getUTCFullYear())return!0}return!0},_getDateOnly:function(n){return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},_getMonthOnly:function(n){return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1))},_convertToUTC:function(n){return n&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))),n},_convertToLocal:function(n){var t=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds());return t.getDate()!=n.getUTCDate()&&(t=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()+1,n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())),t},_performLayout:function(){var p=this.get_element(),v,s,h,u,c,y,l,t,e,r,o,f,n;if(p&&this.get_isInitialized()&&this._isOpen){var w=Sys.CultureInfo.CurrentCulture.dateTimeFormat,b=this.get_selectedDate(),i=this._getEffectiveVisibleDate(),a=this.get_todaysDate();switch(this._mode){case"days":for(v=this._getFirstDayOfWeek(),s=i.getUTCDay()-v,s<=0&&(s+=7),h=new Date(i),h.setUTCDate(h.getUTCDate()-s),u=new Date(h),r=0;r<7;r++)t=this._daysTableHeaderRow.cells[r].firstChild,t.firstChild&&t.removeChild(t.firstChild),t.appendChild(document.createTextNode(w.ShortestDayNames[(r+v)%7]));for(c=0;c<6;c++)for(y=this._daysBody.rows[c],l=0;l<7;l++)t=y.cells[l].firstChild,t.firstChild&&t.removeChild(t.firstChild),t.appendChild(document.createTextNode(u.getUTCDate())),t.title=this._convertToLocal(u).localeFormat("D"),t.date=u,$common.removeCssClasses(t.parentNode,["ajax__calendar_other","ajax__calendar_active","ajax__calendar_today"]),this._isInDateRange(u,"d")?($common.removeCssClasses(t.parentNode,["ajax__calendar_invalid","ajax__calendar_other","ajax__calendar_active",""]),Sys.UI.DomElement.addCssClass(t.parentNode,this._getCssClass(t.date,"d"))):($common.removeCssClasses(t.parentNode,["ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(t.parentNode,"ajax__calendar_invalid")),u=new Date(u),u.setUTCDate(u.getUTCDate()+1);this._prevArrow.date=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()-1,1));this._nextArrow.date=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+1,1));this._title.firstChild&&this._title.removeChild(this._title.firstChild);this._title.appendChild(document.createTextNode(this._convertToLocal(i).localeFormat(this.get_daysModeTitleFormat())));this._title.date=i;break;case"months":for(r=0;rn?($common.setLocation(r,{x:-162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(r),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(r,{x:162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(r),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width)),this._visibleDate=n,this.invalidate(),f=Function.createDelegate(this,function(){this._body.removeChild(i);i=null;this._isAnimating=!1;this._modeChangeAnimation.remove_ended(f)}),this._modeChangeAnimation.add_ended(f),this._modeChangeAnimation.play()):(this._visibleDate=n,this.invalidate()))},_switchNextRange:function(n,t){this._isAnimating||(!n||this._canSwitchNextRange(n))&&this._switchRange(n,t)},_switchPrevRange:function(n,t){this._isAnimating||(!n||this._canSwitchPrevRange(n))&&this._switchRange(n,t)},_switchRange:function(n,t){var u=this._getEffectiveVisibleDate(),r,i,f;n&&n.getFullYear()==u.getFullYear()&&n.getMonth()==u.getMonth()&&(t=!0);this._animated&&!t?(this._isAnimating=!0,r=this._modes[this._mode],i=r.cloneNode(!0),this._body.appendChild(i),u>n?($common.setLocation(r,{x:-162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(r),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(r,{x:162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(r),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width)),this._visibleDate=n,this.invalidate(),f=Function.createDelegate(this,function(){this._body.removeChild(i);i=null;this._isAnimating=!1;this._modeChangeAnimation.remove_ended(f)}),this._modeChangeAnimation.add_ended(f),this._modeChangeAnimation.play()):(this._visibleDate=n,this.invalidate())},_canSwitchMonth:function(n){switch(this._mode){case"days":if(!this._isInDateRange(n,"M"))return!1;break;case"months":if(!this._isInDateRange(n,"y"))return!1;break;case"years":if(!this._isInDateRange(n,"yy"))return!1}return!0},_canSwitchNextRange:function(n){switch(this._mode){case"days":return this._isInNextDateRange(n,"M");case"months":return this._isInNextDateRange(n,"y");case"years":return this._isInNextDateRange(n,"yy")}},_canSwitchPrevRange:function(n){switch(this._mode){case"days":return this._isInPrevDateRange(n,"M");case"months":return this._isInPrevDateRange(n,"y");case"years":return this._isInPrevDateRange(n,"yy")}},_switchMode:function(n,t){var u;if(!this._isAnimating&&this._mode!=n){var f=this._modeOrder[this._mode]0?this._layoutRequested=!0:this._performLayout()},_buildCalendar:function(){var e=this.get_element(),t=this.get_id();this._container=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_container"},cssClasses:[this._cssClass],visible:!1},e.parentNode),this._popupDiv=$common.createElementFromTemplate({nodeName:"div",events:this._popup$delegates,properties:{id:t+"_popupDiv"},cssClasses:["ajax__calendar_container"]},this._container)},_buildHeader:function(){var e=this.get_id();this._header=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_header"},cssClasses:["ajax__calendar_header"]},this._popupDiv);var t=$common.createElementFromTemplate({nodeName:"div"},this._header);this._prevArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_prevArrow",mode:"prev"},events:this._cell$delegates,cssClasses:["ajax__calendar_prev"]},t);var s=$common.createElementFromTemplate({nodeName:"div"},this._header);this._nextArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_nextArrow",mode:"next"},events:this._cell$delegates,cssClasses:["ajax__calendar_next"]},s);var i=$common.createElementFromTemplate({nodeName:"div"},this._header);this._title=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_title",mode:"title"},events:this._cell$delegates,cssClasses:["ajax__calendar_title"]},i)},_buildBody:function(){this._body=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_body"},cssClasses:["ajax__calendar_body"]},this._popupDiv),this._buildDays(),this._buildMonths(),this._buildYears()},_buildFooter:function(){var e=$common.createElementFromTemplate({nodeName:"div"},this._popupDiv);this._today=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_today",mode:"today"},events:this._cell$delegates,cssClasses:["ajax__calendar_footer","ajax__calendar_today"]},e)},_buildDays:function(){var e=(Sys.CultureInfo.CurrentCulture.dateTimeFormat,this.get_id());this._days=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_days"},cssClasses:["ajax__calendar_days"]},this._body),this._modes.days=this._days,this._daysTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:e+"_daysTable",style:{margin:"auto"}}},this._days),this._daysTableHeader=$common.createElementFromTemplate({nodeName:"thead",properties:{id:e+"_daysTableHeader"}},this._daysTable),this._daysTableHeaderRow=$common.createElementFromTemplate({nodeName:"tr",properties:{id:e+"_daysTableHeaderRow"}},this._daysTableHeader);for(var t=0;t<7;t++){var s=$common.createElementFromTemplate({nodeName:"td"},this._daysTableHeaderRow);$common.createElementFromTemplate({nodeName:"div",cssClasses:["ajax__calendar_dayname"]},s)}this._daysBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:e+"_daysBody"}},this._daysTable);for(var t=0;t<6;t++)for(var i=$common.createElementFromTemplate({nodeName:"tr"},this._daysBody),a=0;a<7;a++){var s=$common.createElementFromTemplate({nodeName:"td"},i);$common.createElementFromTemplate({nodeName:"div",properties:{mode:"day",id:e+"_day_"+t+"_"+a,innerHTML:" "},events:this._cell$delegates,cssClasses:["ajax__calendar_day"]},s)}},_buildMonths:function(){var e=Sys.CultureInfo.CurrentCulture.dateTimeFormat,t=this.get_id();this._months=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_months"},cssClasses:["ajax__calendar_months"],visible:!1},this._body),this._modes.months=this._months,this._monthsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:t+"_monthsTable",style:{margin:"auto"}}},this._months),this._monthsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:t+"_monthsBody"}},this._monthsTable);for(var s=0;s<3;s++)for(var i=$common.createElementFromTemplate({nodeName:"tr"},this._monthsBody),a=0;a<4;a++){var n=$common.createElementFromTemplate({nodeName:"td"},i);$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_month_"+s+"_"+a,mode:"month",month:4*s+a,innerHTML:"
"+e.AbbreviatedMonthNames[4*s+a]},events:this._cell$delegates,cssClasses:["ajax__calendar_month"]},n)}},_buildYears:function(){var e=this.get_id();this._years=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_years"},cssClasses:["ajax__calendar_years"],visible:!1},this._body),this._modes.years=this._years,this._yearsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:e+"_yearsTable",style:{margin:"auto"}}},this._years),this._yearsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:e+"_yearsBody"}},this._yearsTable);for(var t=0;t<3;t++)for(var s=$common.createElementFromTemplate({nodeName:"tr"},this._yearsBody),i=0;i<4;i++){var a=$common.createElementFromTemplate({nodeName:"td"},s);$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_year_"+t+"_"+i,mode:"year",year:4*t+i-1},events:this._cell$delegates,cssClasses:["ajax__calendar_year"]},a)}},_isInDateRange:function(e,t,s){switch(t){case"d":if(this._startDate&&this._getDateOnly(e)this._getDateOnly(this._endDate))return!1;break;case"M":if(this._startDate&&this._getMonthOnly(e)this._getMonthOnly(this._endDate))return!1;break;case"y":if(this._startDate&&e.getFullYear()this._endDate.getFullYear())return!1;break;case"yy":if(this._startDate&&this._endDate)return this._isInYearsDateRange(e,s);if(!this._startDate&&!this._endDate)return!0;var i=this._getRangeStartYear(e);if(this._endDate&&ithis._startDate.getFullYear())}return!0},_isInYearsDateRange:function(e,t){var s=this._getRangeStartYear(e),i=this._getRangeEndYear(e);switch(t){case Sys.Extended.UI.CalendarSwitchViewMode.PreviousRange:return i>this._startDate.getFullYear();case Sys.Extended.UI.CalendarSwitchViewMode.NextRange:return sthis._startDate.getFullYear()&&ie?($common.setLocation(s,{x:-162,y:0}),$common.setVisible(s,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(s),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(s,{x:162,y:0}),$common.setVisible(s,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(s),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width)),this._visibleDate=e,this.invalidate();var a=Function.createDelegate(this,function(){this._body.removeChild(i),i=null,this._isAnimating=!1,this._modeChangeAnimation.remove_ended(a)});this._modeChangeAnimation.add_ended(a),this._modeChangeAnimation.play()},_canSwitchMonth:function(e,t){switch(this._mode){case"days":if(!this._isInDateRange(e,"M",t))return!1;break;case"months":if(!this._isInDateRange(e,"y",t))return!1;break;case"years":if(!this._isInDateRange(e,"yy",t))return!1}return!0},_switchMode:function(e,t){if(!this._isAnimating&&this._mode!=e){var s=this._modeOrder[this._mode]this._endDate?e=this._endDate:this._startDate&&e1:n>0},_setOptions:function(n,t,i){var r,s,h,o,f,e,u,v;if(this.get_isInitialized()){if(r=this.get_element(),this._clearItems(),h="",i&&this._loadingText?(s=this._loadingText,this._selectedValue&&(h=this._selectedValue)):!i&&n&&0==n.length&&null!=this._emptyText?(s=this._emptyText,this._emptyValue&&(h=this._emptyValue)):this._promptText&&(s=this._promptText,this._promptValue&&(h=this._promptValue)),s&&(o=new Option(s,h),r.options[r.options.length]=o),f=null,e=-1,n){for(u=0;u0)?t||f||i||this.set_selectedValue("",""):this.set_selectedValue(r.options[0].value,r.options[0].text):(r.options[e].selected=!0,this.set_selectedValue(r.options[e].value,r.options[e].text)),r.childDropDown&&!i)for(u=0;u1:e>0},_setOptions:function(e,t,n){if(this.get_isInitialized()){var s=this.get_element();this._clearItems();var i,a="";n&&this._loadingText?(i=this._loadingText,this._selectedValue&&(a=this._selectedValue)):!n&&e&&0==e.length&&null!=this._emptyText?(i=this._emptyText,this._emptyValue&&(a=this._emptyValue)):this._promptText&&(i=this._promptText,this._promptValue&&(a=this._promptValue));var r;i&&(r=new Option(i,a),s.options[s.options.length]=r);var o=null,l=-1;if(e){for(var h=0;h0)?t||o||n||this.set_selectedValue("",""):this.set_selectedValue(s.options[0].value,s.options[0].text):(s.options[l].selected=!0,this.set_selectedValue(s.options[l].value,s.options[l].text)),s.childDropDown&&!n)for(var h=0;h1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},_createColorCell:function(e,t){var o="#"+e,i=$common.createElementFromTemplate({nodeName:"td"},t);$common.createElementFromTemplate({nodeName:"div",properties:{color:e,title:o,style:{backgroundColor:o},innerHTML:" "},events:this._cell$delegates},i)},_ensureColorPicker:function(){if(!this._container){var e=this.get_element();this._buildColorPicker(),this._buildColors(),this._popupBehavior=new $create(Sys.Extended.UI.PopupBehavior,{parentElement:e},{},{},this._popupDiv),this._popupBehavior.set_positioningMode(this._popupPosition)}},_showSample:function(e){if(this._sample){var t="";e&&(t="#"+e),this._sample.style.backgroundColor=t}},_restoreSample:function(){this._showSample(this._selectedColor)},_validate:function(e){return e&&Sys.Extended.UI.ColorPickerBehavior._colorRegex.test(e)},_element_onfocus:function(e){this._enabled&&(this._button||(this.show(),this._popupMouseDown=!1))},_element_onblur:function(e){this._enabled&&(this._button||this._doBlur())},_element_onchange:function(e){if(!this._selectedColorChanging){var t=this._textbox.get_Value();(this._validate(t)||""===t)&&(this._selectedColor=t,this._restoreSample())}},_element_onkeypress:function(e){this._enabled&&(this._button||e.charCode!==Sys.UI.Key.esc||(e.stopPropagation(),e.preventDefault(),this.hide()))},_element_onclick:function(e){this._enabled&&(this._button||(this.show(),this._popupMouseDown=!1))},_popup_onevent:function(e){e.stopPropagation(),e.preventDefault()},_popup_onmousedown:function(e){this._popupMouseDown=!0},_popup_onmouseup:function(e){Sys.Browser.agent===Sys.Browser.Opera&&this._blur.get_isPending()&&this._blur.cancel(),this._popupMouseDown=!1,this._focus()},_cell_onmouseover:function(e){e.stopPropagation();var t=e.target;this._showSample(t.color)},_cell_onmouseout:function(e){e.stopPropagation(),this._restoreSample()},_cell_onclick:function(e){if(e.stopPropagation(),e.preventDefault(),this._enabled){var t=e.target;this.set_selectedColor(t.color),this._blur.post(!0),this.raise_colorSelectionChanged()}},_button_onclick:function(e){e.preventDefault(),e.stopPropagation(),this._enabled&&(this._isOpen?this.hide():this.show(),this._focus(),this._popupMouseDown=!1)},_button_onblur:function(e){this._enabled&&(this._popupMouseDown||this.hide(),this._popupMouseDown=!1)},_button_onkeypress:function(e){this._enabled&&(e.charCode===Sys.UI.Key.esc&&(e.stopPropagation(),e.preventDefault(),this.hide()),this._popupMouseDown=!1)}},Sys.Extended.UI.ColorPickerBehavior.registerClass("Sys.Extended.UI.ColorPickerBehavior",Sys.Extended.UI.BehaviorBase),Sys.Extended.UI.ColorPickerPaletteStyle={Default:0,Continuous:1}; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/ComboBox.js b/Scripts/AjaxControlToolkit/Release/ComboBox.js index 1a04c6cfd..ce779a0bb 100644 --- a/Scripts/AjaxControlToolkit/Release/ComboBox.js +++ b/Scripts/AjaxControlToolkit/Release/ComboBox.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.ComboBoxAutoCompleteMode=function(){};Sys.Extended.UI.ComboBoxAutoCompleteMode.prototype={None:0,Append:1,Suggest:2,SuggestAppend:3};Sys.Extended.UI.ComboBoxAutoCompleteMode.registerEnum("Sys.Extended.UI.ComboBoxAutoCompleteMode",!1);Sys.Extended.UI.ComboBoxStyle=function(){};Sys.Extended.UI.ComboBoxStyle.prototype={DropDownList:0,DropDown:1,Simple:2};Sys.Extended.UI.ComboBoxStyle.registerEnum("Sys.Extended.UI.ComboBoxStyle",!1);Sys.Extended.UI.ComboBoxTextSelectionStrategy=function(){};Sys.Extended.UI.ComboBoxTextSelectionStrategy.prototype={Unknown:0,Microsoft:1,W3C:2};Sys.Extended.UI.ComboBoxTextSelectionStrategy.registerEnum("Sys.Extended.UI.ComboBoxTextSelectionStrategy",!1);Sys.Extended.UI.ComboBox=function(n){Sys.Extended.UI.ComboBox.initializeBase(this,[n]);this._comboTableControl=null;this._textBoxControl=null;this._optionListControl=null;this._buttonControl=null;this._hiddenFieldControl=null;this._autoPostBack=!1;this._autoCompleteMode=null;this._dropDownStyle=null;this._caseSensitive=!1;this._originalSelectedIndex=null;this._listItemHoverCssClass=null;this._popupBehavior=null;this._supressFocusHide=!0;this._doingPostBack=!1;this._textSelectionStrategy=null;this._highlightSuggestedItem=!1;this._highlightedIndex=null;this._optionListItems=null;this._optionListItemHeight=null;this._optionListHeight=null;this._optionListWidth=null;this.clearDelegates()};Sys.Extended.UI.ComboBox.prototype={initialize:function(){Sys.Extended.UI.ComboBox.callBaseMethod(this,"initialize");ComboBox_Elements[ComboBox_Elements.length]=this;var n=this._findHiddenParent(this.get_comboTableControl()),t,i;n!=null&&(t=n.style.display,i=n.style.visibility,n.style.visibility="visible",n.style.display="block");this.createDelegates();this.initializeTextBox();this.initializeButton();this.initializeOptionList();this.addHandlers();n!=null&&(n.style.visibility=i,n.style.display=t)},dispose:function(){this._popupBehavior&&(this._popupBehavior.remove_showing(this._popupShowingHandler),this._popupBehavior.remove_shown(this._popupShownHandler),this._popupBehavior.remove_hiding(this._popupHidingHandler),this._popupBehavior.dispose(),this._popupBehavior=null);this.clearHandlers();this.clearDelegates();Sys.Extended.UI.ComboBox.callBaseMethod(this,"dispose")},_findHiddenParent:function(n){var t=n.parentElement;return t==null||t.style.visibility=="hidden"||t.style.display=="none"?t:this._findHiddenParent(t)},createDelegates:function(){this._listMouseOverHandler=Function.createDelegate(this,this._onListMouseOver);this._listMouseOutHandler=Function.createDelegate(this,this._onListMouseOut);this._listMouseDownHandler=Function.createDelegate(this,this._onListMouseDown);this._listClickHandler=Function.createDelegate(this,this._onListClick);this._listDragHandler=Function.createDelegate(this,this._onListDrag);this._listSelectStartHandler=Function.createDelegate(this,this._onListSelectStart);this._listMouseWheelHandler=Function.createDelegate(this,this._onListMouseWheel);this._textBoxClickHandler=Function.createDelegate(this,this._onTextBoxClick);this._textBoxFocusHandler=Function.createDelegate(this,this._onTextBoxFocus);this._textBoxBlurHandler=Function.createDelegate(this,this._onTextBoxBlur);this._textBoxKeyPressHandler=Function.createDelegate(this,this._onTextBoxKeyPress);this._textBoxKeyDownHandler=Function.createDelegate(this,this._onTextBoxKeyDown);this._buttonClickHandler=Function.createDelegate(this,this._onButtonClick);this._buttonBlurHandler=Function.createDelegate(this,this._onButtonBlur);this._buttonKeyDownHandler=Function.createDelegate(this,this._onButtonKeyDown);this._buttonKeyPressHandler=Function.createDelegate(this,this._onButtonKeyPress);this._documentClickHandler=Function.createDelegate(this,this._onDocumentClick);this._documentMouseWheelHandler=Function.createDelegate(this,this._onDocumentMouseWheel);this._popupShowingHandler=Function.createDelegate(this,this._popupShowing);this._popupShownHandler=Function.createDelegate(this,this._popupShown);this._popupHidingHandler=Function.createDelegate(this,this._popupHiding)},clearDelegates:function(){this._listMouseOverHandler=null;this._listMouseOutHandler=null;this._listMouseDownHandler=null;this._listClickHandler=null;this._listDragHandler=null;this._listSelectStartHandler=null;this._listMouseWheelHandler=null;this._textBoxClickHandler=null;this._textBoxFocusHandler=null;this._textBoxBlurHandler=null;this._textBoxKeyPressHandler=null;this._textBoxKeyDownHandler=null;this._buttonClickHandler=null;this._buttonBlurHandler=null;this._buttonKeyDownHandler=null;this._buttonKeyPressHandler=null;this._documentClickHandler=null;this._documentMouseWheelHandler=null;this._popupShowingHandler=null;this._popupShownHandler=null;this._popupHidingHandler=null},addHandlers:function(){var n=this.get_optionListControl();$addHandlers(n,{mouseover:this._listMouseOverHandler,mouseout:this._listMouseOutHandler,mousedown:this._listMouseDownHandler,click:this._listClickHandler,drag:this._listDragHandler,selectstart:this._listSelectStartHandler},this);$addHandlers(this.get_textBoxControl(),{click:this._textBoxClickHandler,focus:this._textBoxFocusHandler,blur:this._textBoxBlurHandler,keypress:this._textBoxKeyPressHandler},this);(Sys.Browser.agent==Sys.Browser.InternetExplorer||Sys.Browser.agent===Sys.Browser.Safari||Sys.Browser.agent===Sys.Browser.WebKit)&&$addHandler(this.get_textBoxControl(),"keydown",this._textBoxKeyDownHandler);$addHandlers(this.get_buttonControl(),{click:this._buttonClickHandler,blur:this._buttonBlurHandler,keydown:this._buttonKeyDownHandler,keypress:this._buttonKeyPressHandler},this);$addHandler(document,"click",this._documentClickHandler);typeof n.onmousewheel=="undefined"?($addHandler(n,"DOMMouseScroll",this._listMouseWheelHandler),$addHandler(document,"DOMMouseScroll",this._documentMouseWheelHandler)):($addHandler(n,"mousewheel",this._listMouseWheelHandler),$addHandler(document,"mousewheel",this._documentMouseWheelHandler))},clearHandlers:function(){$clearHandlers(this.get_optionListControl());$clearHandlers(this.get_textBoxControl());$clearHandlers(this.get_buttonControl());$clearHandlers(document)},initializeTextBox:function(){var n=this.get_textBoxControl().style;n.margin==""&&(n.margin="0px")},initializeButton:function(){var n=this.get_buttonControl().style;n.height==""&&this.get_textBoxControl().offsetHeight>=0&&(n.height=this.get_textBoxControl().offsetHeight+"px");n.width==""&&(n.width=n.height);n.padding==""&&(n.padding="0px");this._buttonControl.style.visibility="visible"},initializeOptionList:function(){var h,t,c,r,o,u,l,f,i,e;if(this.get_optionListControl()==null&&(h=document.createElement("ul"),this.get_element().appendChild(h),this.set_optionListControl(h)),t=this.get_optionListControl(),Sys.Browser.agent===Sys.Browser.Safari||Sys.Browser.agent===Sys.Browser.WebKit){for(c=t.parentNode,c!=null&&c.removeChild(t),r=this.get_element().parentNode;typeof r!=typeof document.forms[0];)r=r.parentNode;o=document.createElement("div");o.className=this.get_element().className;o.appendChild(t);r.appendChild(o)}for(u=t.style,u.display="block",u.zIndex=Sys.Extended.UI.zIndex.ComboBoxList,this._optionListItems=[],l=t.childNodes,f=0;f=0;)n=n.substring(0,s).trim()+" "+n.substring(s+1,n.length).trim(),s=n.indexOf("\r");for(e=n.indexOf("\n");e>=0;)n=n.substring(0,e).trim()+" "+n.substring(e+1,n.length).trim(),e=n.indexOf("\n");n=n.replace(/\&/g,"&").replace(/\"/g,'"').replace(/\>/g,">").replace(/\</g,"<");a.text=n.trim();Array.add(this._optionListItems,a);this.initializeOptionListItem(i)}u.width=this._getOptionListBounds().width+"px";u.width="0px";this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"_PopupBehavior",parentElement:this.get_textBoxControl(),positioningMode:Sys.Extended.UI.PositioningMode.BottomLeft},null,null,t);this._popupBehavior.add_showing(this._popupShowingHandler);this._popupBehavior.add_shown(this._popupShownHandler);this._popupBehavior.add_hiding(this._popupHidingHandler);this.get_selectedIndex()>=0?(this._highlightListItem(this.get_selectedIndex()),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):this.get_textBoxControl().value="";this._popupShowing();t.style.display="none"},initializeOptionListItem:function(n){n._textIsEmpty=!1;n.innerHTML.length<1&&(n.innerHTML=" ",n._textIsEmpty=!0)},_popupShowing:function(){var t=this._getWindowBounds(),i=Sys.UI.DomElement.getBounds(this.get_comboTableControl()),c=this._getOptionListBounds(),a=t.y+t.height/2,v=i.y+i.height,y=t.x+t.width/2,p=i.x+i.width/2,r=i.y-t.y,s="Top",h,n,e,f,u,o;v<=a&&(s="Bottom",r=t.height-i.height-r);h=this._getOptionListItemHeight();r=r>=c.height?c.height:h*(Math.floor(r/h)-2);var w=r/h,l=w=f&&(n=f)):n>=f&&(n=f);e=="Right"&&n=1?1:-1:n.rawEvent.wheelDelta>1?-1:1,this.get_optionListControl().scrollTop+=this._getOptionListItemHeight()*t,n.stopPropagation(),n.preventDefault(),!1},_onListMouseOver:function(n){var r=this.get_optionListControl(),u,i,t;if(n.target!==r)for(u=n.target,i=r.childNodes,t=0;t=0?(this.set_selectedIndex(this._highlightedIndex),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):n==-3&&i.length>0&&this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.DropDownList?this.set_selectedIndex(-2):this._optionListItems.length<1&&(i==""||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList)?(this.set_selectedIndex(-1),this.get_textBoxControl().value=""):this._optionListItems.length>=0&&n==-3&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList?(this.set_selectedIndex(0),this.get_textBoxControl().value=this._optionListItems[0].text):n>=0&&(this.set_selectedIndex(n),this.get_textBoxControl().value=this._optionListItems[n].text);this._popupBehavior.hide();this.get_autoPostBack()!=!0||this._doingPostBack||this._originalSelectedIndex==this.get_selectedIndex()||(this._doingPostBack=!0,__doPostBack(this.get_element().id,""))},_onTextBoxKeyDown:function(n){var i=this._handleEnterKey(n),t;return i!=null?i:(this._handleArrowKey(n),t=this._handleErasureKeys(n),t!=null)?t:!0},_onTextBoxKeyPress:function(n){var c=this._handleEnterKey(n),e,o,f,h;if(c!=null)return c;if(e=this._handleArrowKey(n),e!=null)return e;if(o=this._handleNonCharacterKey(n),o!=null)return o;if(this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.Simple||this._popupBehavior._visible||this._popupBehavior.show(),this.get_selectedIndex()==-1&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList&&this._optionListItems.length==0)return this.get_textBoxControl().value="",n.preventDefault(),n.stopPropagation(),!1;var t=this._getTextSelectionInfo(this.get_textBoxControl(),n),r=t.selectionStart,u=t.selectionEnd,l=t.selectionPrefix+t.typedCharacter+t.selectionText.substring(1)+t.selectionSuffix,i=t.selectionPrefix+t.typedCharacter,s=this.get_textBoxControl().maxLength;return(s<0&&(s=Number.MAX_VALUE),i.length>s&&(i=i.substring(0,this.get_textBoxControl().maxLength)),f=this._suggestIndex(l,i),(this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.Suggest||this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend)&&(this._highlightSuggestedItem=!0,this._popupBehavior._visible||this._popupBehavior.show()),f>=0?this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.Append||this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend?(this.get_textBoxControl().value=this._optionListItems[f].text,r=t.selectionStart+1,u=this.get_textBoxControl().value.length):(this.get_textBoxControl().value=this._optionListItems[f].text.substring(0,i.length),r=this.get_textBoxControl().value.length,u=this.get_textBoxControl().value.length):(this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDown)&&(this.get_textBoxControl().value=i,r=i.length,u=i.length),h=this._handleErasureKeys(n),h!=null)?h:(this._ensureHighlightedIndex(),this._ensureScrollTop(),this._setTextSelectionRange(this.get_textBoxControl(),r,u),n.preventDefault(),n.stopPropagation(),!1)},_onDocumentClick:function(){this._popupBehavior._visible&&this._popupBehavior.hide()},_onDocumentMouseWheel:function(){return this._popupBehavior&&this._popupBehavior.hide(),!0},_handleTextBoxFocus:function(n){!this._supressFocusHide&&this._popupBehavior._visible&&(this._popupBehavior.hide(),this._supressFocusHide=!0,this.get_autoPostBack()&&!this._doingPostBack&&this._originalSelectedIndex!=this.get_selectedIndex()&&(this._doingPostBack=!0,__doPostBack(this.get_element().id,"")));this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple&&this._popupBehavior.show();this._setTextSelectionRange(this.get_textBoxControl(),0,this.get_textBoxControl().value.length);n!=null&&(n.preventDefault(),n.stopPropagation())},_highlightListItem:function(n,t){if(n==undefined||n<0){this._highlightedIndex!=undefined&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1);return}var r=this.get_optionListControl().childNodes,i=r[n];if(t==!0){if(this._highlightedIndex==n)return;n>=0&&(this.get_listItemHoverCssClass()==undefined||this.get_listItemHoverCssClass()==""?(i.style.backgroundColor="Highlight",i.style.color="HighlightText"):i.className=this.get_listItemHoverCssClass);this._highlightedIndex!=null&&this._highlightedIndex!=n&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1);this._highlightedIndex=n}else this.get_listItemHoverCssClass()==undefined||this.get_listItemHoverCssClass()==""?(i.style.backgroundColor="",i.style.color=""):i.className="",n==this._highlightedIndex&&(this._highlightedIndex=-1)},_suggestIndex:function(n,t){for(var e,o,f=-1,i=!1,u=!1,r=0;r0||i==1&&this._highlightedIndex=0&&(this.get_textBoxControl().value=this._optionListItems[this._highlightedIndex].text,this.set_selectedIndex(this._highlightedIndex),__doPostBack(this.get_element().id,"")),this._popupBehavior.hide(),n.preventDefault(),n.stopPropagation(),!1):this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDown||this._highlightedIndex==this.get_selectedIndex()?!0:(n.preventDefault(),n.stopPropagation(),!1):null},_handleErasureKeys:function(n){var o=this._getKeyboardCode(n),s=o==Sys.UI.Key.backspace,f=o==Sys.UI.Key.del,t,r,u,i,e,h;return(typeof event=="undefined"&&n.type=="keypress"&&(f=n.rawEvent.keyCode==46),s||f)?(t=this._getTextSelectionInfo(this.get_textBoxControl(),n),t.selectionStart0?(e=1,t.selectionPrefix.charCodeAt(t.selectionPrefix.length-1)==8&&(e=2),i=t.selectionPrefix.substr(0,t.selectionPrefix.length-e),i+=t.selectionSuffix,this.get_textBoxControl().value=i,r=t.selectionStart-1,u=t.selectionStart-1):f&&t.selectionStart=0&&(h=this._isExactMatch(this._optionListItems[this._highlightedIndex].text,this.get_textBoxControl().value),h||this._highlightListItem(this._highlightedIndex,!1)),n.preventDefault(),n.stopPropagation(),!1):null},_handleNonCharacterKey:function(n){var t=this._getKeyboardCode(n),r=t==Sys.UI.Key.backspace,i=t==Sys.UI.Key.del;return(n.type=="keypress"&&(i=n.rawEvent.code==46),r||i)?null:this._isNonCharacterKey(n)?t==Sys.UI.Key.esc?(this._popupBehavior.hide(),this.get_textBoxControl().blur(),n.preventDefault(),n.stopPropagation(),!1):!0:null},_isNonCharacterKey:function(n){var t=this._getKeyboardCode(n);if(t==Sys.UI.Key.enter||t==Sys.UI.Key.esc)return!0;if(Sys.Browser.agent==Sys.Browser.Safari&&Sys.Browser.version<500){if(t==8||t==9||t==63272||t==63276||t==63277||t==63275||t==63273||t==63234||t==63235||t>=63236&&t<=63243||t==63248)return!0}else if(Sys.Browser.agent==Sys.Browser.WebKit){if(t==8||t==9||t==19||t==33||t==34||t==35||t==36||t==37||t==39||t==45||t==46||t==91||t==92||t==93||t==113||t==115||t==118||t==119||t==120||t==122||t==145)return!0}else if(Sys.Browser.agent!=Sys.Browser.InternetExplorer)if(t==8||t==9||t==33||t==34||t==35||t==36||t==37||t==39||t==45||t==46){if(!n.shiftKey)return!0}else{if(t==145||t==19)return!0;if(Sys.Browser.agent==Sys.Browser.Opera){if(t==0||t==16||t==17)return!0}else if(Sys.Browser.agent==Sys.Browser.Firefox&&(t==91||t==92||t==93))return!0}else if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&t==46)return!0;return!1},_ensureScrollTop:function(){var n=this.get_optionListControl();if(this._highlightedIndex>=0){var t=this._getOptionListItemHeight(),i=t*this._highlightedIndex,r=n.scrollTop+n.clientHeight;(i<=n.scrollTop||i>=r)&&(n.scrollTop=this._highlightedIndex*t)}},_ensureSelectedIndex:function(){var n=this.get_hiddenFieldControl().value;n==""&&(n=this._optionListItems.length>0?0:-1,this.get_hiddenFieldControl().value=n.toString());this._originalSelectedIndex==null&&(this._originalSelectedIndex=parseInt(n))},_ensureHighlightedIndex:function(){var i=this.get_textBoxControl().value,t,r,n,u;if(this._highlightedIndex==null||!(this._highlightedIndex>=0)||!this._isExactMatch(this._optionListItems[this._highlightedIndex].text,i)){for(t=-1,r=!1,n=0;n=i.selectionStart?i.textBoxValue.substring(0,i.selectionStart):"",i.selectionText=i.textBoxValue.length>=i.selectionEnd?i.textBoxValue.substring(i.selectionStart,i.selectionEnd):"",i.selectionSuffix=i.textBoxValue.length>=i.selectionEnd?i.textBoxValue.substring(i.selectionEnd,i.textBoxValue.length):"",i.selectionTextFirst=i.selectionText.substring(0,1),i},_getOptionListItemHeight:function(){var n=this.get_optionListControl();return this._optionListItemHeight==null&&n.scrollHeight>0?this._optionListItemHeight=Math.round(n.scrollHeight/this._optionListItems.length):Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7&&Math.round(n.scrollHeight/this._optionListItems.length)=0&&(t.height=this.get_textBoxControl().offsetHeight+"px"),""==t.width&&(t.width=t.height),""==t.padding&&(t.padding="0px")},initializeOptionList:function(){if(null==this.get_optionListControl()){var t=document.createElement("ul");this.get_element().appendChild(t),this.set_optionListControl(t)}var e=this.get_optionListControl();if(Sys.Browser.agent===Sys.Browser.Safari){var o=e.parentNode;null!=o&&o.removeChild(e);for(var i=this.get_element().parentNode;typeof i!=typeof document.forms[0];)i=i.parentNode;var n=document.createElement("div");n.className=this.get_element().className,n.appendChild(e),i.appendChild(n)}var s=e.style;s.display="block",s.zIndex=Sys.Extended.UI.zIndex.ComboBoxList,this._optionListItems=new Array;for(var l=e.childNodes,h=0;h=0;)a=a.substring(0,u).trim()+" "+a.substring(u+1,a.length).trim(),u=a.indexOf("\r");for(var g=a.indexOf("\n");g>=0;)a=a.substring(0,g).trim()+" "+a.substring(g+1,a.length).trim(),g=a.indexOf("\n");a=a.replace(/\&/g,"&").replace(/\"/g,'"').replace(/\>/g,">").replace(/\</g,"<"),d.text=a.trim(),Array.add(this._optionListItems,d),this.initializeOptionListItem(r)}else e.removeChild(r),h--}s.width=this._getOptionListBounds().width+"px",s.width="0px",this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"_PopupBehavior",parentElement:this.get_textBoxControl(),positioningMode:Sys.Extended.UI.PositioningMode.BottomLeft},null,null,e),this._popupBehavior.add_showing(this._popupShowingHandler),this._popupBehavior.add_shown(this._popupShownHandler),this._popupBehavior.add_hiding(this._popupHidingHandler),this.get_selectedIndex()>=0?(this._highlightListItem(this.get_selectedIndex()),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):this.get_textBoxControl().value="",this._popupShowing(),e.style.display="none"},initializeOptionListItem:function(t){t._textIsEmpty=!1,t.innerHTML.length<1&&(t.innerHTML=" ",t._textIsEmpty=!0)},_popupShowing:function(){var t=this._getWindowBounds(),e=Sys.UI.DomElement.getBounds(this.get_comboTableControl()),o=this._getOptionListBounds(),i=30,n=t.y+t.height/2,s=e.y+e.height,l=t.x+t.width/2,h=e.x+e.width/2,r=e.y-t.y,d="Top";s<=n&&(d="Bottom",r=t.height-e.height-r);var a=this._getOptionListItemHeight();r=r>=o.height?o.height:a*(Math.floor(r/a)-2);var u=r/a,g=u=x&&(p=x)):p>=x&&(p=x),"Right"==c&&p=1?1:-1:t.rawEvent.wheelDelta>1?-1:1,this.get_optionListControl().scrollTop+=this._getOptionListItemHeight()*e,t.stopPropagation(),t.preventDefault(),!1},_onListMouseOver:function(t){var e=this.get_optionListControl();if(t.target!==e)for(var o=t.target,i=e.childNodes,n=0;n=0?(this.set_selectedIndex(this._highlightedIndex),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):o==-3&&e.length>0&&this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.DropDownList?this.set_selectedIndex(-2):this._optionListItems.length<1&&(""==e||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList)?(this.set_selectedIndex(-1),this.get_textBoxControl().value=""):this._optionListItems.length>=0&&o==-3&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList?(this.set_selectedIndex(0),this.get_textBoxControl().value=this._optionListItems[0].text):o>=0&&(this.set_selectedIndex(o),this.get_textBoxControl().value=this._optionListItems[o].text),this._popupBehavior.hide(),1!=this.get_autoPostBack()||this._doingPostBack||this._originalSelectedIndex==this.get_selectedIndex()||(this._doingPostBack=!0,__doPostBack(this.get_element().id,""))},_onTextBoxKeyDown:function(t){var e=this._handleEnterKey(t);if(null!=e)return e;this._handleArrowKey(t);var o=this._handleErasureKeys(t);return null==o||o},_onTextBoxKeyPress:function(t){var e=this._handleEnterKey(t);if(null!=e)return e;var o=this._handleArrowKey(t);if(null!=o)return o;var i=this._handleNonCharacterKey(t);if(null!=i)return i;if(this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.Simple||this._popupBehavior._visible||this._popupBehavior.show(),this.get_selectedIndex()==-1&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList&&0==this._optionListItems.length)return this.get_textBoxControl().value="",t.preventDefault(),t.stopPropagation(),!1;var n=this._getTextSelectionInfo(this.get_textBoxControl(),t),s=n.selectionStart,l=n.selectionEnd,h=n.selectionPrefix+n.typedCharacter+n.selectionText.substring(1)+n.selectionSuffix,r=n.selectionPrefix+n.typedCharacter,d=this.get_textBoxControl().maxLength;d<0&&(d=Number.MAX_VALUE),r.length>d&&(r=r.substring(0,this.get_textBoxControl().maxLength));var a=this._suggestIndex(h,r);this.get_autoCompleteMode()!=Sys.Extended.UI.ComboBoxAutoCompleteMode.Suggest&&this.get_autoCompleteMode()!=Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend||(this._highlightSuggestedItem=!0,this._popupBehavior._visible||this._popupBehavior.show()),a>=0?this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.Append||this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend?(this.get_textBoxControl().value=this._optionListItems[a].text,s=n.selectionStart+1,l=this.get_textBoxControl().value.length):(this.get_textBoxControl().value=this._optionListItems[a].text.substring(0,r.length),s=this.get_textBoxControl().value.length,l=this.get_textBoxControl().value.length):this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.Simple&&this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.DropDown||(this.get_textBoxControl().value=r,s=r.length,l=r.length);var u=this._handleErasureKeys(t);return null!=u?u:(this._ensureHighlightedIndex(),this._ensureScrollTop(),this._setTextSelectionRange(this.get_textBoxControl(),s,l),t.preventDefault(),t.stopPropagation(),!1)},_onDocumentClick:function(t){this._popupBehavior._visible&&this._popupBehavior.hide()},_onDocumentMouseWheel:function(t){return this._popupBehavior&&this._popupBehavior.hide(),!0},_handleTextBoxFocus:function(t){!this._supressFocusHide&&this._popupBehavior._visible&&(this._popupBehavior.hide(),this._supressFocusHide=!0,this.get_autoPostBack()&&!this._doingPostBack&&this._originalSelectedIndex!=this.get_selectedIndex()&&(this._doingPostBack=!0,__doPostBack(this.get_element().id,""))),this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple&&this._popupBehavior.show(),this._setTextSelectionRange(this.get_textBoxControl(),0,this.get_textBoxControl().value.length),null!=t&&(t.preventDefault(),t.stopPropagation())},_highlightListItem:function(t,e){if(void 0==t||t<0)return void(void 0!=this._highlightedIndex&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1));var o=this.get_optionListControl().childNodes,i=o[t];if(1==e){if(this._highlightedIndex==t)return;t>=0&&(void 0==this.get_listItemHoverCssClass()||""==this.get_listItemHoverCssClass()?(i.style.backgroundColor="Highlight",i.style.color="HighlightText"):i.className=this.get_listItemHoverCssClass()),null!=this._highlightedIndex&&this._highlightedIndex!=t&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1),this._highlightedIndex=t}else void 0==this.get_listItemHoverCssClass()||""==this.get_listItemHoverCssClass()?(i.style.backgroundColor="",i.style.color=""):i.className="",t==this._highlightedIndex&&(this._highlightedIndex=-1)},_suggestIndex:function(t,e){for(var o=-1,i=!1,n=!1,s=0;s0||1==o&&this._highlightedIndex=0&&(this.get_textBoxControl().value=this._optionListItems[this._highlightedIndex].text,this.set_selectedIndex(this._highlightedIndex),this.get_autoPostBack()&&__doPostBack(this.get_element().id,"")),this._popupBehavior.hide(),t.preventDefault(),t.stopPropagation(),!1):this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDown||(this._highlightedIndex==this.get_selectedIndex()||(t.preventDefault(),t.stopPropagation(),!1)):null},_handleErasureKeys:function(t){var e=this._getKeyboardCode(t),o=e==Sys.UI.Key.backspace,i=e==Sys.UI.Key.del;if("undefined"==typeof window.event&&"keypress"==t.type&&(i=46==t.rawEvent.keyCode),o||i){var n,s,l=this._getTextSelectionInfo(this.get_textBoxControl(),t);if(l.selectionStart0){var r=1;8==l.selectionPrefix.charCodeAt(l.selectionPrefix.length-1)&&(r=2),h=l.selectionPrefix.substr(0,l.selectionPrefix.length-r),h+=l.selectionSuffix,this.get_textBoxControl().value=h,n=l.selectionStart-1,s=l.selectionStart-1}else i&&l.selectionStart=0){var d=this._isExactMatch(this._optionListItems[this._highlightedIndex].text,this.get_textBoxControl().value);d||this._highlightListItem(this._highlightedIndex,!1)}return t.preventDefault(),t.stopPropagation(),!1}return null},_handleNonCharacterKey:function(t){var e=this._getKeyboardCode(t),o=e==Sys.UI.Key.backspace,i=e==Sys.UI.Key.del;return"keypress"==t.type&&(i=46==t.rawEvent.code),o||i?null:this._isNonCharacterKey(t)?e!=Sys.UI.Key.esc||(this._popupBehavior.hide(),this.get_textBoxControl().blur(),t.preventDefault(),t.stopPropagation(),!1):null},_isNonCharacterKey:function(t){var e=this._getKeyboardCode(t);if(e==Sys.UI.Key.enter||e==Sys.UI.Key.esc)return!0;if(Sys.Browser.agent==Sys.Browser.Safari&&Sys.Browser.version<500){if(8==e||9==e||63272==e||63276==e||63277==e||63275==e||63273==e||63234==e||63235==e||e>=63236&&e<=63243||63248==e)return!0}else if(Sys.Browser.agent!=Sys.Browser.InternetExplorer)if(8==e||9==e||33==e||34==e||35==e||36==e||37==e||39==e||45==e||46==e){if(!t.shiftKey)return!0}else{if(145==e)return!0;if(19==e)return!0;if(Sys.Browser.agent==Sys.Browser.Opera){if(0==e||16==e||17==e)return!0}else if(Sys.Browser.agent==Sys.Browser.Firefox&&(91==e||92==e||93==e))return!0}else if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&46==e)return!0;return!1},_ensureScrollTop:function(){var t=this.get_optionListControl();if(this._highlightedIndex>=0){var e=this._getOptionListItemHeight(),o=e*this._highlightedIndex,i=t.scrollTop+t.clientHeight;(o<=t.scrollTop||o>=i)&&(t.scrollTop=this._highlightedIndex*e)}},_ensureSelectedIndex:function(){var t=this.get_hiddenFieldControl().value;""==t&&(t=this._optionListItems.length>0?0:-1,this.get_hiddenFieldControl().value=t.toString()),null==this._originalSelectedIndex&&(this._originalSelectedIndex=parseInt(t))},_ensureHighlightedIndex:function(){var t=this.get_textBoxControl().value;if(!(null!=this._highlightedIndex&&this._highlightedIndex>=0&&this._isExactMatch(this._optionListItems[this._highlightedIndex].text,t))){for(var e=-1,o=!1,i=0;i=o.selectionStart?o.textBoxValue.substring(0,o.selectionStart):"",o.selectionText=o.textBoxValue.length>=o.selectionEnd?o.textBoxValue.substring(o.selectionStart,o.selectionEnd):"",o.selectionSuffix=o.textBoxValue.length>=o.selectionEnd?o.textBoxValue.substring(o.selectionEnd,o.textBoxValue.length):"",o.selectionTextFirst=o.selectionText.substring(0,1),o},_getOptionListItemHeight:function(){var t=this.get_optionListControl();return null==this._optionListItemHeight&&t.scrollHeight>0?this._optionListItemHeight=Math.round(t.scrollHeight/this._optionListItems.length):Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7&&Math.round(t.scrollHeight/this._optionListItems.length)n.getTicks()?1:this._tickse.getTicks()?1:this._ticksSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._borderStyleNames[t],r=this.getCurrentStyle(n,i);return r!="none"},getMargin:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._marginWidthNames[t],r=this.getCurrentStyle(n,i);try{return this.parsePadding(r)}catch(u){return 0}},getBorderWidth:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));if(!this.isBorderVisible(n,t))return 0;var i=this._borderWidthNames[t],r=this.getCurrentStyle(n,i);return this.parseBorderWidth(r)},getPadding:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._paddingWidthNames[t],r=this.getCurrentStyle(n,i);return this.parsePadding(r)},parseBorderWidth:function(n){var r,t,i,u,f;if(this._borderThicknesses||(r={},t=document.createElement("div"),t.style.visibility="hidden",t.style.position="absolute",t.style.fontSize="1px",document.body.appendChild(t),i=document.createElement("div"),i.style.height="0px",i.style.overflow="hidden",t.appendChild(i),u=t.offsetHeight,i.style.borderTop="solid black",i.style.borderTopWidth="thin",r.thin=t.offsetHeight-u,i.style.borderTopWidth="medium",r.medium=t.offsetHeight-u,i.style.borderTopWidth="thick",r.thick=t.offsetHeight-u,t.removeChild(i),document.body.removeChild(t),this._borderThicknesses=r),n){switch(n){case"thin":case"medium":case"thick":return this._borderThicknesses[n];case"inherit":return 0}return f=this.parseUnit(n),Sys.Debug.assert(f.type=="px",String.format(Sys.Extended.UI.Resources.Common_InvalidBorderWidthUnit,f.type)),f.size}return 0},parsePadding:function(n){if(n){if(n=="inherit")return 0;var t=this.parseUnit(n);return t.type!=="px"&&Sys.Debug.fail(String.format(Sys.Extended.UI.Resources.Common_InvalidPaddingUnit,t.type)),t.size}return 0},parseUnit:function(n){var f,t,r,i,e,u;if(!n)throw Error.argumentNull("value");for(n=n.trim().toLowerCase(),f=n.length,t=-1,r=0;r"9")&&i!="-"&&i!="."&&i!=",")break;t=r}if(t==-1)throw Error.create(Sys.Extended.UI.Resources.Common_UnitHasNoDigits);return e=t0){var func;if((func=window[value])instanceof Function||(func=eval(value))instanceof Function)return func}}return null},addCssClasses:function(n,t){for(var i=0;i=n.x&&t=n.y&&it&&(f=r=="l"?f.substr(f.length-t,t):f.substr(0,t)),f},__DOMEvents:{focusin:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focusin",!0,!1,window,1)}},focusout:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focusout",!0,!1,window,1)}},activate:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("activate",!0,!0,window,1)}},focus:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focus",!1,!1,window,1)}},blur:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("blur",!1,!1,window,1)}},click:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("click",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},dblclick:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("click",!0,!0,window,2,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousedown:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousedown",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseup:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mouseup",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseover:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mouseover",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousemove:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseout:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},load:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("load",!1,!1)}},unload:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("unload",!1,!1)}},select:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("select",!0,!1)}},change:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("change",!0,!1)}},submit:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("submit",!0,!0)}},reset:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("reset",!0,!1)}},resize:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("resize",!0,!1)}},scroll:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("scroll",!0,!1)}}},tryFireRawEvent:function(n,t){try{if(n.fireEvent)return n.fireEvent("on"+t.type,t),!0;if(n.dispatchEvent)return n.dispatchEvent(t),!0}catch(i){}return!1},tryFireEvent:function(n,t,i){var u,r;try{if(document.createEventObject)return r=document.createEventObject(),$common.applyProperties(r,i||{}),n.fireEvent("on"+t,r),!0;if(document.createEvent&&(u=$common.__DOMEvents[t],u))return r=document.createEvent(u.eventGroup),u.init(r,i||{}),n.dispatchEvent(r),!0}catch(r){}return!1},wrapElement:function(n,t,i){var r=n.parentNode;r.replaceChild(t,n);(i||t).appendChild(n)},unwrapElement:function(n,t){var i=t.parentNode;i!=null&&($common.removeElement(n),i.replaceChild(n,t))},removeElement:function(n){var t=n.parentNode;t!=null&&t.removeChild(n)},applyProperties:function(n,t){var r,i,u;for(r in t)i=t[r],i!=null&&Object.getType(i)===Object?(u=n[r],$common.applyProperties(u,i)):n[r]=i},createElementFromTemplate:function(n,t,i){var f,h,r,e,s,c,o,u;if(typeof n.nameTable!="undefined"&&(f=n.nameTable,String.isInstanceOfType(f)&&(f=i[f]),f!=null&&(i=f)),h=null,typeof n.name!="undefined"&&(h=n.name),r=document.createElement(n.nodeName),typeof n.name!="undefined"&&i&&(i[n.name]=r),typeof n.parent!="undefined"&&t==null&&(e=n.parent,String.isInstanceOfType(e)&&(e=i[e]),e!=null&&(t=e)),typeof n.properties!="undefined"&&n.properties!=null&&$common.applyProperties(r,n.properties),typeof n.cssClasses!="undefined"&&n.cssClasses!=null&&$common.addCssClasses(r,n.cssClasses),typeof n.events!="undefined"&&n.events!=null&&$addHandlers(r,n.events),typeof n.visible!="undefined"&&n.visible!=null&&this.setVisible(r,n.visible),t&&t.appendChild(r),typeof n.opacity!="undefined"&&n.opacity!=null&&$common.setElementOpacity(r,n.opacity),typeof n.children!="undefined"&&n.children!=null)for(s=0;sSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var n=this._borderStyleNames[t],r=this.getCurrentStyle(e,n);return"none"!=r},getMargin:function(e,t){if(!e)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var n=this._marginWidthNames[t],r=this.getCurrentStyle(e,n);try{return this.parsePadding(r)}catch(e){return 0}},getBorderWidth:function(e,t){if(!e)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));if(!this.isBorderVisible(e,t))return 0;var n=this._borderWidthNames[t],r=this.getCurrentStyle(e,n);return this.parseBorderWidth(r)},getPadding:function(e,t){if(!e)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var n=this._paddingWidthNames[t],r=this.getCurrentStyle(e,n);return this.parsePadding(r)},parseBorderWidth:function(e){if(!this._borderThicknesses){var t={},n=document.createElement("div");n.style.visibility="hidden",n.style.position="absolute",n.style.fontSize="1px",document.body.appendChild(n);var r=document.createElement("div");r.style.height="0px",r.style.overflow="hidden",n.appendChild(r);var i=n.offsetHeight;r.style.borderTop="solid black",r.style.borderTopWidth="thin",t.thin=n.offsetHeight-i,r.style.borderTopWidth="medium",t.medium=n.offsetHeight-i,r.style.borderTopWidth="thick",t.thick=n.offsetHeight-i,n.removeChild(r),document.body.removeChild(n),this._borderThicknesses=t}if(e){switch(e){case"thin":case"medium":case"thick":return this._borderThicknesses[e];case"inherit":return 0}var o=this.parseUnit(e);return Sys.Debug.assert("px"==o.type,String.format(Sys.Extended.UI.Resources.Common_InvalidBorderWidthUnit,o.type)),o.size}return 0},parsePadding:function(e){if(e){if("inherit"==e)return 0;var t=this.parseUnit(e);return"px"!==t.type&&Sys.Debug.fail(String.format(Sys.Extended.UI.Resources.Common_InvalidPaddingUnit,t.type)),t.size}return 0},parseUnit:function(e){if(!e)throw Error.argumentNull("value");e=e.trim().toLowerCase();for(var t=e.length,n=-1,r=0;r"9")&&"-"!=i&&"."!=i&&","!=i)break;n=r}if(n==-1)throw Error.create(Sys.Extended.UI.Resources.Common_UnitHasNoDigits);var o,s;return o=n0){var func;if((func=window[value])instanceof Function)return func;if((func=eval(value))instanceof Function)return func}}return null},addCssClasses:function(e,t){for(var n=0;n=e.x&&t=e.y&&nt&&(d="l"==r?d.substr(d.length-t,t):d.substr(0,t)),d},__DOMEvents:{focusin:{eventGroup:"UIEvents",init:function(e,t){e.initUIEvent("focusin",!0,!1,window,1)}},focusout:{eventGroup:"UIEvents",init:function(e,t){e.initUIEvent("focusout",!0,!1,window,1)}},activate:{eventGroup:"UIEvents",init:function(e,t){e.initUIEvent("activate",!0,!0,window,1)}},focus:{eventGroup:"UIEvents",init:function(e,t){e.initUIEvent("focus",!1,!1,window,1)}},blur:{eventGroup:"UIEvents",init:function(e,t){e.initUIEvent("blur",!1,!1,window,1)}},click:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("click",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},dblclick:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("click",!0,!0,window,2,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousedown:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("mousedown",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseup:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("mouseup",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseover:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("mouseover",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousemove:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseout:{eventGroup:"MouseEvents",init:function(e,t){e.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},load:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("load",!1,!1)}},unload:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("unload",!1,!1)}},select:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("select",!0,!1)}},change:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("change",!0,!1)}},submit:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("submit",!0,!0)}},reset:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("reset",!0,!1)}},resize:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("resize",!0,!1)}},scroll:{eventGroup:"HTMLEvents",init:function(e,t){e.initEvent("scroll",!0,!1)}}},tryFireRawEvent:function(e,t){try{if(e.fireEvent)return e.fireEvent("on"+t.type,t),!0;if(e.dispatchEvent)return e.dispatchEvent(t),!0}catch(e){}return!1},tryFireEvent:function(e,t,n){try{if(document.createEventObject){var r=document.createEventObject();return $common.applyProperties(r,n||{}),e.fireEvent("on"+t,r),!0}if(document.createEvent){var i=$common.__DOMEvents[t];if(i){var r=document.createEvent(i.eventGroup);return i.init(r,n||{}),e.dispatchEvent(r),!0}}}catch(e){}return!1},wrapElement:function(e,t,n){var r=e.parentNode;r.replaceChild(t,e),(n||t).appendChild(e)},unwrapElement:function(e,t){var n=t.parentNode;null!=n&&($common.removeElement(e),n.replaceChild(e,t))},removeElement:function(e){var t=e.parentNode;null!=t&&t.removeChild(e)},applyProperties:function(e,t){for(var n in t){var r=t[n];if(null!=r&&Object.getType(r)===Object){var i=e[n];$common.applyProperties(i,r)}else e[n]=r}},createElementFromTemplate:function(e,t,n){if("undefined"!=typeof e.nameTable){var r=e.nameTable;String.isInstanceOfType(r)&&(r=n[r]),null!=r&&(n=r)}var i=null;"undefined"!=typeof e.name&&(i=e.name);var o=document.createElement(e.nodeName);if("undefined"!=typeof e.name&&n&&(n[e.name]=o),"undefined"!=typeof e.parent&&null==t){var s=e.parent;String.isInstanceOfType(s)&&(s=n[s]),null!=s&&(t=s)}if("undefined"!=typeof e.properties&&null!=e.properties&&$common.applyProperties(o,e.properties),"undefined"!=typeof e.cssClasses&&null!=e.cssClasses&&$common.addCssClasses(o,e.cssClasses),"undefined"!=typeof e.events&&null!=e.events&&$addHandlers(o,e.events),"undefined"!=typeof e.visible&&null!=e.visible&&this.setVisible(o,e.visible),t&&t.appendChild(o),"undefined"!=typeof e.opacity&&null!=e.opacity&&$common.setElementOpacity(o,e.opacity),"undefined"!=typeof e.children&&null!=e.children)for(var d=0;d/g,">")}; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/Compat.DragDrop.js b/Scripts/AjaxControlToolkit/Release/Compat.DragDrop.js index bc3139a92..8600c69cf 100644 --- a/Scripts/AjaxControlToolkit/Release/Compat.DragDrop.js +++ b/Scripts/AjaxControlToolkit/Release/Compat.DragDrop.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.IDragSource=function(){};Sys.Extended.UI.IDragSource.prototype={get_dragDataType:function(){throw Error.notImplemented();},getDragData:function(){throw Error.notImplemented();},get_dragMode:function(){throw Error.notImplemented();},onDragStart:function(){throw Error.notImplemented();},onDrag:function(){throw Error.notImplemented();},onDragEnd:function(){throw Error.notImplemented();}};Sys.Extended.UI.IDragSource.registerInterface("Sys.Extended.UI.IDragSource");Sys.Extended.UI.IDropTarget=function(){};Sys.Extended.UI.IDropTarget.prototype={get_dropTargetElement:function(){throw Error.notImplemented();},canDrop:function(){throw Error.notImplemented();},drop:function(){throw Error.notImplemented();},onDragEnterTarget:function(){throw Error.notImplemented();},onDragLeaveTarget:function(){throw Error.notImplemented();},onDragInTarget:function(){throw Error.notImplemented();}};Sys.Extended.UI.IDropTarget.registerInterface("Sys.Extended.UI.IDropTarget");Sys.Extended.UI.DragMode=function(){throw Error.invalidOperation();};Sys.Extended.UI.DragMode.prototype={Copy:0,Move:1};Sys.Extended.UI.DragMode.registerEnum("Sys.Extended.UI.DragMode");Sys.Extended.UI.DragDropEventArgs=function(n,t,i){this._dragMode=n;this._dataType=t;this._data=i};Sys.Extended.UI.DragDropEventArgs.prototype={get_dragMode:function(){return this._dragMode||null},get_dragDataType:function(){return this._dataType||null},get_dragData:function(){return this._data||null}};Sys.Extended.UI.DragDropEventArgs.registerClass("Sys.Extended.UI.DragDropEventArgs");Sys.Extended.UI._DragDropManager=function(){this._instance=null;this._events=null};Sys.Extended.UI._DragDropManager.prototype={add_dragStart:function(n){this.get_events().addHandler("dragStart",n)},remove_dragStart:function(n){this.get_events().removeHandler("dragStart",n)},get_events:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},add_dragStop:function(n){this.get_events().addHandler("dragStop",n)},remove_dragStop:function(n){this.get_events().removeHandler("dragStop",n)},_getInstance:function(){return this._instance||(this._instance=Sys.Browser.agent===Sys.Browser.InternetExplorer?new Sys.Extended.UI.IEDragDropManager:new Sys.Extended.UI.GenericDragDropManager,this._instance.initialize(),this._instance.add_dragStart(Function.createDelegate(this,this._raiseDragStart)),this._instance.add_dragStop(Function.createDelegate(this,this._raiseDragStop))),this._instance},startDragDrop:function(n,t,i,r){this._getInstance().startDragDrop(n,t,i,r)},registerDropTarget:function(n){this._getInstance().registerDropTarget(n)},unregisterDropTarget:function(n){this._getInstance().unregisterDropTarget(n)},dispose:function(){delete this._events;Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this)},_raiseDragStart:function(n,t){var i=this.get_events().getHandler("dragStart");i&&i(this,t)},_raiseDragStop:function(n,t){var i=this.get_events().getHandler("dragStop");i&&i(this,t)}};Sys.Extended.UI._DragDropManager.registerClass("Sys.Extended.UI._DragDropManager");Sys.Extended.UI.DragDropManager=new Sys.Extended.UI._DragDropManager;Sys.Extended.UI.IEDragDropManager=function(){Sys.Extended.UI.IEDragDropManager.initializeBase(this);this._dropTargets=null;this._radius=10;this._useBuiltInDragAndDropFunctions=!0;this._activeDragVisual=null;this._activeContext=null;this._activeDragSource=null;this._underlyingTarget=null;this._oldOffset=null;this._potentialTarget=null;this._isDragging=!1;this._mouseUpHandler=null;this._documentMouseMoveHandler=null;this._documentDragOverHandler=null;this._dragStartHandler=null;this._mouseMoveHandler=null;this._dragEnterHandler=null;this._dragLeaveHandler=null;this._dragOverHandler=null;this._dropHandler=null};Sys.Extended.UI.IEDragDropManager.prototype={add_dragStart:function(n){this.get_events().addHandler("dragStart",n)},remove_dragStart:function(n){this.get_events().removeHandler("dragStart",n)},add_dragStop:function(n){this.get_events().addHandler("dragStop",n)},remove_dragStop:function(n){this.get_events().removeHandler("dragStop",n)},initialize:function(){Sys.Extended.UI.IEDragDropManager.callBaseMethod(this,"initialize");this._mouseUpHandler=Function.createDelegate(this,this._onMouseUp);this._documentMouseMoveHandler=Function.createDelegate(this,this._onDocumentMouseMove);this._documentDragOverHandler=Function.createDelegate(this,this._onDocumentDragOver);this._dragStartHandler=Function.createDelegate(this,this._onDragStart);this._mouseMoveHandler=Function.createDelegate(this,this._onMouseMove);this._dragEnterHandler=Function.createDelegate(this,this._onDragEnter);this._dragLeaveHandler=Function.createDelegate(this,this._onDragLeave);this._dragOverHandler=Function.createDelegate(this,this._onDragOver);this._dropHandler=Function.createDelegate(this,this._onDrop)},dispose:function(){if(this._dropTargets){for(var n=0;n0&&(this._scrollDeltaX=this._scrollDeltaY=0,t.clientXn.width-this._scrollEdgeConst&&(this._scrollDeltaX=this._scrollByConst),t.clientYn.height-this._scrollEdgeConst&&(this._scrollDeltaY=this._scrollByConst),this._scrollDeltaX!=0||this._scrollDeltaY!=0?this._scroller.set_enabled(!0):this._scroller.set_enabled(!1))},_onScrollerTick:function(){var t=document.body.scrollLeft,i=document.body.scrollTop;window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);var r=document.body.scrollLeft,u=document.body.scrollTop,n=this._activeDragVisual,f={x:parseInt(n.style.left)+(r-t),y:parseInt(n.style.top)+(u-i)};$common.setLocation(n,f)}};Sys.Extended.UI.GenericDragDropManager.registerClass("Sys.Extended.UI.GenericDragDropManager",Sys.Extended.UI.IEDragDropManager); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.IDragSource=function(){},Sys.Extended.UI.IDragSource.prototype={get_dragDataType:function(){throw Error.notImplemented()},getDragData:function(){throw Error.notImplemented()},get_dragMode:function(){throw Error.notImplemented()},onDragStart:function(){throw Error.notImplemented()},onDrag:function(){throw Error.notImplemented()},onDragEnd:function(){throw Error.notImplemented()}},Sys.Extended.UI.IDragSource.registerInterface("Sys.Extended.UI.IDragSource"),Sys.Extended.UI.IDropTarget=function(){},Sys.Extended.UI.IDropTarget.prototype={get_dropTargetElement:function(){throw Error.notImplemented()},canDrop:function(){throw Error.notImplemented()},drop:function(){throw Error.notImplemented()},onDragEnterTarget:function(){throw Error.notImplemented()},onDragLeaveTarget:function(){throw Error.notImplemented()},onDragInTarget:function(){throw Error.notImplemented()}},Sys.Extended.UI.IDropTarget.registerInterface("Sys.Extended.UI.IDropTarget"),Sys.Extended.UI.DragMode=function(){throw Error.invalidOperation()},Sys.Extended.UI.DragMode.prototype={Copy:0,Move:1},Sys.Extended.UI.DragMode.registerEnum("Sys.Extended.UI.DragMode"),Sys.Extended.UI.DragDropEventArgs=function(e,t,r){this._dragMode=e,this._dataType=t,this._data=r},Sys.Extended.UI.DragDropEventArgs.prototype={get_dragMode:function(){return this._dragMode||null},get_dragDataType:function(){return this._dataType||null},get_dragData:function(){return this._data||null}},Sys.Extended.UI.DragDropEventArgs.registerClass("Sys.Extended.UI.DragDropEventArgs"),Sys.Extended.UI._DragDropManager=function(){this._instance=null,this._events=null},Sys.Extended.UI._DragDropManager.prototype={add_dragStart:function(e){this.get_events().addHandler("dragStart",e)},remove_dragStart:function(e){this.get_events().removeHandler("dragStart",e)},get_events:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},add_dragStop:function(e){this.get_events().addHandler("dragStop",e)},remove_dragStop:function(e){this.get_events().removeHandler("dragStop",e)},_getInstance:function(){return this._instance||(Sys.Browser.agent===Sys.Browser.InternetExplorer?this._instance=new Sys.Extended.UI.IEDragDropManager:this._instance=new Sys.Extended.UI.GenericDragDropManager,this._instance.initialize(),this._instance.add_dragStart(Function.createDelegate(this,this._raiseDragStart)),this._instance.add_dragStop(Function.createDelegate(this,this._raiseDragStop))),this._instance},startDragDrop:function(e,t,r,n){this._getInstance().startDragDrop(e,t,r,n)},registerDropTarget:function(e){this._getInstance().registerDropTarget(e)},unregisterDropTarget:function(e){this._getInstance().unregisterDropTarget(e)},dispose:function(){delete this._events,Sys.Application.unregisterDisposableObject(this),Sys.Application.removeComponent(this)},_raiseDragStart:function(e,t){var r=this.get_events().getHandler("dragStart");r&&r(this,t)},_raiseDragStop:function(e,t){var r=this.get_events().getHandler("dragStop");r&&r(this,t)}},Sys.Extended.UI._DragDropManager.registerClass("Sys.Extended.UI._DragDropManager"),Sys.Extended.UI.DragDropManager=new Sys.Extended.UI._DragDropManager,Sys.Extended.UI.IEDragDropManager=function(){Sys.Extended.UI.IEDragDropManager.initializeBase(this),this._dropTargets=null,this._radius=10,this._useBuiltInDragAndDropFunctions=!0,this._activeDragVisual=null,this._activeContext=null,this._activeDragSource=null,this._underlyingTarget=null,this._oldOffset=null,this._potentialTarget=null,this._isDragging=!1,this._mouseUpHandler=null,this._documentMouseMoveHandler=null,this._documentDragOverHandler=null,this._dragStartHandler=null,this._mouseMoveHandler=null,this._dragEnterHandler=null,this._dragLeaveHandler=null,this._dragOverHandler=null,this._dropHandler=null},Sys.Extended.UI.IEDragDropManager.prototype={add_dragStart:function(e){this.get_events().addHandler("dragStart",e)},remove_dragStart:function(e){this.get_events().removeHandler("dragStart",e)},add_dragStop:function(e){this.get_events().addHandler("dragStop",e)},remove_dragStop:function(e){this.get_events().removeHandler("dragStop",e)},initialize:function(){Sys.Extended.UI.IEDragDropManager.callBaseMethod(this,"initialize"),this._mouseUpHandler=Function.createDelegate(this,this._onMouseUp),this._documentMouseMoveHandler=Function.createDelegate(this,this._onDocumentMouseMove),this._documentDragOverHandler=Function.createDelegate(this,this._onDocumentDragOver),this._dragStartHandler=Function.createDelegate(this,this._onDragStart),this._mouseMoveHandler=Function.createDelegate(this,this._onMouseMove),this._dragEnterHandler=Function.createDelegate(this,this._onDragEnter),this._dragLeaveHandler=Function.createDelegate(this,this._onDragLeave),this._dragOverHandler=Function.createDelegate(this,this._onDragOver),this._dropHandler=Function.createDelegate(this,this._onDrop)},dispose:function(){if(this._dropTargets){for(var e=0;e0&&(this._scrollDeltaX=this._scrollDeltaY=0,e.clientXt.width-this._scrollEdgeConst&&(this._scrollDeltaX=this._scrollByConst),e.clientYt.height-this._scrollEdgeConst&&(this._scrollDeltaY=this._scrollByConst),0!=this._scrollDeltaX||0!=this._scrollDeltaY?this._scroller.set_enabled(!0):this._scroller.set_enabled(!1))},_onScrollerTick:function(){var e=document.body.scrollLeft,t=document.body.scrollTop;window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);var r=document.body.scrollLeft,n=document.body.scrollTop,a=this._activeDragVisual,o={x:parseInt(a.style.left)+(r-e),y:parseInt(a.style.top)+(n-t)};$common.setLocation(a,o)}},Sys.Extended.UI.GenericDragDropManager.registerClass("Sys.Extended.UI.GenericDragDropManager",Sys.Extended.UI.IEDragDropManager); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/Compat.Timer.js b/Scripts/AjaxControlToolkit/Release/Compat.Timer.js index 9141ccd0f..e89390c78 100644 --- a/Scripts/AjaxControlToolkit/Release/Compat.Timer.js +++ b/Scripts/AjaxControlToolkit/Release/Compat.Timer.js @@ -1 +1 @@ -Sys.Timer=function(){Sys.Timer.initializeBase(this);this._interval=1e3;this._enabled=!1;this._timer=null};Sys.Timer.prototype={get_interval:function(){return this._interval},set_interval:function(n){this._interval!==n&&(this._interval=n,this.raisePropertyChanged("interval"),this.get_isUpdating()||this._timer===null||(this._stopTimer(),this._startTimer()))},get_enabled:function(){return this._enabled},set_enabled:function(n){n!==this.get_enabled()&&(this._enabled=n,this.raisePropertyChanged("enabled"),this.get_isUpdating()||(n?this._startTimer():this._stopTimer()))},add_tick:function(n){this.get_events().addHandler("tick",n)},remove_tick:function(n){this.get_events().removeHandler("tick",n)},dispose:function(){this.set_enabled(!1);this._stopTimer();Sys.Timer.callBaseMethod(this,"dispose")},updated:function(){Sys.Timer.callBaseMethod(this,"updated");this._enabled&&(this._stopTimer(),this._startTimer())},_timerCallback:function(){var n=this.get_events().getHandler("tick");n&&n(this,Sys.EventArgs.Empty)},_startTimer:function(){this._timer=window.setInterval(Function.createDelegate(this,this._timerCallback),this._interval)},_stopTimer:function(){window.clearInterval(this._timer);this._timer=null}};Sys.Timer.descriptor={properties:[{name:"interval",type:Number},{name:"enabled",type:Boolean}],events:[{name:"tick"}]};Sys.Timer.registerClass("Sys.Timer",Sys.Component); \ No newline at end of file +Sys.Timer=function(){Sys.Timer.initializeBase(this),this._interval=1e3,this._enabled=!1,this._timer=null},Sys.Timer.prototype={get_interval:function(){return this._interval},set_interval:function(t){this._interval!==t&&(this._interval=t,this.raisePropertyChanged("interval"),this.get_isUpdating()||null===this._timer||(this._stopTimer(),this._startTimer()))},get_enabled:function(){return this._enabled},set_enabled:function(t){t!==this.get_enabled()&&(this._enabled=t,this.raisePropertyChanged("enabled"),this.get_isUpdating()||(t?this._startTimer():this._stopTimer()))},add_tick:function(t){this.get_events().addHandler("tick",t)},remove_tick:function(t){this.get_events().removeHandler("tick",t)},dispose:function(){this.set_enabled(!1),this._stopTimer(),Sys.Timer.callBaseMethod(this,"dispose")},updated:function(){Sys.Timer.callBaseMethod(this,"updated"),this._enabled&&(this._stopTimer(),this._startTimer())},_timerCallback:function(){var t=this.get_events().getHandler("tick");t&&t(this,Sys.EventArgs.Empty)},_startTimer:function(){this._timer=window.setInterval(Function.createDelegate(this,this._timerCallback),this._interval)},_stopTimer:function(){window.clearInterval(this._timer),this._timer=null}},Sys.Timer.descriptor={properties:[{name:"interval",type:Number},{name:"enabled",type:Boolean}],events:[{name:"tick"}]},Sys.Timer.registerClass("Sys.Timer",Sys.Component); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/ComponentSet.js b/Scripts/AjaxControlToolkit/Release/ComponentSet.js index b4ee0873d..87e153682 100644 --- a/Scripts/AjaxControlToolkit/Release/ComponentSet.js +++ b/Scripts/AjaxControlToolkit/Release/ComponentSet.js @@ -1 +1 @@ -Sys.ComponentSet=function(n,t,i){this._elementSet=n||(n=new Sys.ElementSet);this._components=this._execute(n,t,i)};Sys.ComponentSet.prototype={__class:!0,setProperties:function(n){return this.each(function(){Sys._set(this,n)})},get:function(n){var t=this._components;return typeof n=="undefined"?Array.apply(null,t):t[n||0]||null},each:function(n){return foreach(this._components,function(t,i){if(n.call(t,i)===!1)return!0}),this},elements:function(){return this._elementSet},_execute:function(n,t,i){function u(n){var i;return n instanceof t||(i=n.constructor)&&(i===t||i.inheritsFrom&&i.inheritsFrom(t)||i.implementsInterface&&i.implementsInterface(t))}var r=[];return t instanceof Array?r.push.apply(r,t):n.each(function(){var n=this.control;n&&(!t||u(n))&&r.push(n);foreach(this._behaviors,function(n){(!t||u(n))&&r.push(n)})}),typeof i!="undefined"&&(r=r[i]?[r[i]]:[]),r}}; \ No newline at end of file +Sys.ComponentSet=function(e,t,n){this._elementSet=e||(e=new Sys.ElementSet),this._components=this._execute(e,t,n)},Sys.ComponentSet.prototype={__class:!0,setProperties:function(e){return this.each(function(){Sys._set(this,e)})},get:function(e){var t=this._components;return"undefined"==typeof e?Array.apply(null,t):t[e||0]||null},each:function(e){return foreach(this._components,function(t,n){if(e.call(t,n)===!1)return!0}),this},elements:function(){return this._elementSet},_execute:function(e,t,n){function o(e){var n;return e instanceof t||(n=e.constructor)&&(n===t||n.inheritsFrom&&n.inheritsFrom(t)||n.implementsInterface&&n.implementsInterface(t))}var r=[];return t instanceof Array?r.push.apply(r,t):e.each(function(){var e=this.control;!e||t&&!o(e)||r.push(e),foreach(this._behaviors,function(e){t&&!o(e)||r.push(e)})}),"undefined"!=typeof n&&(r=r[n]?[r[n]]:[]),r}}; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/ConfirmButton.js b/Scripts/AjaxControlToolkit/Release/ConfirmButton.js index b3d9723b5..435cbf113 100644 --- a/Scripts/AjaxControlToolkit/Release/ConfirmButton.js +++ b/Scripts/AjaxControlToolkit/Release/ConfirmButton.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.ConfirmButtonHiddenEventArgs=function(n){Sys.Extended.UI.ConfirmButtonHiddenEventArgs.initializeBase(this);this._confirmed=n};Sys.Extended.UI.ConfirmButtonHiddenEventArgs.prototype={get_confirmed:function(){return this._confirmed}};Sys.Extended.UI.ConfirmButtonHiddenEventArgs.registerClass("Sys.Extended.UI.ConfirmButtonHiddenEventArgs",Sys.EventArgs);Sys.Extended.UI.ConfirmButtonBehavior=function(n){Sys.Extended.UI.ConfirmButtonBehavior.initializeBase(this,[n]);this._ConfirmTextValue=null;this._OnClientCancelValue=null;this._ConfirmOnFormSubmit=!1;this._displayModalPopupID=null;this._postBackScript=null;this._clickHandler=null;this._oldScript=null};Sys.Extended.UI.ConfirmButtonBehavior.prototype={initialize:function(){Sys.Extended.UI.ConfirmButtonBehavior.callBaseMethod(this,"initialize");var n=this.get_element();this._clickHandler=Function.createDelegate(this,this._onClick);$addHandler(n,"click",this._clickHandler);this._oldScript=n.getAttribute("onclick");this._oldScript&&n.setAttribute("onclick",null);this._ConfirmOnFormSubmit&&typeof WebForm_OnSubmit=="function"&&!Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit&&(Sys.Extended.UI.TextBoxWatermarkBehavior&&Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit?(Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit=Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit,Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit=Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit):(Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit=WebForm_OnSubmit,WebForm_OnSubmit=Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit))},dispose:function(){this._clickHandler&&($removeHandler(this.get_element(),"click",this._clickHandler),this._clickHandler=null);this._oldScript&&(this.get_element().setAttribute("onclick",this._oldScript),this._oldScript=null);Sys.Extended.UI.ConfirmButtonBehavior.callBaseMethod(this,"dispose")},_onClick:function(e){if(this.get_element()&&!this.get_element().disabled)if(this._ConfirmOnFormSubmit)Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior=this;else if(this._displayConfirmDialog())this._oldScript&&(String.isInstanceOfType(this._oldScript)?eval(this._oldScript):typeof this._oldScript=="function"&&this._oldScript());else return e.preventDefault(),!1},_displayConfirmDialog:function(){var i=new Sys.CancelEventArgs,n,t;if(this.raise_showing(i),!i.get_cancel()){if(this._displayModalPopupID){if(n=$find(this._displayModalPopupID),!n)throw Error.argument("displayModalPopupID",String.format(Sys.Extended.UI.Resources.CollapsiblePanel_NoControlID,this._displayModalPopupID));return n.set_OnOkScript("$find('"+this.get_id()+"')._handleConfirmDialogCompletion(true);"),n.set_OnCancelScript("$find('"+this.get_id()+"')._handleConfirmDialogCompletion(false);"),n.show(),!1}return t=window.confirm(this._ConfirmTextValue),this._handleConfirmDialogCompletion(t),t}},_handleConfirmDialogCompletion:function(result){this.raise_hidden(new Sys.Extended.UI.ConfirmButtonHiddenEventArgs(result));result?this._postBackScript&&eval(this._postBackScript):this._OnClientCancelValue&&window[this._OnClientCancelValue]()},get_onClientCancel:function(){return this._OnClientCancelValue},set_onClientCancel:function(n){this._OnClientCancelValue!=n&&(this._OnClientCancelValue=n,this.raisePropertyChanged("onClientCancel"))},get_OnClientCancel:function(){return Sys.Extended.Deprecated("get_OnClientCancel()","get_onClientCancel()"),this.get_onClientCancel()},set_OnClientCancel:function(n){Sys.Extended.Deprecated("set_OnClientCancel(value)","set_onClientCancel(value)");this.set_onClientCancel(n)},get_confirmText:function(){return this._ConfirmTextValue},set_confirmText:function(n){this._ConfirmTextValue!=n&&(this._ConfirmTextValue=n,this.raisePropertyChanged("confirmText"))},get_ConfirmText:function(){return Sys.Extended.Deprecated("get_ConfirmText()","get_confirmText()"),this.get_confirmText()},set_ConfirmText:function(n){Sys.Extended.Deprecated("set_ConfirmText(value)","set_confirmText(value)");this.set_confirmText(n)},get_confirmOnFormSubmit:function(){return this._ConfirmOnFormSubmit},set_confirmOnFormSubmit:function(n){this._ConfirmOnFormSubmit!=n&&(this._ConfirmOnFormSubmit=n,this.raisePropertyChanged("confirmOnFormSubmit"))},get_ConfirmOnFormSubmit:function(){return Sys.Extended.Deprecated("get_ConfirmOnFormSubmit()","get_confirmOnFormSubmit()"),this.get_confirmOnFormSubmit()},set_ConfirmOnFormSubmit:function(n){Sys.Extended.Deprecated("set_ConfirmOnFormSubmit(value)","set_confirmOnFormSubmit(value)");this.set_confirmOnFormSubmit(n)},get_displayModalPopupID:function(){return this._displayModalPopupID},set_displayModalPopupID:function(n){this._displayModalPopupID!=n&&(this._displayModalPopupID=n,this.raisePropertyChanged("displayModalPopupID"))},get_postBackScript:function(){return this._postBackScript},set_postBackScript:function(n){this._postBackScript!=n&&(this._postBackScript=n,this.raisePropertyChanged("postBackScript"))},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raise_showing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},raiseShowing:function(n){Sys.Extended.Deprecated("raiseShowing","raise_showing");this.raise_showing(n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raise_hidden:function(n){var t=this.get_events().getHandler("hidden");t&&t(this,n)},raiseHidden:function(n){Sys.Extended.Deprecated("raiseHidden","raise_hidden");this.raise_hidden(n)}};Sys.Extended.UI.ConfirmButtonBehavior.registerClass("Sys.Extended.UI.ConfirmButtonBehavior",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit=function(){var n=Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit();return n&&Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior&&(n=Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior._displayConfirmDialog()),Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior=null,n}; \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.ConfirmButtonHiddenEventArgs=function(e){Sys.Extended.UI.ConfirmButtonHiddenEventArgs.initializeBase(this),this._confirmed=e},Sys.Extended.UI.ConfirmButtonHiddenEventArgs.prototype={get_confirmed:function(){return this._confirmed}},Sys.Extended.UI.ConfirmButtonHiddenEventArgs.registerClass("Sys.Extended.UI.ConfirmButtonHiddenEventArgs",Sys.EventArgs),Sys.Extended.UI.ConfirmButtonBehavior=function(e){Sys.Extended.UI.ConfirmButtonBehavior.initializeBase(this,[e]),this._ConfirmTextValue=null,this._OnClientCancelValue=null,this._ConfirmOnFormSubmit=!1,this._displayModalPopupID=null,this._postBackScript=null,this._clickHandler=null,this._oldScript=null},Sys.Extended.UI.ConfirmButtonBehavior.prototype={initialize:function(){Sys.Extended.UI.ConfirmButtonBehavior.callBaseMethod(this,"initialize");var e=this.get_element();this._clickHandler=Function.createDelegate(this,this._onClick),$addHandler(e,"click",this._clickHandler),this._oldScript=e.getAttribute("onclick"),this._oldScript&&e.setAttribute("onclick",null),this._ConfirmOnFormSubmit&&"function"==typeof WebForm_OnSubmit&&!Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit&&(Sys.Extended.UI.TextBoxWatermarkBehavior&&Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit?(Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit=Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit,Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit=Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit):(Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit=WebForm_OnSubmit,WebForm_OnSubmit=Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit))},dispose:function(){this._clickHandler&&($removeHandler(this.get_element(),"click",this._clickHandler),this._clickHandler=null),this._oldScript&&(this.get_element().setAttribute("onclick",this._oldScript),this._oldScript=null),Sys.Extended.UI.ConfirmButtonBehavior.callBaseMethod(this,"dispose")},_onClick:function(e){if(this.get_element()&&!this.get_element().disabled)if(this._ConfirmOnFormSubmit)Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior=this;else{if(!this._displayConfirmDialog())return e.preventDefault(),!1;this._oldScript&&(String.isInstanceOfType(this._oldScript)?eval(this._oldScript):"function"==typeof this._oldScript&&this._oldScript())}},_displayConfirmDialog:function(){var e=new Sys.CancelEventArgs;if(this.raise_showing(e),!e.get_cancel()){if(this._displayModalPopupID){var t=$find(this._displayModalPopupID);if(!t)throw Error.argument("displayModalPopupID",String.format(Sys.Extended.UI.Resources.CollapsiblePanel_NoControlID,this._displayModalPopupID));return t.set_onOkScript("$find('"+this.get_id()+"')._handleConfirmDialogCompletion(true);"),t.set_onCancelScript("$find('"+this.get_id()+"')._handleConfirmDialogCompletion(false);"),t.show(),!1}var i=window.confirm(this._ConfirmTextValue);return this._handleConfirmDialogCompletion(i),i}},_handleConfirmDialogCompletion:function(result){this.raise_hidden(new Sys.Extended.UI.ConfirmButtonHiddenEventArgs(result)),result?this._postBackScript&&eval(this._postBackScript):this._OnClientCancelValue&&window[this._OnClientCancelValue]()},get_onClientCancel:function(){return this._OnClientCancelValue},set_onClientCancel:function(e){this._OnClientCancelValue!=e&&(this._OnClientCancelValue=e,this.raisePropertyChanged("onClientCancel"))},get_OnClientCancel:function(){return Sys.Extended.Deprecated("get_OnClientCancel()","get_onClientCancel()"),this.get_onClientCancel()},set_OnClientCancel:function(e){Sys.Extended.Deprecated("set_OnClientCancel(value)","set_onClientCancel(value)"),this.set_onClientCancel(e)},get_confirmText:function(){return this._ConfirmTextValue},set_confirmText:function(e){this._ConfirmTextValue!=e&&(this._ConfirmTextValue=e,this.raisePropertyChanged("confirmText"))},get_ConfirmText:function(){return Sys.Extended.Deprecated("get_ConfirmText()","get_confirmText()"),this.get_confirmText()},set_ConfirmText:function(e){Sys.Extended.Deprecated("set_ConfirmText(value)","set_confirmText(value)"),this.set_confirmText(e)},get_confirmOnFormSubmit:function(){return this._ConfirmOnFormSubmit},set_confirmOnFormSubmit:function(e){this._ConfirmOnFormSubmit!=e&&(this._ConfirmOnFormSubmit=e,this.raisePropertyChanged("confirmOnFormSubmit"))},get_ConfirmOnFormSubmit:function(){return Sys.Extended.Deprecated("get_ConfirmOnFormSubmit()","get_confirmOnFormSubmit()"),this.get_confirmOnFormSubmit()},set_ConfirmOnFormSubmit:function(e){Sys.Extended.Deprecated("set_ConfirmOnFormSubmit(value)","set_confirmOnFormSubmit(value)"),this.set_confirmOnFormSubmit(e)},get_displayModalPopupID:function(){return this._displayModalPopupID},set_displayModalPopupID:function(e){this._displayModalPopupID!=e&&(this._displayModalPopupID=e,this.raisePropertyChanged("displayModalPopupID"))},get_postBackScript:function(){return this._postBackScript},set_postBackScript:function(e){this._postBackScript!=e&&(this._postBackScript=e,this.raisePropertyChanged("postBackScript"))},add_showing:function(e){this.get_events().addHandler("showing",e)},remove_showing:function(e){this.get_events().removeHandler("showing",e)},raise_showing:function(e){var t=this.get_events().getHandler("showing");t&&t(this,e)},raiseShowing:function(e){Sys.Extended.Deprecated("raiseShowing","raise_showing"),this.raise_showing(e)},add_hidden:function(e){this.get_events().addHandler("hidden",e)},remove_hidden:function(e){this.get_events().removeHandler("hidden",e)},raise_hidden:function(e){var t=this.get_events().getHandler("hidden");t&&t(this,e)},raiseHidden:function(e){Sys.Extended.Deprecated("raiseHidden","raise_hidden"),this.raise_hidden(e)}},Sys.Extended.UI.ConfirmButtonBehavior.registerClass("Sys.Extended.UI.ConfirmButtonBehavior",Sys.Extended.UI.BehaviorBase),Sys.Extended.UI.ConfirmButtonBehavior.WebForm_OnSubmit=function(){var e=Sys.Extended.UI.ConfirmButtonBehavior._originalWebForm_OnSubmit();return e&&Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior&&(e=Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior._displayConfirmDialog()),Sys.Extended.UI.ConfirmButtonBehavior._clickedBehavior=null,e}; \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/DraggableListItem.js b/Scripts/AjaxControlToolkit/Release/DraggableListItem.js index 0ae856451..3191395d7 100644 --- a/Scripts/AjaxControlToolkit/Release/DraggableListItem.js +++ b/Scripts/AjaxControlToolkit/Release/DraggableListItem.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DraggableListItem=function(n){Sys.Extended.UI.DraggableListItem.initializeBase(this,[n]);this._data=null;this._handle=null;this._dragVisualTemplate=null;this._dragVisualTemplateInstance=null;this._mouseDownHandler=null};Sys.Extended.UI.DraggableListItem.prototype={dispose:function(){var n=this.get_element();this.set_handle(null);Sys.Extended.UI.DraggableListItem.callBaseMethod(this,"dispose")},get_data:function(){if(this._data==null){var n=this._findDragSource();if(n!=null&&Sys.Extended.UI.DragDropList.IsValidDataType(n.get_dragDataType()))return this.get_element()}return this._data},set_data:function(n){this._data!=n&&(this._data=n,this.raisePropertyChanged("data"))},get_handle:function(){return this._handle},set_handle:function(n){this._handle!=null&&($removeHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=null);n?(n.element&&(n=n.element),this._handle=n,this.raisePropertyChanged("handle"),this._handle.__draggableBehavior=this,$addHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=this):this._handle=null},get_mouseDownHandler:function(){return this._mouseDownHandler==null&&(this._mouseDownHandler=Function.createDelegate(this,this._onMouseDown)),this._mouseDownHandler},get_dragVisualTemplate:function(){return this._dragVisualTemplate},set_dragVisualTemplate:function(n){this._dragVisualTemplate!=n&&(this._dragVisualTemplate=n,this.raisePropertyChanged("dragVisualTemplate"))},_onMouseDown:function(n){window._event=n.rawEvent;this._handle.__draggableBehavior._mouseDownHandlerInternal(n)},_mouseDownHandlerInternal:function(n){var n=window.testEvent?window.testEvent:n,t,i;n.button<=1&&(t=this._findDragSource(),t!=null&&(i=this._createDragVisual(),t.startDragDrop(this.get_element(),this.get_data(),i),n.returnValue=!1))},_createDragVisual:function(){var t=window.testEvent?window.testEvent:window.event,n;return this._dragVisualTemplate!=null&&(this._dragVisualTemplateInstance==null?this._dragVisualTemplateInstance=this._dragVisualTemplate.cloneElement():Sys.UI.DragDropManager._getInstance().hasParent(this._dragVisualTemplateInstance)||this.get_element().appendChild(this._dragVisualTemplateInstance),n={x:t.clientX,y:t.clientY},n=Sys.UI.DragDropManager._getInstance().addPoints(n,Sys.UI.DragDropManager._getInstance().getScrollOffset(document.body,!0)),$common.setLocation(this._dragVisualTemplateInstance,n)),this._dragVisualTemplateInstance},_findDragSource:function(){for(var n=this.get_element();n!=null;){if(n.__dragDropList!=null)return n.__dragDropList;n=n.parentNode}return null}};Sys.Extended.UI.DraggableListItem.registerClass("Sys.Extended.UI.DraggableListItem",Sys.Extended.UI.BehaviorBase); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.DraggableListItem=function(e){Sys.Extended.UI.DraggableListItem.initializeBase(this,[e]),this._data=null,this._handle=null,this._dragVisualTemplate=null,this._dragVisualTemplateInstance=null,this._mouseDownHandler=null},Sys.Extended.UI.DraggableListItem.prototype={dispose:function(){this.get_element();this.set_handle(null),Sys.Extended.UI.DraggableListItem.callBaseMethod(this,"dispose")},get_data:function(){if(null==this._data){var e=this._findDragSource();if(null!=e&&Sys.Extended.UI.DragDropList.IsValidDataType(e.get_dragDataType()))return this.get_element()}return this._data},set_data:function(e){this._data!=e&&(this._data=e,this.raisePropertyChanged("data"))},get_handle:function(){return this._handle},set_handle:function(e){null!=this._handle&&($removeHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=null),e?(e.element&&(e=e.element),this._handle=e,this.raisePropertyChanged("handle"),this._handle.__draggableBehavior=this,$addHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=this):this._handle=null},get_mouseDownHandler:function(){return null==this._mouseDownHandler&&(this._mouseDownHandler=Function.createDelegate(this,this._onMouseDown)),this._mouseDownHandler},get_dragVisualTemplate:function(){return this._dragVisualTemplate},set_dragVisualTemplate:function(e){this._dragVisualTemplate!=e&&(this._dragVisualTemplate=e,this.raisePropertyChanged("dragVisualTemplate"))},_onMouseDown:function(e){window._event=e.rawEvent,this._handle.__draggableBehavior._mouseDownHandlerInternal(e)},_mouseDownHandlerInternal:function(e){var e=window.testEvent?window.testEvent:e;if(e.button<=1){var t=this._findDragSource();if(null!=t){var a=this._createDragVisual();t.startDragDrop(this.get_element(),this.get_data(),a),e.returnValue=!1}}},_createDragVisual:function(){var e=window.testEvent?window.testEvent:window.event;if(null!=this._dragVisualTemplate){null==this._dragVisualTemplateInstance?this._dragVisualTemplateInstance=this._dragVisualTemplate.cloneElement():Sys.UI.DragDropManager._getInstance().hasParent(this._dragVisualTemplateInstance)||this.get_element().appendChild(this._dragVisualTemplateInstance);var t={x:e.clientX,y:e.clientY};t=Sys.UI.DragDropManager._getInstance().addPoints(t,Sys.UI.DragDropManager._getInstance().getScrollOffset(document.body,!0)),$common.setLocation(this._dragVisualTemplateInstance,t)}return this._dragVisualTemplateInstance},_findDragSource:function(){for(var e=this.get_element();null!=e;){if(null!=e.__dragDropList)return e.__dragDropList;e=e.parentNode}return null}},Sys.Extended.UI.DraggableListItem.registerClass("Sys.Extended.UI.DraggableListItem",Sys.Extended.UI.BehaviorBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/DropDown.js b/Scripts/AjaxControlToolkit/Release/DropDown.js index 6cc9b3ae6..7fde9e787 100644 --- a/Scripts/AjaxControlToolkit/Release/DropDown.js +++ b/Scripts/AjaxControlToolkit/Release/DropDown.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DropDownBehavior=function(n){Sys.Extended.UI.DropDownBehavior.initializeBase(this,[n]);this._dropDownControl=null;this._highlightBorderColor="#2353B2";this._highlightBackgroundColor="#FFF3DB";this._dropArrowBackgroundColor="#C6E1FF";this._dropArrowImageUrl=null;this._dropArrowWidth="16px";this._oldBackgroundColor=null;this._dropFrame=null;this._dropArrow=null;this._dropArrowImage=null;this._dropWrapper=null;this._isOpen=!1;this._isOver=!1;this._wasClicked=null;this._dropWrapperHoverBehavior=null;this._dropPopupPopupBehavior=null;this._onShowJson=null;this._onHideJson=null;this._dropDownControl$delegates={click:Function.createDelegate(this,this._dropDownControl_onclick),contextmenu:Function.createDelegate(this,this._dropDownControl_oncontextmenu)};this._dropFrame$delegates={click:Function.createDelegate(this,this._dropFrame_onclick),contextmenu:Function.createDelegate(this,this._dropFrame_oncontextmenu)};this._dropWrapper$delegates={click:Function.createDelegate(this,this._dropWrapper_onclick),contextmenu:Function.createDelegate(this,this._dropWrapper_oncontextmenu)};this._document$delegates={click:Function.createDelegate(this,this._document_onclick),contextmenu:Function.createDelegate(this,this._document_oncontextmenu)};this._dropWrapperHoverBehavior$delegates={hover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onhover),unhover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onunhover)}};Sys.Extended.UI.DropDownBehavior.prototype={initialize:function(){var n,t,i;Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"initialize");n=this.get_element();t=n.parentNode;this._dropDownControl==null&&$common.createElementFromTemplate({parent:t,nameTable:this,name:"_dropDownControl",nodeName:"div",visible:!1,cssClasses:this._dropDownControl?null:["ajax__dropdown_panel"],properties:{__GENERATED:!0}});$addHandlers(this._dropDownControl,this._dropDownControl$delegates);i={};this._dropArrowImageUrl&&(i.src=this._dropArrowImageUrl);$common.createElementFromTemplate({parent:t,nameTable:this,name:"_dropFrame",nodeName:"span",visible:!1,children:[{name:"_dropFrameTop",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameRight",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameBottom",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameLeft",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropArrow",nodeName:"div",cssClasses:this._dropArrowImageUrl?["ajax__dropdown_arrow"]:["ajax__dropdown_arrow","ajax__dropdown_arrow_image"],properties:{style:{width:this._dropArrowWidth,backgroundColor:this._dropArrowBackgroundColor}},events:this._dropFrame$delegates,children:[{name:"_dropArrowWrapper",nodeName:"div",visible:!!this._dropArrowImageUrl,cssClasses:["ajax__dropdown_arrow_wrapper"],children:[{name:"_dropArrowImage",nodeName:"img",properties:i}]}]}]});$common.createElementFromTemplate({parent:null,nameTable:this,name:"_dropWrapper",nodeName:"span",properties:{id:n.id+"_dropWrapper",style:{cursor:"default"}},events:this._dropWrapper$delegates,content:n});this._dropPopupPopupBehavior=$create(Sys.Extended.UI.PopupBehavior,{positioningMode:Sys.Extended.UI.PositioningMode.BottomRight,parentElement:n,y:-1},null,null,this._dropDownControl);this._onShowJson&&this._dropPopupPopupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._dropPopupPopupBehavior.set_onHide(this._onHideJson);this._dropWrapperHoverBehavior=$create(Sys.Extended.UI.HoverBehavior,{hoverElement:this._dropFrame},this._dropWrapperHoverBehavior$delegates,null,this._dropWrapper);$addHandlers(document,this._document$delegates)},dispose:function(){var n=this.get_element();this._isOpen&&(this.hide(),this.unhover(),this._isOpen=!1);$common.removeHandlers(document,this._document$delegates);this._onShowJson=null;this._onHideJson=null;this._dropPopupPopupBehavior&&(this._dropPopupPopupBehavior.dispose(),this._dropPopupPopupBehavior=null);this._dropWrapperHoverBehavior&&(this._dropWrapperHoverBehavior.dispose(),this._dropWrapperHoverBehavior=null);this._dropFrame&&($common.removeElement(this._dropFrame),this._dropFrame=null,this._dropFrameTop=null,this._dropFrameRight=null,this._dropFrameBottom=null,this._dropFrameLeft=null,this._dropArrow=null,this._dropArrowWrapper=null,this._dropArrowImage=null);this._dropWrapper&&($common.removeHandlers(this._dropWrapper,this._dropWrapper$delegates),$common.unwrapElement(n,this._dropWrapper),this._dropWrapper=null);this._dropDownControl&&($common.removeHandlers(this._dropDownControl,this._dropDownControl$delegates),this._dropDownControl.__GENERATED&&$common.removeElement(this._dropDownControl),this._dropDownControl=null);Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"dispose")},hover:function(){var t=this.get_element(),n,i,r;this._isOver||(this._isOver=!0,this.raiseHoverOver(Sys.EventArgs.Empty),n=$common.getBounds(t),$common.setLocation(this._dropFrame,{x:0,y:0}),$common.setVisible(this._dropFrame,!0),i=$common.getLocation(this._dropFrame),$common.setVisible(this._dropFrame,!1),n.x-=i.x,n.y-=i.y,$common.setBounds(this._dropFrameTop,{x:n.x,y:n.y,width:n.width,height:1}),$common.setBounds(this._dropFrameRight,{x:n.x+n.width-1,y:n.y,width:1,height:n.height}),$common.setBounds(this._dropFrameBottom,{x:n.x,y:n.y+n.height-1,width:n.width,height:1}),$common.setBounds(this._dropFrameLeft,{x:n.x,y:n.y,width:1,height:n.height}),$common.setBounds(this._dropArrow,{x:n.x+n.width-17,y:n.y+1,width:16,height:n.height-2}),this._dropFrameTop.style.backgroundColor=this._highlightBorderColor,this._dropFrameRight.style.backgroundColor=this._highlightBorderColor,this._dropFrameBottom.style.backgroundColor=this._highlightBorderColor,this._dropFrameLeft.style.backgroundColor=this._highlightBorderColor,$common.setVisible(this._dropFrame,!0),this._oldBackgroundColor||(this._oldBackgroundColor=$common.getCurrentStyle(t,"backgroundColor")),r=/\d{0,3},\s*\d{0,3},\s*\d{0,3}/,t.style.backgroundColor=r.test(this._highlightBackgroundColor)?"rgb("+this._highlightBackgroundColor+")":this._highlightBackgroundColor)},unhover:function(){var n=this.get_element();(this._isOver||!this._isOpen)&&(this._isOver=!1,this._isOpen||($common.setVisible(this._dropFrame,!1),this._oldBackgroundColor?(n.style.backgroundColor=this._oldBackgroundColor,this._oldBackgroundColor=null):n.style.backgroundColor="transparent"),this.raise_hoverOut(Sys.EventArgs.Empty))},show:function(){if(!this._isOpen){this.hover();var n=new Sys.CancelEventArgs;if(this.raise_showing(n),this.raise_popup(n),n.get_cancel())return;this._isOpen=!0;this.populate();(!this._dynamicPopulateBehavior||this._dynamicPopulateBehavior._populated&&this._cacheDynamicResults)&&this._showPopup()}},_showPopup:function(){this._dropPopupPopupBehavior.show();this.raise_shown(Sys.EventArgs.Empty)},hide:function(){if(this._isOpen){var n=new Sys.CancelEventArgs;if(this.raise_hiding(n),n.get_cancel())return;this._isOpen=!1;this._dropPopupPopupBehavior.hide();this.raise_hidden(Sys.EventArgs.Empty)}},_dropWrapperHoverBehavior_onhover:function(){this.hover()},_dropWrapperHoverBehavior_onunhover:function(){this.unhover()},_dropWrapper_onclick:function(n){n.target.tagName!="A"&&(this._isOpen?this.hide():this.show(),this._wasClicked=!0)},_dropWrapper_oncontextmenu:function(n){n.target.tagName!="A"&&(this._wasClicked=!0,n.preventDefault(),this.show())},_dropFrame_onclick:function(){this._isOpen?this.hide():this.show();this._wasClicked=!0},_dropFrame_oncontextmenu:function(n){this._wasClicked=!0;n.preventDefault();this.show()},_dropDownControl_onclick:function(){},_dropDownControl_oncontextmenu:function(n){this._wasClicked=!0;n.preventDefault()},_document_onclick:function(){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_document_oncontextmenu:function(){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_onPopulated:function(n,t){Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"_onPopulated",[n,t]);this._isOpen&&this._showPopup()},get_onShow:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShow():this._onShowJson},set_onShow:function(n){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onShow(n):this._onShowJson=n;this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShowBehavior():null},onShow:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onShow()},get_onHide:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHide():this._onHideJson},set_onHide:function(n){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onHide(n):this._onHideJson=n;this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHideBehavior():null},onHide:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onHide()},get_dropDownControl:function(){return this._dropDownControl},set_dropDownControl:function(n){this._dropDownControl!=n&&(this._dropDownControl=n,this.raisePropertyChanged("dropDownControl"))},get_highlightBorderColor:function(){return this._highlightBorderColor},set_highlightBorderColor:function(n){this._highlightBorderColor!=n&&(this._highlightBorderColor=n,this.raisePropertyChanged("highlightBorderColor"))},get_highlightBackgroundColor:function(){return this._highlightBackgroundColor},set_highlightBackgroundColor:function(n){this._highlightBackgroundColor!=n&&(this._highlightBackgroundColor=n,this.get_isInitialized()&&this._isOpen&&(this._dropWrapper.style.backgroundColor=n),this.raisePropertyChanged("highlightBackgroundColor"))},get_dropArrowBackgroundColor:function(){return this._dropArrowBackgroundColor},set_dropArrowBackgroundColor:function(n){this._dropArrowBackgroundColor!=n&&(this._dropArrowBackgroundColor=n,this.get_isInitialized()&&(this._dropArrow.style.backgroundColor=n),this.raisePropertyChanged("dropArrowBackgroundColor"))},get_dropArrowImageUrl:function(){return this._dropArrowImageUrl},set_dropArrowImageUrl:function(n){this._dropArrowImageUrl!=n&&(this._dropArrowImageUrl=n,this.get_isInitialized()&&(this._dropArrow.className&&(this._dropArrow.className="",this._dropArrowWrapper.style.display="block"),this._dropArrowImage.src=n),this.raisePropertyChanged("dropArrowImageUrl"))},get_dropArrowWidth:function(){return this._dropArrowWidth},set_dropArrowWidth:function(n){this._dropArrowWidth!=n&&(this._dropArrowWidth=n,this.get_isInitialized()&&(this._dropArrow.style.width=n),this.raisePropertyChanged("dropArrowWidth"))},get_isOver:function(){return this._isOver},get_isOpen:function(){return this._isOpen},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raise_showing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},raiseShowing:function(n){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)");this.raise_showing(n)},add_shown:function(n){this.get_events().addHandler("shown",n)},remove_shown:function(n){this.get_events().removeHandler("shown",n)},raise_shown:function(n){var t=this.get_events().getHandler("shown");t&&t(this,n)},raiseShown:function(n){Sys.Extended.Deprecated("raiseShown(eventArgs)","raise_shown(eventArgs)");this.raise_shown(n)},add_popup:function(n){this.get_events().addHandler("popup",n)},remove_popup:function(n){this.get_events().removeHandler("popup",n)},raise_popup:function(n){var t=this.get_events().getHandler("popup");t&&t(this,n)},raisePopup:function(n){Sys.Extended.Deprecated("raisePopup(eventArgs)","raise_popup(eventArgs)");this.raise_popup(n)},add_hiding:function(n){this.get_events().addHandler("hiding",n)},remove_hiding:function(n){this.get_events().removeHandler("hiding",n)},raise_hiding:function(n){var t=this.get_events().getHandler("hiding");t&&t(this,n)},raiseHiding:function(n){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)");this.raise_hiding(n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raise_hidden:function(n){var t=this.get_events().getHandler("hidden");t&&t(this,n)},raiseHidden:function(n){Sys.Extended.Deprecated("raiseHidden(eventArgs)","raise_hidden(eventArgs)");this.raise_hidden(n)},add_hoverOver:function(n){this.get_events().addHandler("hoverOver",n)},remove_hoverOver:function(n){this.get_events().removeHandler("hoverOver",n)},raise_hoverOver:function(n){var t=this.get_events().getHandler("hoverOver");t&&t(this,n)},raiseHoverOver:function(n){Sys.Extended.Deprecated("raiseHoverOver(eventArgs)","raise_hoverOver(eventArgs)");this.raise_hoverOver(n)},add_hoverOut:function(n){this.get_events().addHandler("hoverOut",n)},remove_hoverOut:function(n){this.get_events().removeHandler("hoverOut",n)},raise_hoverOut:function(n){var t=this.get_events().getHandler("hoverOut");t&&t(this,n)},raiseHoverOut:function(n){Sys.Extended.Deprecated("raiseHoverOut(eventArgs)","raise_hoverOut(eventArgs)");this.raise_hoverOut(n)}};Sys.Extended.UI.DropDownBehavior.registerClass("Sys.Extended.UI.DropDownBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.DropDownBehavior=function(e){Sys.Extended.UI.DropDownBehavior.initializeBase(this,[e]),this._dropDownControl=null,this._highlightBorderColor="#2353B2",this._highlightBackgroundColor="#FFF3DB",this._dropArrowBackgroundColor="#C6E1FF",this._dropArrowImageUrl=null,this._dropArrowWidth="16px",this._oldBackgroundColor=null,this._dropFrame=null,this._dropArrow=null,this._dropArrowImage=null,this._dropWrapper=null,this._isOpen=!1,this._isOver=!1,this._wasClicked=null,this._dropWrapperHoverBehavior=null,this._dropPopupPopupBehavior=null,this._onShowJson=null,this._onHideJson=null,this._dropDownControl$delegates={click:Function.createDelegate(this,this._dropDownControl_onclick),contextmenu:Function.createDelegate(this,this._dropDownControl_oncontextmenu)},this._dropFrame$delegates={click:Function.createDelegate(this,this._dropFrame_onclick),contextmenu:Function.createDelegate(this,this._dropFrame_oncontextmenu)},this._dropWrapper$delegates={click:Function.createDelegate(this,this._dropWrapper_onclick),contextmenu:Function.createDelegate(this,this._dropWrapper_oncontextmenu)},this._document$delegates={click:Function.createDelegate(this,this._document_onclick),contextmenu:Function.createDelegate(this,this._document_oncontextmenu)},this._dropWrapperHoverBehavior$delegates={hover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onhover),unhover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onunhover)}},Sys.Extended.UI.DropDownBehavior.prototype={initialize:function(){Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"initialize");var e=this.get_element(),o=e.parentNode;null==this._dropDownControl&&$common.createElementFromTemplate({parent:o,nameTable:this,name:"_dropDownControl",nodeName:"div",visible:!1,cssClasses:this._dropDownControl?null:["ajax__dropdown_panel"],properties:{__GENERATED:!0}}),$addHandlers(this._dropDownControl,this._dropDownControl$delegates);var r={};this._dropArrowImageUrl&&(r.src=this._dropArrowImageUrl),$common.createElementFromTemplate({parent:o,nameTable:this,name:"_dropFrame",nodeName:"span",visible:!1,children:[{name:"_dropFrameTop",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameRight",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameBottom",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameLeft",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropArrow",nodeName:"div",cssClasses:this._dropArrowImageUrl?["ajax__dropdown_arrow"]:["ajax__dropdown_arrow","ajax__dropdown_arrow_image"],properties:{style:{width:this._dropArrowWidth,backgroundColor:this._dropArrowBackgroundColor}},events:this._dropFrame$delegates,children:[{name:"_dropArrowWrapper",nodeName:"div",visible:!!this._dropArrowImageUrl,cssClasses:["ajax__dropdown_arrow_wrapper"],children:[{name:"_dropArrowImage",nodeName:"img",properties:r}]}]}]}),$common.createElementFromTemplate({parent:null,nameTable:this,name:"_dropWrapper",nodeName:"span",properties:{id:e.id+"_dropWrapper",style:{cursor:"default"}},events:this._dropWrapper$delegates,content:e}),this._dropPopupPopupBehavior=$create(Sys.Extended.UI.PopupBehavior,{positioningMode:Sys.Extended.UI.PositioningMode.BottomRight,parentElement:e,y:-1},null,null,this._dropDownControl),this._onShowJson&&this._dropPopupPopupBehavior.set_onShow(this._onShowJson),this._onHideJson&&this._dropPopupPopupBehavior.set_onHide(this._onHideJson),this._dropWrapperHoverBehavior=$create(Sys.Extended.UI.HoverBehavior,{hoverElement:this._dropFrame},this._dropWrapperHoverBehavior$delegates,null,this._dropWrapper),$addHandlers(document,this._document$delegates)},dispose:function(){var e=this.get_element();this._isOpen&&(this.hide(),this.unhover(),this._isOpen=!1),$common.removeHandlers(document,this._document$delegates),this._onShowJson=null,this._onHideJson=null,this._dropPopupPopupBehavior&&(this._dropPopupPopupBehavior.dispose(),this._dropPopupPopupBehavior=null),this._dropWrapperHoverBehavior&&(this._dropWrapperHoverBehavior.dispose(),this._dropWrapperHoverBehavior=null),this._dropFrame&&($common.removeElement(this._dropFrame),this._dropFrame=null,this._dropFrameTop=null,this._dropFrameRight=null,this._dropFrameBottom=null,this._dropFrameLeft=null,this._dropArrow=null,this._dropArrowWrapper=null,this._dropArrowImage=null),this._dropWrapper&&($common.removeHandlers(this._dropWrapper,this._dropWrapper$delegates),$common.unwrapElement(e,this._dropWrapper),this._dropWrapper=null),this._dropDownControl&&($common.removeHandlers(this._dropDownControl,this._dropDownControl$delegates),this._dropDownControl.__GENERATED&&$common.removeElement(this._dropDownControl),this._dropDownControl=null),Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"dispose")},hover:function(){var e=this.get_element();if(!this._isOver){this._isOver=!0,this.raiseHoverOver(Sys.EventArgs.Empty);var o=$common.getBounds(e);$common.setLocation(this._dropFrame,{x:0,y:0}),$common.setVisible(this._dropFrame,!0);var r=$common.getLocation(this._dropFrame);$common.setVisible(this._dropFrame,!1),o.x-=r.x,o.y-=r.y,$common.setBounds(this._dropFrameTop,{x:o.x,y:o.y,width:o.width,height:1}),$common.setBounds(this._dropFrameRight,{x:o.x+o.width-1,y:o.y,width:1,height:o.height}),$common.setBounds(this._dropFrameBottom,{x:o.x,y:o.y+o.height-1,width:o.width,height:1}),$common.setBounds(this._dropFrameLeft,{x:o.x,y:o.y,width:1,height:o.height}),$common.setBounds(this._dropArrow,{x:o.x+o.width-17,y:o.y+1,width:16,height:o.height-2}),this._dropFrameTop.style.backgroundColor=this._highlightBorderColor,this._dropFrameRight.style.backgroundColor=this._highlightBorderColor,this._dropFrameBottom.style.backgroundColor=this._highlightBorderColor,this._dropFrameLeft.style.backgroundColor=this._highlightBorderColor,$common.setVisible(this._dropFrame,!0),this._oldBackgroundColor||(this._oldBackgroundColor=$common.getCurrentStyle(e,"backgroundColor"));var t=/\d{0,3},\s*\d{0,3},\s*\d{0,3}/;t.test(this._highlightBackgroundColor)?e.style.backgroundColor="rgb("+this._highlightBackgroundColor+")":e.style.backgroundColor=this._highlightBackgroundColor}},unhover:function(){var e=this.get_element();!this._isOver&&this._isOpen||(this._isOver=!1,this._isOpen||($common.setVisible(this._dropFrame,!1),this._oldBackgroundColor?(e.style.backgroundColor=this._oldBackgroundColor,this._oldBackgroundColor=null):e.style.backgroundColor="transparent"),this.raise_hoverOut(Sys.EventArgs.Empty))},show:function(){if(!this._isOpen){this.hover();var e=new Sys.CancelEventArgs;if(this.raise_showing(e),this.raise_popup(e),e.get_cancel())return;this._isOpen=!0,this.populate(),(!this._dynamicPopulateBehavior||this._dynamicPopulateBehavior._populated&&this._cacheDynamicResults)&&this._showPopup()}},_showPopup:function(){this._dropPopupPopupBehavior.show(),this.raise_shown(Sys.EventArgs.Empty)},hide:function(){if(this._isOpen){var e=new Sys.CancelEventArgs;if(this.raise_hiding(e),e.get_cancel())return;this._isOpen=!1,this._dropPopupPopupBehavior.hide(),this.raise_hidden(Sys.EventArgs.Empty)}},_dropWrapperHoverBehavior_onhover:function(e,o){this.hover()},_dropWrapperHoverBehavior_onunhover:function(e,o){this.unhover()},_dropWrapper_onclick:function(e){"A"!=e.target.tagName&&(this._isOpen?this.hide():this.show(),this._wasClicked=!0)},_dropWrapper_oncontextmenu:function(e){"A"!=e.target.tagName&&(this._wasClicked=!0,e.preventDefault(),this.show())},_dropFrame_onclick:function(e){this._isOpen?this.hide():this.show(),this._wasClicked=!0},_dropFrame_oncontextmenu:function(e){this._wasClicked=!0,e.preventDefault(),this.show()},_dropDownControl_onclick:function(e){},_dropDownControl_oncontextmenu:function(e){this._wasClicked=!0,e.preventDefault()},_document_onclick:function(e){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_document_oncontextmenu:function(e){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_onPopulated:function(e,o){Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"_onPopulated",[e,o]),this._isOpen&&this._showPopup()},get_onShow:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShow():this._onShowJson},set_onShow:function(e){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onShow(e):this._onShowJson=e,this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShowBehavior():null},onShow:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onShow()},get_onHide:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHide():this._onHideJson},set_onHide:function(e){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onHide(e):this._onHideJson=e,this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHideBehavior():null},onHide:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onHide()},get_dropDownControl:function(){return this._dropDownControl},set_dropDownControl:function(e){this._dropDownControl!=e&&(this._dropDownControl=e,this.raisePropertyChanged("dropDownControl"))},get_highlightBorderColor:function(){return this._highlightBorderColor},set_highlightBorderColor:function(e){this._highlightBorderColor!=e&&(this._highlightBorderColor=e,this.raisePropertyChanged("highlightBorderColor"))},get_highlightBackgroundColor:function(){return this._highlightBackgroundColor},set_highlightBackgroundColor:function(e){this._highlightBackgroundColor!=e&&(this._highlightBackgroundColor=e,this.get_isInitialized()&&this._isOpen&&(this._dropWrapper.style.backgroundColor=e),this.raisePropertyChanged("highlightBackgroundColor"))},get_dropArrowBackgroundColor:function(){return this._dropArrowBackgroundColor},set_dropArrowBackgroundColor:function(e){this._dropArrowBackgroundColor!=e&&(this._dropArrowBackgroundColor=e,this.get_isInitialized()&&(this._dropArrow.style.backgroundColor=e),this.raisePropertyChanged("dropArrowBackgroundColor"))},get_dropArrowImageUrl:function(){return this._dropArrowImageUrl},set_dropArrowImageUrl:function(e){this._dropArrowImageUrl!=e&&(this._dropArrowImageUrl=e,this.get_isInitialized()&&(this._dropArrow.className&&(this._dropArrow.className="",this._dropArrowWrapper.style.display="block"),this._dropArrowImage.src=e),this.raisePropertyChanged("dropArrowImageUrl"))},get_dropArrowWidth:function(){return this._dropArrowWidth},set_dropArrowWidth:function(e){this._dropArrowWidth!=e&&(this._dropArrowWidth=e,this.get_isInitialized()&&(this._dropArrow.style.width=e),this.raisePropertyChanged("dropArrowWidth"))},get_isOver:function(){return this._isOver},get_isOpen:function(){return this._isOpen},add_showing:function(e){this.get_events().addHandler("showing",e)},remove_showing:function(e){this.get_events().removeHandler("showing",e)},raise_showing:function(e){var o=this.get_events().getHandler("showing");o&&o(this,e)},raiseShowing:function(e){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)"),this.raise_showing(e)},add_shown:function(e){this.get_events().addHandler("shown",e)},remove_shown:function(e){this.get_events().removeHandler("shown",e)},raise_shown:function(e){var o=this.get_events().getHandler("shown");o&&o(this,e)},raiseShown:function(e){Sys.Extended.Deprecated("raiseShown(eventArgs)","raise_shown(eventArgs)"),this.raise_shown(e)},add_popup:function(e){this.get_events().addHandler("popup",e)},remove_popup:function(e){this.get_events().removeHandler("popup",e)},raise_popup:function(e){var o=this.get_events().getHandler("popup");o&&o(this,e)},raisePopup:function(e){Sys.Extended.Deprecated("raisePopup(eventArgs)","raise_popup(eventArgs)"),this.raise_popup(e)},add_hiding:function(e){this.get_events().addHandler("hiding",e)},remove_hiding:function(e){this.get_events().removeHandler("hiding",e)},raise_hiding:function(e){var o=this.get_events().getHandler("hiding");o&&o(this,e)},raiseHiding:function(e){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)"),this.raise_hiding(e)},add_hidden:function(e){this.get_events().addHandler("hidden",e)},remove_hidden:function(e){this.get_events().removeHandler("hidden",e)},raise_hidden:function(e){var o=this.get_events().getHandler("hidden");o&&o(this,e)},raiseHidden:function(e){Sys.Extended.Deprecated("raiseHidden(eventArgs)","raise_hidden(eventArgs)"),this.raise_hidden(e)},add_hoverOver:function(e){this.get_events().addHandler("hoverOver",e)},remove_hoverOver:function(e){this.get_events().removeHandler("hoverOver",e)},raise_hoverOver:function(e){var o=this.get_events().getHandler("hoverOver");o&&o(this,e)},raiseHoverOver:function(e){Sys.Extended.Deprecated("raiseHoverOver(eventArgs)","raise_hoverOver(eventArgs)"),this.raise_hoverOver(e)},add_hoverOut:function(e){this.get_events().addHandler("hoverOut",e)},remove_hoverOut:function(e){this.get_events().removeHandler("hoverOut",e)},raise_hoverOut:function(e){var o=this.get_events().getHandler("hoverOut");o&&o(this,e)},raiseHoverOut:function(e){Sys.Extended.Deprecated("raiseHoverOut(eventArgs)","raise_hoverOut(eventArgs)"),this.raise_hoverOut(e)}},Sys.Extended.UI.DropDownBehavior.registerClass("Sys.Extended.UI.DropDownBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/DropShadow.js b/Scripts/AjaxControlToolkit/Release/DropShadow.js index d79147f98..e553fe58c 100644 --- a/Scripts/AjaxControlToolkit/Release/DropShadow.js +++ b/Scripts/AjaxControlToolkit/Release/DropShadow.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DropShadowBehavior=function(n){Sys.Extended.UI.DropShadowBehavior.initializeBase(this,[n]);this._opacity=1;this._width=5;this._shadowDiv=null;this._trackPosition=null;this._trackPositionDelay=50;this._timer=null;this._tickHandler=null;this._roundedBehavior=null;this._shadowRoundedBehavior=null;this._rounded=!1;this._radius=5;this._lastX=null;this._lastY=null;this._lastW=null;this._lastH=null};Sys.Extended.UI.DropShadowBehavior.prototype={initialize:function(){Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"initialize");e=this.get_element();$common.getCurrentStyle(e,"position",e.style.position)!="absolute"&&(e.style.position="relative");this._rounded&&this.setupRounded();this._trackPosition&&this.startTimer();this.setShadow()},dispose:function(){this.stopTimer();this.disposeShadowDiv();Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"dispose")},buildShadowDiv:function(){if((e=this.get_element(),this.get_isInitialized()&&e&&this._width)&&e.style.boxShadow==undefined&&e.style.MozBoxShadow==undefined&&e.style.WebkitBoxShadow==undefined){var n=document.createElement("DIV");n.style.backgroundColor="black";n.style.position="absolute";e.id&&(n.id=e.id+"_DropShadow");this._shadowDiv=n;e.parentNode.appendChild(n);this._rounded?(this._shadowDiv.style.height=Math.max(0,e.offsetHeight-2*this._radius)+"px",this._shadowRoundedBehavior?this._shadowRoundedBehavior.set_radius(this._radius):this._shadowRoundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,{Radius:this._radius},null,null,this._shadowDiv)):this._shadowRoundedBehavior&&this._shadowRoundedBehavior.set_radius(0);this._opacity!=1&&this.setupOpacity();this.setShadow(!1,!0);this.updateZIndex()}},disposeShadowDiv:function(){this._shadowDiv&&(this._shadowDiv.parentNode&&this._shadowDiv.parentNode.removeChild(this._shadowDiv),this._shadowDiv=null);this._shadowRoundedBehavior&&(this._shadowRoundedBehavior.dispose(),this._shadowRoundedBehavior=null)},onTimerTick:function(){this.setShadow()},startTimer:function(){this._timer||(this._tickHandler||(this._tickHandler=Function.createDelegate(this,this.onTimerTick)),this._timer=new Sys.Timer,this._timer.set_interval(this._trackPositionDelay),this._timer.add_tick(this._tickHandler),this._timer.set_enabled(!0))},stopTimer:function(){this._timer&&(this._timer.remove_tick(this._tickHandler),this._timer.set_enabled(!1),this._timer.dispose(),this._timer=null)},setShadow:function(n,t){var u,i,f,r,o;(e=this.get_element(),this.get_isInitialized()&&e&&(this._width||n))&&(e.style.boxShadow==undefined&&e.style.MozBoxShadow==undefined&&e.style.WebkitBoxShadow==undefined?(u=this._shadowDiv,u||this.buildShadowDiv(),i={x:e.offsetLeft,y:e.offsetTop},(n||this._lastX!=i.x||this._lastY!=i.y||!u)&&(this._lastX=i.x,this._lastY=i.y,r=this.get_width(),i.x+=r,i.y+=r,$common.setLocation(this._shadowDiv,i)),f=e.offsetHeight,r=e.offsetWidth,(n||f!=this._lastH||r!=this._lastW||!u)&&(this._lastW=r,this._lastH=f,this._rounded&&u&&!t?(this.disposeShadowDiv(),this.setShadow()):(this._shadowDiv.style.width=r+"px",this._shadowDiv.style.height=f+"px")),this._shadowDiv&&(this._shadowDiv.style.visibility=$common.getCurrentStyle(e,"visibility"))):(o=this._opacity==".25"?this._width+"px "+this._width+"px "+this._width+"px #D3D3D3":this._opacity==".5"?this._width+"px "+this._width+"px "+this._width+"px #778899":this._opacity==".75"?this._width+"px "+this._width+"px "+this._width+"px #808080":this._width+"px "+this._width+"px "+this._width+"px #000",e.style.boxShadow!=undefined?e.style.boxShadow=o:e.style.MozBoxShadow!=undefined?e.style.MozBoxShadow=o:e.style.WebkitBoxShadow!=undefined&&(e.style.WebkitBoxShadow=o)))},setupOpacity:function(){this.get_isInitialized()&&this._shadowDiv&&$common.setElementOpacity(this._shadowDiv,this._opacity)},setupRounded:function(){!this._roundedBehavior&&this._rounded&&(this._roundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,null,null,null,this.get_element()));this._roundedBehavior&&this._roundedBehavior.set_radius(this._rounded?this._radius:0)},updateZIndex:function(){if(this._shadowDiv){var i=this.get_element(),n=i.style.zIndex,t=this._shadowDiv.style.zIndex;t&&n&&n>t||(n=Math.max(2,n),t=n-1,i.style.zIndex=n,this._shadowDiv.style.zIndex=t)}},updateRoundedCorners:function(){this.get_isInitialized()&&(this.setupRounded(),this.disposeShadowDiv(),this.setShadow())},get_opacity:function(){return this._opacity},set_opacity:function(n){this._opacity!=n&&(this._opacity=n,this.setShadow(),this.setupOpacity(),this.raisePropertyChanged("opacity"))},get_Opacity:function(){return Sys.Extended.Deprecated("get_Opacity","get_opacity"),this.get_opacity()},set_Opacity:function(n){Sys.Extended.Deprecated("set_Opacity","set_opacity");this.set_opacity(n)},get_rounded:function(){return this._rounded},set_rounded:function(n){n!=this._rounded&&(this._rounded=n,this.updateRoundedCorners(),this.raisePropertyChanged("rounded"))},get_Rounded:function(){return Sys.Extended.Deprecated("get_Rounded","get_rounded"),this.get_rounded()},set_Rounded:function(n){Sys.Extended.Deprecated("set_Rounded","set_rounded");this.set_rounded(n)},get_radius:function(){return this._radius},set_radius:function(n){n!=this._radius&&(this._radius=n,this.updateRoundedCorners(),this.raisePropertyChanged("radius"))},get_Radius:function(){return Sys.Extended.Deprecated("get_Radius","get_radius"),this.get_radius()},set_Radius:function(n){Sys.Extended.Deprecated("set_Radius","set_radius");this.set_radius(n)},get_width:function(){return this._width},set_width:function(n){n!=this._width&&(this._width=n,this._shadowDiv&&$common.setVisible(this._shadowDiv,n>0),this.setShadow(!0),this.raisePropertyChanged("width"))},get_Width:function(){return Sys.Extended.Deprecated("get_Width","get_width"),this.get_width()},set_Width:function(n){Sys.Extended.Deprecated("set_Width","set_width");this.set_width(n)},get_trackPositionDelay:function(){return this._trackPositionDelay},set_trackPositionDelay:function(n){n!=this._trackPositionDelay&&(this._trackPositionDelay=n,e||(e=this.get_element()),e.style.boxShadow==undefined&&e.style.MozBoxShadow==undefined&&e.style.WebkitBoxShadow==undefined&&(this._trackPosition&&(this.stopTimer(),this.startTimer()),this.raisePropertyChanged("trackPositionDelay")))},get_TrackPositionDelay:function(){return Sys.Extended.Deprecated("get_TrackPositionDelay","get_trackPositionDelay"),this.get_trackPositionDelay()},set_TrackPositionDelay:function(n){Sys.Extended.Deprecated("set_TrackPositionDelay","set_trackPositionDelay");this.set_trackPositionDelay(n)},get_trackPosition:function(){return this._trackPosition},set_trackPosition:function(n){n!=this._trackPosition&&(this._trackPosition=n,e||(e=this.get_element()),e.style.boxShadow==undefined&&e.style.MozBoxShadow==undefined&&e.style.WebkitBoxShadow==undefined&&(this.get_element()&&(n?this.startTimer():this.stopTimer()),this.raisePropertyChanged("trackPosition")))},get_TrackPosition:function(){return Sys.Extended.Deprecated("get_TrackPosition","get_trackPosition"),this.get_trackPosition()},set_TrackPosition:function(n){Sys.Extended.Deprecated("set_TrackPosition","set_trackPosition");this.set_trackPosition(n)}};Sys.Extended.UI.DropShadowBehavior.registerClass("Sys.Extended.UI.DropShadowBehavior",Sys.Extended.UI.BehaviorBase); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.DropShadowBehavior=function(t){Sys.Extended.UI.DropShadowBehavior.initializeBase(this,[t]),this._opacity=1,this._width=5,this._shadowDiv=null,this._trackPosition=null,this._trackPositionDelay=50,this._timer=null,this._tickHandler=null,this._roundedBehavior=null,this._shadowRoundedBehavior=null,this._rounded=!1,this._radius=5,this._lastX=null,this._lastY=null,this._lastW=null,this._lastH=null},Sys.Extended.UI.DropShadowBehavior.prototype={initialize:function(){Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"initialize"),e=this.get_element(),"absolute"!=$common.getCurrentStyle(e,"position",e.style.position)&&(e.style.position="relative"),this._rounded&&this.setupRounded(),this._trackPosition&&this.startTimer(),this.setShadow()},dispose:function(){this.stopTimer(),this.disposeShadowDiv(),Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"dispose")},buildShadowDiv:function(){if(e=this.get_element(),this.get_isInitialized()&&e&&this._width&&void 0==e.style.boxShadow&&void 0==e.style.MozBoxShadow&&void 0==e.style.WebkitBoxShadow){var t=document.createElement("DIV");t.style.backgroundColor="black",t.style.position="absolute",e.id&&(t.id=e.id+"_DropShadow"),this._shadowDiv=t,e.parentNode.appendChild(t),this._rounded?(this._shadowDiv.style.height=Math.max(0,e.offsetHeight-2*this._radius)+"px",this._shadowRoundedBehavior?this._shadowRoundedBehavior.set_radius(this._radius):this._shadowRoundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,{Radius:this._radius},null,null,this._shadowDiv)):this._shadowRoundedBehavior&&this._shadowRoundedBehavior.set_radius(0),1!=this._opacity&&this.setupOpacity(),this.setShadow(!1,!0),this.updateZIndex()}},disposeShadowDiv:function(){this._shadowDiv&&(this._shadowDiv.parentNode&&this._shadowDiv.parentNode.removeChild(this._shadowDiv),this._shadowDiv=null),this._shadowRoundedBehavior&&(this._shadowRoundedBehavior.dispose(),this._shadowRoundedBehavior=null)},onTimerTick:function(){this.setShadow()},startTimer:function(){this._timer||(this._tickHandler||(this._tickHandler=Function.createDelegate(this,this.onTimerTick)),this._timer=new Sys.Timer,this._timer.set_interval(this._trackPositionDelay),this._timer.add_tick(this._tickHandler),this._timer.set_enabled(!0))},stopTimer:function(){this._timer&&(this._timer.remove_tick(this._tickHandler),this._timer.set_enabled(!1),this._timer.dispose(),this._timer=null)},setShadow:function(t,i){if(e=this.get_element(),this.get_isInitialized()&&e&&(this._width||t))if(void 0==e.style.boxShadow&&void 0==e.style.MozBoxShadow&&void 0==e.style.WebkitBoxShadow){var s=this._shadowDiv;s||this.buildShadowDiv();var o={x:e.offsetLeft,y:e.offsetTop};if(t||this._lastX!=o.x||this._lastY!=o.y||!s){this._lastX=o.x,this._lastY=o.y;var d=this.get_width();o.x+=d,o.y+=d,$common.setLocation(this._shadowDiv,o)}var h=e.offsetHeight,d=e.offsetWidth;!t&&h==this._lastH&&d==this._lastW&&s||(this._lastW=d,this._lastH=h,this._rounded&&s&&!i?(this.disposeShadowDiv(),this.setShadow()):(this._shadowDiv.style.width=d+"px",this._shadowDiv.style.height=h+"px")),this._shadowDiv&&(this._shadowDiv.style.visibility=$common.getCurrentStyle(e,"visibility"))}else{var a;a=".25"==this._opacity?this._width+"px "+this._width+"px "+this._width+"px #D3D3D3":".5"==this._opacity?this._width+"px "+this._width+"px "+this._width+"px #778899":".75"==this._opacity?this._width+"px "+this._width+"px "+this._width+"px #808080":this._width+"px "+this._width+"px "+this._width+"px #000",void 0!=e.style.boxShadow?e.style.boxShadow=a:void 0!=e.style.MozBoxShadow?e.style.MozBoxShadow=a:void 0!=e.style.WebkitBoxShadow&&(e.style.WebkitBoxShadow=a)}},setupOpacity:function(){this.get_isInitialized()&&this._shadowDiv&&$common.setElementOpacity(this._shadowDiv,this._opacity)},setupRounded:function(){!this._roundedBehavior&&this._rounded&&(this._roundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,null,null,null,this.get_element())),this._roundedBehavior&&this._roundedBehavior.set_radius(this._rounded?this._radius:0)},updateZIndex:function(){if(this._shadowDiv){var t=this.get_element(),i=t.style.zIndex,e=this._shadowDiv.style.zIndex;e&&i&&i>e||(i=Math.max(2,i),e=i-1,t.style.zIndex=i,this._shadowDiv.style.zIndex=e)}},updateRoundedCorners:function(){this.get_isInitialized()&&(this.setupRounded(),this.disposeShadowDiv(),this.setShadow())},get_opacity:function(){return this._opacity},set_opacity:function(t){this._opacity!=t&&(this._opacity=t,this.setShadow(),this.setupOpacity(),this.raisePropertyChanged("opacity"))},get_Opacity:function(){return Sys.Extended.Deprecated("get_Opacity","get_opacity"),this.get_opacity()},set_Opacity:function(t){Sys.Extended.Deprecated("set_Opacity","set_opacity"),this.set_opacity(t)},get_rounded:function(){return this._rounded},set_rounded:function(t){t!=this._rounded&&(this._rounded=t,this.updateRoundedCorners(),this.raisePropertyChanged("rounded"))},get_Rounded:function(){return Sys.Extended.Deprecated("get_Rounded","get_rounded"),this.get_rounded()},set_Rounded:function(t){Sys.Extended.Deprecated("set_Rounded","set_rounded"),this.set_rounded(t)},get_radius:function(){return this._radius},set_radius:function(t){t!=this._radius&&(this._radius=t,this.updateRoundedCorners(),this.raisePropertyChanged("radius"))},get_Radius:function(){return Sys.Extended.Deprecated("get_Radius","get_radius"),this.get_radius()},set_Radius:function(t){Sys.Extended.Deprecated("set_Radius","set_radius"),this.set_radius(t)},get_width:function(){return this._width},set_width:function(t){t!=this._width&&(this._width=t,this._shadowDiv&&$common.setVisible(this._shadowDiv,t>0),this.setShadow(!0),this.raisePropertyChanged("width"))},get_Width:function(){return Sys.Extended.Deprecated("get_Width","get_width"),this.get_width()},set_Width:function(t){Sys.Extended.Deprecated("set_Width","set_width"),this.set_width(t)},get_trackPositionDelay:function(){return this._trackPositionDelay},set_trackPositionDelay:function(t){t!=this._trackPositionDelay&&(this._trackPositionDelay=t,e||(e=this.get_element()),void 0==e.style.boxShadow&&void 0==e.style.MozBoxShadow&&void 0==e.style.WebkitBoxShadow&&(this._trackPosition&&(this.stopTimer(),this.startTimer()),this.raisePropertyChanged("trackPositionDelay")))},get_TrackPositionDelay:function(){return Sys.Extended.Deprecated("get_TrackPositionDelay","get_trackPositionDelay"),this.get_trackPositionDelay()},set_TrackPositionDelay:function(t){Sys.Extended.Deprecated("set_TrackPositionDelay","set_trackPositionDelay"),this.set_trackPositionDelay(t)},get_trackPosition:function(){return this._trackPosition},set_trackPosition:function(t){t!=this._trackPosition&&(this._trackPosition=t,e||(e=this.get_element()),void 0==e.style.boxShadow&&void 0==e.style.MozBoxShadow&&void 0==e.style.WebkitBoxShadow&&(this.get_element()&&(t?this.startTimer():this.stopTimer()),this.raisePropertyChanged("trackPosition")))},get_TrackPosition:function(){return Sys.Extended.Deprecated("get_TrackPosition","get_trackPosition"),this.get_trackPosition()},set_TrackPosition:function(t){Sys.Extended.Deprecated("set_TrackPosition","set_trackPosition"),this.set_trackPosition(t)}},Sys.Extended.UI.DropShadowBehavior.registerClass("Sys.Extended.UI.DropShadowBehavior",Sys.Extended.UI.BehaviorBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/DropWatcher.js b/Scripts/AjaxControlToolkit/Release/DropWatcher.js index 257f49ff1..d6aece2af 100644 --- a/Scripts/AjaxControlToolkit/Release/DropWatcher.js +++ b/Scripts/AjaxControlToolkit/Release/DropWatcher.js @@ -1 +1 @@ -function callbackSuccessStub(n,t){var i=t.split(":"),u=i[0],r=$find(u);r&&r._onCallbackSuccess(n,i[1])}function callbackErrorStub(n,t){var i=t.split(":"),u=i[0],r=$find(u);alert("error");r&&r._onCallbackError(n,i[1])}Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.RepeatDirection=function(){throw Error.invalidOperation();};Sys.Extended.UI.RepeatDirection.prototype={Vertical:0,Horizontal:1};Sys.Extended.UI.RepeatDirection.registerEnum("Sys.Extended.UI.RepeatDirection");Sys.Extended.UI.DragDropList=function(n){Sys.Extended.UI.DragDropList.initializeBase(this,[n]);this._acceptedDataTypes=[];this._isDragging=null;this._dataType=null;this._dragMode=Sys.Extended.UI.DragMode.Move;this._dragVisual=null;this._direction=Sys.Extended.UI.RepeatDirection.Vertical;this._emptyTemplate=null;this._emptyTemplateInstance=null;this._dropCueTemplate=null;this._dropCueTemplateInstance=null;this._floatContainerInstance=null;this._originalParent=null;this._originalNextSibling=null;this._originalZIndex=null;this._currentContext=null;this._data=null};Sys.Extended.UI.DragDropList.IsValidDataType=function(n){return n&&typeof n=="string"&&n.length>=4?n.substring(0,4)==="HTML":!1};Sys.Extended.UI.DragDropList.prototype={get_data:function(){return this._data},set_data:function(n){this._data=n},initialize:function(){Sys.Extended.UI.DragDropList.callBaseMethod(this,"initialize");this.get_element().__dragDropList=this;Sys.Extended.UI.DragDropManager.registerDropTarget(this)},startDragDrop:function(n,t,i){this._isDragging||(this._isDragging=!0,this._currentContext=t,i?this._dragVisual=i:i=this.createDragVisual(n),Sys.Extended.UI.DragDropManager.startDragDrop(this,i,t,!(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version>7&&Sys.Browser.documentMode!=0)))},createDragVisual:function(n){var i,u,t,r,f,e;return this._dragVisual=this._dragMode===Sys.Extended.UI.DragMode.Copy?n.cloneNode(!0):n,i=Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(n,!0),this._dragVisual.preDragWidth=this._dragVisual.style.width,this._dragVisual.preDragHeight=this._dragVisual.style.height,this._dragVisual.style.width=n.offsetWidth+"px",this._dragVisual.style.height=n.offsetHeight+"px",this._dragVisual.style.opacity="0.4",this._dragVisual.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);",this._originalZIndex=this._dragVisual.style.zIndex,this._dragVisual.style.zIndex=Sys.Extended.UI.zIndex.DropWatcherDragVisual,this._originalParent=this._dragVisual.parentNode,this._originalNextSibling=Sys.Extended.UI.DragDropManager._getInstance().getNextSibling(this._dragVisual),u=$common.getLocation(n),t=this._getFloatContainer(),$common.setLocation(t,u),Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._dragVisual)&&this._dragVisual.parentNode.removeChild(this._dragVisual),t.appendChild(this._dragVisual),r=Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(n,!0),(i.x!==r.x||i.y!==r.y)&&(f=Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(i,r),e=Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(u,f),$common.setLocation(t,e)),t},get_emptyTemplate:function(){return this._emptyTemplate},set_emptyTemplate:function(n){this._emptyTemplate=n},get_dragDataType:function(){return this._dataType},set_dragDataType:function(n){this._dataType=n},getDragData:function(n){return n},get_dragMode:function(){return this._dragMode},set_dragMode:function(n){this._dragMode=n},dispose:function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this);this.get_element().__dragDropList=null;Sys.Extended.UI.DragDropList.callBaseMethod(this,"dispose")},onDragStart:function(){this._validate()},onDrag:function(){},onDragEnd:function(n){if(this._floatContainerInstance?(this._dragMode===Sys.Extended.UI.DragMode.Copy?this._floatContainerInstance.removeChild(this._dragVisual):(this._dragVisual.style.opacity="0.999",this._dragVisual.style.filter="",this._dragVisual.style.zIndex=this._originalZIndex?this._originalZIndex:0,this._dragVisual.preDragWidth!=null&&(this._dragVisual.style.width=this._dragVisual.preDragWidth,this._dragVisual.preDragWidth=null),this._dragVisual.preDragHeight!=null&&(this._dragVisual.style.height=this._dragVisual.preDragHeight,this._dragVisual.preDragHeight=null),n?(this._dragVisual.parentNode.removeChild(this._dragVisual),this._originalNextSibling!=null?this._originalParent.insertBefore(this._dragVisual,this._originalNextSibling):this._originalParent.appendChild(this._dragVisual)):this._dragVisual.parentNode===this._floatContainerInstance&&this._dragVisual.parentNode.removeChild(this._dragVisual)),document.body.removeChild(this._floatContainerInstance)):this._dragVisual.parentNode.removeChild(this._dragVisual),!n&&this._data&&this._dragMode===Sys.Extended.UI.DragMode.Move){var t=this.getDragData(this._currentContext);this._data&&t&&Array.remove(this._data,t)}this._isDragging=!1;this._validate()},get_direction:function(){return this._direction},set_direction:function(n){this._direction=n},get_acceptedDataTypes:function(){return this._acceptedDataTypes},set_acceptedDataTypes:function(n){this._acceptedDataTypes=typeof n=="string"?n.split(","):n},get_dropCueTemplate:function(){return this._dropCueTemplate},set_dropCueTemplate:function(n){this._dropCueTemplate=n},get_dropTargetElement:function(){return this.get_element()},canDrop:function(n,t){for(var i=0;i0&&(t=!1);this._setEmptyTemplateVisible(t)},_setEmptyTemplateVisible:function(n){this._emptyTemplate&&(n?this._emptyTemplateInstance?Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)||this.get_element().appendChild(this._emptyTemplateInstance):this._emptyTemplateInstance=this._emptyTemplate.createInstance(this.get_element()).instanceElement:this._emptyTemplateInstance&&Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)&&this.get_element().removeChild(this._emptyTemplateInstance))},_getFloatContainer:function(){if(this._floatContainerInstance)Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._floatContainerInstance)||document.body.appendChild(this._floatContainerInstance);else{this._floatContainerInstance=document.createElement(this.get_element().tagName);var n="0px 0px 0px 0px";this._floatContainerInstance.style.position="absolute";this._floatContainerInstance.style.padding=n;this._floatContainerInstance.style.margin=n;this._floatContainerInstance.className="dragVisualContainer";document.body.appendChild(this._floatContainerInstance)}return this._floatContainerInstance}};Sys.Extended.UI.DragDropList.registerClass("Sys.Extended.UI.DragDropList",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);Sys.Extended.UI.DragDropWatcher=function(n){Sys.Extended.UI.DragDropWatcher.initializeBase(this,[n]);this._childList=[];this._inProgressDrops={};this._postbackCode=null;this._callbackCssStyle=null;this._argReplaceString=null;this._argContextString=null;this._argErrorString=null;this._argSuccessString=null};Sys.Extended.UI.DragDropWatcher.prototype={dispose:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"initialize");this._saveChildOrder()},add_reorderComplete:function(n){this.get_events().addHandler("reorderComplete",n)},remove_reorderComplete:function(n){this.get_events().removeHandler("reorderComplete",n)},raiseReorderComplete:function(){var n=this.get_events().getHandler("reorderComplete");n&&n(this,Sys.EventArgs.Empty)},findChild:function(n,t){for(var i,u=0,f=n.childNodes,r=0;r0)return!1;if(u=Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"canDrop",[n,t,i]),u){var o=$common.getBounds(i),e,f=!1,s=this.get_element();for(r=s.firstChild;r!=null&&!f;r=r.nextSibling)if(r.id){if(e=$common.getBounds(r),o.y<=e.y)break;f=r.id.lastIndexOf("Insert",r.id.length-6)!=-1}u=!f}return u},drop:function(n,t,i){var r,u,f;(Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"drop",[n,t,i]),r=i.id,this._postbackCode&&r)&&(u=this.findChild(this.get_element(),r),Sys.Debug.assert(u!=-1,String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_NoChild,r)),f=this._getSavedChildIndex(r),u!=-1&&u!=f&&(this._saveChildOrder(),this.doPostBack(r,u,f)))},_setupDropState:function(n,t,i){if(n){var r=$get(n);this._inProgressDrops[n]={oldCss:r.className,newIndex:t,oldIndex:i};this._callbackCssStyle&&(r.className=this._callbackCssStyle)}},_onDropCallback:function(n){var t,i;if(n)return this.set_ClientState("true"),t=this._inProgressDrops[n],t&&(i=$get(n),this._callbackCssStyle&&(i.className=t.oldCss),delete this._inProgressDrops[n]),t},doPostBack:function(n,t,i){var f=this._inProgressDrops[n],u,r;f||(u="reorder:"+n+":"+i.toString()+":"+t.toString(),r=this._postbackCode.replace(this._argReplaceString,u),this._argSuccessString&&(r=r.replace(this._argSuccessString,"callbackSuccessStub")),this._argErrorString&&(r=r.replace(this._argErrorString,"callbackErrorStub")),this._argContextString&&(r=r.replace(this._argContextString,this.get_id()+":"+n)),this._setupDropState(n,t,i),window.setTimeout(r,0))},_onCallbackSuccess:function(n,t){n&&n.length>0?this._onCallbackError(n,t):(this._onDropCallback(t),this.raiseReorderComplete())},_onCallbackError:function(n,t){var i=this._onDropCallback(t);(i.oldIndex||i.newIndex)&&(this._saveChildOrder(),this.doReorder(i.newIndex,i.oldIndex,!0));alert(String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_CallbackError,n))},doReorder:function(n,t,i){var f=this.get_element(),u=this._childList,r,e,o,s;if(n>=0&&u.length>n&&n!=t){if(r=$get(u[n]),e=this._inProgressDrops[r.id],e)return;if(r){t>n&&t++;o=t>=u.length;try{f.removeChild(r)}catch(f){}o?f.appendChild(r):(s=$get(u[t]),f.insertBefore(r,s));i?(this._saveChildOrder(),this.raiseReorderComplete()):this.doPostBack(r.id,t,n)}}},getItem:function(n){return this._childList||this._saveChildOrder(),this._childList[n]},_getSavedChildIndex:function(n){if(this._childList&&n)for(var t=0;t=4)&&"HTML"===t.substring(0,4)},Sys.Extended.UI.DragDropList.prototype={get_data:function(){return this._data},set_data:function(t){this._data=t},initialize:function(){Sys.Extended.UI.DragDropList.callBaseMethod(this,"initialize"),this.get_element().__dragDropList=this,Sys.Extended.UI.DragDropManager.registerDropTarget(this)},startDragDrop:function(t,e,i){this._isDragging||(this._isDragging=!0,this._currentContext=e,i?this._dragVisual=i:i=this.createDragVisual(t),Sys.Extended.UI.DragDropManager.startDragDrop(this,i,e,!(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version>7&&0!=Sys.Browser.documentMode)))},createDragVisual:function(t){this._dragMode===Sys.Extended.UI.DragMode.Copy?this._dragVisual=t.cloneNode(!0):this._dragVisual=t;Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(t,!0);this._dragVisual.preDragWidth=this._dragVisual.style.width,this._dragVisual.preDragHeight=this._dragVisual.style.height,this._dragVisual.style.width=t.offsetWidth+"px",this._dragVisual.style.height=t.offsetHeight+"px",this._originalOpacity=this._dragVisual.style.opacity,this._dragVisual.style.opacity="0.4",this._dragVisual.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);",this._originalZIndex=this._dragVisual.style.zIndex,this._dragVisual.style.zIndex=Sys.Extended.UI.zIndex.DropWatcherDragVisual,this._originalParent=this._dragVisual.parentNode,this._originalNextSibling=Sys.Extended.UI.DragDropManager._getInstance().getNextSibling(this._dragVisual);var e=$common.getLocation(t),i=this._getFloatContainer();return $common.setLocation(i,e),Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._dragVisual)&&this._dragVisual.parentNode.removeChild(this._dragVisual),i.appendChild(this._dragVisual),i},get_emptyTemplate:function(){return this._emptyTemplate},set_emptyTemplate:function(t){this._emptyTemplate=t},get_dragDataType:function(){return this._dataType},set_dragDataType:function(t){this._dataType=t},getDragData:function(t){return t},get_dragMode:function(){return this._dragMode},set_dragMode:function(t){this._dragMode=t},dispose:function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this),this.get_element().__dragDropList=null,Sys.Extended.UI.DragDropList.callBaseMethod(this,"dispose")},onDragStart:function(){this._validate()},onDrag:function(){},onDragEnd:function(t){if(this._floatContainerInstance?(this._dragMode===Sys.Extended.UI.DragMode.Copy?this._floatContainerInstance.removeChild(this._dragVisual):(this._dragVisual.style.filter="",""===this._originalOpacity?this._dragVisual.style.removeProperty("opacity"):this._dragVisual.style.opacity=this._originalOpacity,""===this._originalZIndex?this._dragVisual.style.removeProperty("z-index"):this._dragVisual.style.zIndex=this._originalZIndex,null!=this._dragVisual.preDragWidth&&(this._dragVisual.style.width=this._dragVisual.preDragWidth,this._dragVisual.preDragWidth=null),null!=this._dragVisual.preDragHeight&&(this._dragVisual.style.height=this._dragVisual.preDragHeight,this._dragVisual.preDragHeight=null),t?(this._dragVisual.parentNode.removeChild(this._dragVisual),null!=this._originalNextSibling?this._originalParent.insertBefore(this._dragVisual,this._originalNextSibling):this._originalParent.appendChild(this._dragVisual)):this._dragVisual.parentNode===this._floatContainerInstance&&this._dragVisual.parentNode.removeChild(this._dragVisual)),document.body.removeChild(this._floatContainerInstance)):this._dragVisual.parentNode.removeChild(this._dragVisual),!t&&this._data&&this._dragMode===Sys.Extended.UI.DragMode.Move){var e=this.getDragData(this._currentContext);this._data&&e&&Array.remove(this._data,e)}this._isDragging=!1,this._validate()},get_direction:function(){return this._direction},set_direction:function(t){this._direction=t},get_acceptedDataTypes:function(){return this._acceptedDataTypes},set_acceptedDataTypes:function(t){"string"==typeof t?this._acceptedDataTypes=t.split(","):this._acceptedDataTypes=t},get_dropCueTemplate:function(){return this._dropCueTemplate},set_dropCueTemplate:function(t){this._dropCueTemplate=t},get_dropTargetElement:function(){return this.get_element()},canDrop:function(t,e,i){for(var a=0;a0&&(t=!1),this._setEmptyTemplateVisible(t)},_setEmptyTemplateVisible:function(t){this._emptyTemplate&&(t?this._emptyTemplateInstance?Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)||this.get_element().appendChild(this._emptyTemplateInstance):this._emptyTemplateInstance=this._emptyTemplate.createInstance(this.get_element()).instanceElement:this._emptyTemplateInstance&&Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)&&this.get_element().removeChild(this._emptyTemplateInstance))},_getFloatContainer:function(){if(this._floatContainerInstance)Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._floatContainerInstance)||document.body.appendChild(this._floatContainerInstance);else{this._floatContainerInstance=document.createElement(this.get_element().tagName);var t="0px 0px 0px 0px";this._floatContainerInstance.style.position="absolute",this._floatContainerInstance.style.padding=t,this._floatContainerInstance.style.margin=t,this._floatContainerInstance.className="dragVisualContainer",document.body.appendChild(this._floatContainerInstance)}return this._floatContainerInstance}},Sys.Extended.UI.DragDropList.registerClass("Sys.Extended.UI.DragDropList",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable),Sys.Extended.UI.DragDropWatcher=function(t){Sys.Extended.UI.DragDropWatcher.initializeBase(this,[t]),this._childList=new Array,this._inProgressDrops=new Object,this._postbackCode=null,this._callbackCssStyle=null,this._argReplaceString=null,this._argContextString=null,this._argErrorString=null,this._argSuccessString=null},Sys.Extended.UI.DragDropWatcher.prototype={dispose:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"initialize"),this._saveChildOrder()},add_reorderComplete:function(t){this.get_events().addHandler("reorderComplete",t)},remove_reorderComplete:function(t){this.get_events().removeHandler("reorderComplete",t)},raiseReorderComplete:function(){var t=this.get_events().getHandler("reorderComplete");t&&t(this,Sys.EventArgs.Empty)},findChild:function(t,e){for(var i=0,a=t.childNodes,r=0;r0)return!1;var a=Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"canDrop",[t,e,i]);if(a){for(var r,s=$common.getBounds(i),n=!1,o=this.get_element(),l=o.firstChild;null!=l&&!n;l=l.nextSibling)if(l.id){if(r=$common.getBounds(l),s.y<=r.y)break;n=l.id.lastIndexOf("Insert",l.id.length-6)!=-1}a=!n}return a},drop:function(t,e,i){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"drop",[t,e,i]);var a=i.id;if(this._postbackCode&&a){var r=this.findChild(this.get_element(),a);Sys.Debug.assert(r!=-1,String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_NoChild,a));var s=this._getSavedChildIndex(a);r!=-1&&r!=s&&(this._saveChildOrder(),this.doPostBack(a,r,s))}},_setupDropState:function(t,e,i){if(t){var a=$get(t);this._inProgressDrops[t]={oldCss:a.className,newIndex:e,oldIndex:i},this._callbackCssStyle&&(a.className=this._callbackCssStyle)}},_onDropCallback:function(t){if(t){this.set_ClientState("true");var e=this._inProgressDrops[t];if(e){var i=$get(t);this._callbackCssStyle&&(i.className=e.oldCss),delete this._inProgressDrops[t]}return e}},doPostBack:function(t,e,i){var a=this._inProgressDrops[t];if(!a){var r="reorder:"+t+":"+i.toString()+":"+e.toString(),s=this._postbackCode.replace(this._argReplaceString,r);this._argSuccessString&&(s=s.replace(this._argSuccessString,"callbackSuccessStub")),this._argErrorString&&(s=s.replace(this._argErrorString,"callbackErrorStub")),this._argContextString&&(s=s.replace(this._argContextString,this.get_id()+":"+t)),this._setupDropState(t,e,i),window.setTimeout(s,0)}},_onCallbackSuccess:function(t,e){t&&t.length>0?this._onCallbackError(t,e):(this._onDropCallback(e),this.raiseReorderComplete())},_onCallbackError:function(t,e){var i=this._onDropCallback(e);(i.oldIndex||i.newIndex)&&(this._saveChildOrder(),this.doReorder(i.newIndex,i.oldIndex,!0)),alert(String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_CallbackError,t))},doReorder:function(t,e,i){var a=this.get_element(),r=this._childList;if(t>=0&&r.length>t&&t!=e){var s=$get(r[t]),n=this._inProgressDrops[s.id];if(n)return;if(s){e>t&&e++;var o=e>=r.length;try{a.removeChild(s)}catch(t){}if(o)a.appendChild(s);else{var l=$get(r[e]);a.insertBefore(s,l)}i?(this._saveChildOrder(),this.raiseReorderComplete()):this.doPostBack(s.id,e,t)}}},getItem:function(t){return this._childList||this._saveChildOrder(),this._childList[t]},_getSavedChildIndex:function(t){if(this._childList&&t)for(var e=0;e=32&&(i=String.fromCharCode(t),this._processKey(i)||n.preventDefault())}},_processKey:function(n){var t="",i=!1,r;return(this._filterMode==Sys.Extended.UI.FilterModes.ValidChars?(t=this._getValidChars(),i=t&&t.length>0&&t.indexOf(n)==-1):(t=this._getInvalidChars(),i=t&&t.length>0&&t.indexOf(n)>-1),r=new Sys.Extended.UI.FilteredTextBoxProcessKeyEventArgs(n,Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value(),i),this.raise_processKey(r),r.get_allowKey())?!0:(this.raiseFiltered(new Sys.Extended.UI.FilteredTextBoxEventArgs(n)),!1)},_onchange:function(){for(var r,t=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),u=t.get_Value()||"",i=new Sys.StringBuilder,n=0;n=32){var r=String.fromCharCode(t);this._processKey(r)||e.preventDefault()}}},_processKey:function(e){var t="",r=!1;this._filterMode==Sys.Extended.UI.FilterModes.ValidChars?(t=this._getValidChars(),r=t&&t.length>0&&t.indexOf(e)==-1):(t=this._getInvalidChars(),r=t&&t.length>0&&t.indexOf(e)>-1);var s=new Sys.Extended.UI.FilteredTextBoxProcessKeyEventArgs(e,Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value(),r);return this.raise_processKey(s),!!s.get_allowKey()||(this.raise_filtered(new Sys.Extended.UI.FilteredTextBoxEventArgs(e)),!1)},_onchange:function(){for(var e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),t=e.get_Value()||"",r=new Sys.StringBuilder,s=0;s0?!1:Array.indexOf(["input","button","select","textarea","label"],t.toLowerCase())>-1?!1:!0};this.get_dragDataType=function(){return"_floatingObject"};this.getDragData=function(){return null};this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move};this.onDragStart=function(){};this.onDrag=function(){};this.onDragEnd=function(n){var i,r,f;n||(i=this.get_events().getHandler("move"),i&&(r=new Sys.CancelEventArgs,i(this,r),n=r.get_cancel()));f=this.get_element();n?$common.setLocation(f,u):(t=$common.getLocation(f),this.raisePropertyChanged("location"))};this.startDragDrop=function(n){Sys.Extended.UI.DragDropManager.startDragDrop(this,n,null)};this.get_dropTargetElement=function(){return document.body};this.canDrop=function(n,t){return t=="_floatingObject"};this.drop=function(){};this.onDragEnterTarget=function(){};this.onDragLeaveTarget=function(){};this.onDragInTarget=function(){}};Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable); \ No newline at end of file +Sys.Extended.UI.FloatingBehavior=function(t){function e(t){window._event=t;var e=this.get_element();this.checkCanDrag(t.target)&&(i=$common.getLocation(e),t.preventDefault(),this.startDragDrop(e))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[t]);var n,o,i,r,a,s=Function.createDelegate(this,e);this.add_move=function(t){this.get_events().addHandler("move",t)},this.remove_move=function(t){this.get_events().removeHandler("move",t)},this.get_handle=function(){return n},this.set_handle=function(t){null!=n&&$removeHandler(n,"mousedown",s),n=t,$addHandler(n,"mousedown",s)},this.get_profileProperty=function(){return r},this.set_profileProperty=function(t){r=t},this.get_profileComponent=function(){return a},this.set_profileComponent=function(t){a=t},this.get_location=function(){return o},this.set_location=function(t){o!=t&&(o=t,this.get_isInitialized()&&$common.setLocation(this.get_element(),o),this.raisePropertyChanged("location"))},this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize"),Sys.Extended.UI.DragDropManager.registerDropTarget(this);var t=this.get_element();o||(o=$common.getLocation(t)),t.style.position="fixed",$common.setLocation(t,o)},this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this),n&&s&&$removeHandler(n,"mousedown",s),s=null,Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")},this.checkCanDrag=function(t){var e=["input","button","select","textarea","label"],n=t.tagName;return!("a"==n.toLowerCase()&&null!=t.href&&t.href.length>0)&&!(Array.indexOf(e,n.toLowerCase())>-1)},this.get_dragDataType=function(){return"_floatingObject"},this.getDragData=function(t){return null},this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move},this.onDragStart=function(){},this.onDrag=function(){},this.onDragEnd=function(t){if(!t){var e=this.get_events().getHandler("move");if(e){var n=new Sys.CancelEventArgs;e(this,n),t=n.get_cancel()}}var r=this.get_element();t?$common.setLocation(r,i):(o=$common.getLocation(r),this.raisePropertyChanged("location"))},this.startDragDrop=function(t){Sys.Extended.UI.DragDropManager.startDragDrop(this,t,null)},this.get_dropTargetElement=function(){return document.body},this.canDrop=function(t,e,n){return"_floatingObject"==e},this.drop=function(t,e,n){},this.onDragEnterTarget=function(t,e,n){},this.onDragLeaveTarget=function(t,e,n){},this.onDragInTarget=function(t,e,n){}},Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/Hover.js b/Scripts/AjaxControlToolkit/Release/Hover.js index 788760ed5..6cb3b1b60 100644 --- a/Scripts/AjaxControlToolkit/Release/Hover.js +++ b/Scripts/AjaxControlToolkit/Release/Hover.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.HoverBehavior=function(n){Sys.Extended.UI.HoverBehavior.initializeBase(this,[n]);this._elementHandlers=null;this._hoverElementHandlers=null;this._hoverElement=null;this._hoverCount=0;this._unhoverDelay=0;this._hoverDelay=0;this._hoverScript=null;this._unhoverScript=null;this._hoverFired=!1};Sys.Extended.UI.HoverBehavior.prototype={_setupHandlersArray:function(){var n=[];return n[0]=Function.createDelegate(this,this._onHover),n[1]=Function.createDelegate(this,this._onUnhover),n},get_elementHandlers:function(){return this._elementHandlers||(this._elementHandlers=this._setupHandlersArray()),this._elementHandlers},get_hoverElementHandlers:function(){return this._hoverElementHandlers||(this._hoverElementHandlers=this._setupHandlersArray()),this._hoverElementHandlers},get_hoverElement:function(){return this._hoverElement},set_hoverElement:function(n){n!=this._hoverElement&&(this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!1),this._hoverElement=n,this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!0))},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(n){this._hoverDelay=n;this.raisePropertyChanged("hoverDelay")},get_hoverScript:function(){return this._hoverScript},set_hoverScript:function(n){this._hoverScript=n},get_unhoverDelay:function(){return this._unhoverDelay},set_unhoverDelay:function(n){this._unhoverDelay=n;this.raisePropertyChanged("unhoverDelay")},get_unhoverScript:function(){return this._unhoverScript},set_unhoverScript:function(n){this._unhoverScript=n},dispose:function(){var t=this.get_element(),n;this._elementHandlers&&(n=this.get_elementHandlers(),this._setupHandlers(t,n,!1),this._elementHandlers=null);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!1),this._hoverElement=null);Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"initialize");var n=this.get_elementHandlers();this._setupHandlers(this.get_element(),n,!0);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!0))},add_hover:function(n){this.get_events().addHandler("hover",n)},remove_hover:function(n){this.get_events().removeHandler("hover",n)},_fireHover:function(){if(this._hoverCount&&!this._hoverFired){var handler=this.get_events().getHandler("hover");handler&&handler(this,Sys.EventArgs.Empty);this._hoverScript&&eval(this._hoverScript);this._hoverFired=!0}},_onHover:function(){this._hoverCount++;this._hoverDelay?window.setTimeout(Function.createDelegate(this,this._fireHover),this._hoverDelay):this._fireHover()},add_unhover:function(n){this.get_events().addHandler("unhover",n)},remove_unhover:function(n){this.get_events().removeHandler("unhover",n)},_fireUnhover:function(){if(this._hoverFired&&!this._hoverCount){this._hoverFired=!1;var handler=this.get_events().getHandler("unhover");handler&&handler(this,Sys.EventArgs.Empty);this._unhoverScript&&eval(this._unhoverScript)}},_onUnhover:function(){this._hoverCount--;this._hoverCount<=0&&(this._hoverCount=0,this._unhoverDelay?window.setTimeout(Function.createDelegate(this,this._fireUnhover),this._unhoverDelay):this._fireUnhover())},_setupHandlers:function(n,t,i){this.get_isInitialized()&&n&&(i?($addHandler(n,"mouseover",t[0]),$addHandler(n,"focus",t[0]),$addHandler(n,"mouseout",t[1]),$addHandler(n,"blur",t[1])):($removeHandler(n,"mouseover",t[0]),$removeHandler(n,"focus",t[0]),$removeHandler(n,"mouseout",t[1]),$removeHandler(n,"blur",t[1])))}};Sys.Extended.UI.HoverBehavior.descriptor={properties:[{name:"hoverElement",isDomElement:!0},{name:"unhoverDelay",type:Number}],events:[{name:"hover"},{name:"unhover"}]};Sys.Extended.UI.HoverBehavior.registerClass("Sys.Extended.UI.HoverBehavior",Sys.Extended.UI.BehaviorBase); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.HoverBehavior=function(e){Sys.Extended.UI.HoverBehavior.initializeBase(this,[e]),this._elementHandlers=null,this._hoverElementHandlers=null,this._hoverElement=null,this._hoverCount=0,this._unhoverDelay=0,this._hoverDelay=0,this._hoverScript=null,this._unhoverScript=null,this._hoverFired=!1},Sys.Extended.UI.HoverBehavior.prototype={_setupHandlersArray:function(){var e=[];return e[0]=Function.createDelegate(this,this._onHover),e[1]=Function.createDelegate(this,this._onUnhover),e},get_elementHandlers:function(){return this._elementHandlers||(this._elementHandlers=this._setupHandlersArray()),this._elementHandlers},get_hoverElementHandlers:function(){return this._hoverElementHandlers||(this._hoverElementHandlers=this._setupHandlersArray()),this._hoverElementHandlers},get_hoverElement:function(){return this._hoverElement},set_hoverElement:function(e){e!=this._hoverElement&&(this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!1),this._hoverElement=e,this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!0))},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(e){this._hoverDelay=e,this.raisePropertyChanged("hoverDelay")},get_hoverScript:function(){return this._hoverScript},set_hoverScript:function(e){this._hoverScript=e},get_unhoverDelay:function(){return this._unhoverDelay},set_unhoverDelay:function(e){this._unhoverDelay=e,this.raisePropertyChanged("unhoverDelay")},get_unhoverScript:function(){return this._unhoverScript},set_unhoverScript:function(e){this._unhoverScript=e},dispose:function(){var e=this.get_element();if(this._elementHandlers){var t=this.get_elementHandlers();this._setupHandlers(e,t,!1),this._elementHandlers=null}if(this._hoverElement){var t=this.get_hoverElementHandlers();this._setupHandlers(this._hoverElement,t,!1),this._hoverElement=null}Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"initialize");var e=this.get_elementHandlers();this._setupHandlers(this.get_element(),e,!0),this._hoverElement&&(e=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,e,!0))},add_hover:function(e){this.get_events().addHandler("hover",e)},remove_hover:function(e){this.get_events().removeHandler("hover",e)},_fireHover:function(){if(this._hoverCount&&!this._hoverFired){var handler=this.get_events().getHandler("hover");handler&&handler(this,Sys.EventArgs.Empty),this._hoverScript&&eval(this._hoverScript),this._hoverFired=!0}},_onHover:function(){this._hoverCount++,this._hoverDelay?window.setTimeout(Function.createDelegate(this,this._fireHover),this._hoverDelay):this._fireHover()},add_unhover:function(e){this.get_events().addHandler("unhover",e)},remove_unhover:function(e){this.get_events().removeHandler("unhover",e)},_fireUnhover:function(){if(this._hoverFired&&!this._hoverCount){this._hoverFired=!1;var handler=this.get_events().getHandler("unhover");handler&&handler(this,Sys.EventArgs.Empty),this._unhoverScript&&eval(this._unhoverScript)}},_onUnhover:function(){this._hoverCount--,this._hoverCount<=0&&(this._hoverCount=0,this._unhoverDelay?window.setTimeout(Function.createDelegate(this,this._fireUnhover),this._unhoverDelay):this._fireUnhover())},_setupHandlers:function(e,t,r){this.get_isInitialized()&&e&&(r?($addHandler(e,"mouseover",t[0]),$addHandler(e,"focus",t[0]),$addHandler(e,"mouseout",t[1]),$addHandler(e,"blur",t[1])):($removeHandler(e,"mouseover",t[0]),$removeHandler(e,"focus",t[0]),$removeHandler(e,"mouseout",t[1]),$removeHandler(e,"blur",t[1])))}},Sys.Extended.UI.HoverBehavior.descriptor={properties:[{name:"hoverElement",isDomElement:!0},{name:"unhoverDelay",type:Number}],events:[{name:"hover"},{name:"unhover"}]},Sys.Extended.UI.HoverBehavior.registerClass("Sys.Extended.UI.HoverBehavior",Sys.Extended.UI.BehaviorBase); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/HoverMenu.js b/Scripts/AjaxControlToolkit/Release/HoverMenu.js index c3758ebbf..9bfb7c604 100644 --- a/Scripts/AjaxControlToolkit/Release/HoverMenu.js +++ b/Scripts/AjaxControlToolkit/Release/HoverMenu.js @@ -1 +1 @@ -Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.HoverMenuBehavior=function(n){Sys.Extended.UI.HoverMenuBehavior.initializeBase(this,[n]);this._hoverBehavior=null;this._popupBehavior=null;this._mouseEnterHandler=null;this._mouseLeaveHandler=null;this._unhoverHandler=null;this._hoverHandler=null;this._inHover=null;this._oldClass=null;this._popupElement=null;this._onShowJson=null;this._onHideJson=null;this._popupElement=null;this._hoverCssClass=null;this._offsetX=0;this._offsetY=0;this._popDelay=100;this._hoverDelay=0;this._popupPosition=null};Sys.Extended.UI.HoverMenuBehavior.prototype={initialize:function(){Sys.Extended.UI.HoverMenuBehavior.callBaseMethod(this,"initialize");this._hoverHandler=Function.createDelegate(this,this._onHover);this._unhoverHandler=Function.createDelegate(this,this._onUnhover);this._mouseEnterHandler=Function.createDelegate(this,this._onmouseover);this._mouseLeaveHandler=Function.createDelegate(this,this._onmouseout);var n=this.get_element();$addHandler(n,"mouseover",this._mouseEnterHandler);$addHandler(n,"mouseout",this._mouseLeaveHandler);this._popupElement&&(this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"_PopupBehavior"},null,null,this._popupElement),this._popupPosition?this._popupBehavior.set_positioningMode(Sys.Extended.UI.HoverMenuPopupPosition.Absolute):this._popupBehavior.set_positioningMode(Sys.Extended.UI.HoverMenuPopupPosition.Center),this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson),this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson),this._hoverBehavior=$create(Sys.Extended.UI.HoverBehavior,{id:this.get_id()+"_HoverBehavior",hoverDelay:this._hoverDelay,unhoverDelay:this._popDelay,hoverElement:this._popupElement},null,null,n),this._hoverBehavior.add_hover(this._hoverHandler),this._hoverBehavior.add_unhover(this._unhoverHandler))},dispose:function(){this._onShowJson=null;this._onHideJson=null;this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null);this._popupElement&&(this._popupElement=null);this._mouseEnterHandler&&$removeHandler(this.get_element(),"mouseover",this._mouseEnterHandler);this._mouseLeaveHandler&&$removeHandler(this.get_element(),"mouseout",this._mouseLeaveHandler);this._hoverBehavior&&(this._hoverHandler&&(this._hoverBehavior.remove_hover(this._hoverHandler),this._hoverHandler=null),this._unhoverHandler&&(this._hoverBehavior.remove_hover(this._unhoverHandler),this._unhoverHandler=null),this._hoverBehavior.dispose(),this._hoverBehavior=null);Sys.Extended.UI.HoverMenuBehavior.callBaseMethod(this,"dispose")},_getLeftOffset:function(){var t=$common.getLocation(this.get_element()).x,i=$common.getLocation(this.get_popupElement().offsetParent).x,n=0;switch(this._popupPosition){case Sys.Extended.UI.HoverMenuPopupPosition.Left:n=-1*this._popupElement.offsetWidth;break;case Sys.Extended.UI.HoverMenuPopupPosition.Right:n=this.get_element().offsetWidth}return n+t-i+this._offsetX},_getTopOffset:function(){var t=$common.getLocation(this.get_element()).y,i=$common.getLocation(this.get_popupElement().offsetParent).y,n=0;switch(this._popupPosition){case Sys.Extended.UI.HoverMenuPopupPosition.Top:n=-1*this._popupElement.offsetHeight;break;case Sys.Extended.UI.HoverMenuPopupPosition.Bottom:n=this.get_element().offsetHeight}return t-i+n+this._offsetY},_onHover:function(){if(!this._inHover){var n=new Sys.CancelEventArgs;(this.raise_showing(n),n.get_cancel())||(this._inHover=!0,this.populate(),this._popupBehavior.show(),$common.getCurrentStyle(this._popupElement,"display")=="none"&&(this._popupElement.style.display="block"),this._popupBehavior.set_x(this._getLeftOffset()),this._popupBehavior.set_y(this._getTopOffset()),this.raise_shown(Sys.EventArgs.Empty))}},_onUnhover:function(){var n=new Sys.CancelEventArgs;(this.raise_hiding(n),n.get_cancel())||(this._inHover=!1,this._resetCssClass(),this._popupBehavior.hide(),this.raise_hidden(Sys.EventArgs.Empty))},_onmouseover:function(){var n=this.get_element();this._hoverCssClass&&n.className!=this._hoverCssClass&&(this._oldClass=n.className,n.className=this._hoverCssClass)},_onmouseout:function(){this._resetCssClass()},_resetCssClass:function(){var n=this.get_element();!this._inHover&&this._hoverCssClass&&n.className==this._hoverCssClass&&(n.className=this._oldClass)},get_onShow:function(){return this._popupBehavior?this._popupBehavior.get_onShow():this._onShowJson},set_onShow:function(n){this._popupBehavior?this._popupBehavior.set_onShow(n):this._onShowJson=n;this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onShowBehavior():null},onShow:function(){this._popupBehavior&&this._popupBehavior.onShow()},get_onHide:function(){return this._popupBehavior?this._popupBehavior.get_onHide():this._onHideJson},set_onHide:function(n){this._popupBehavior?this._popupBehavior.set_onHide(n):this._onHideJson=n;this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onHideBehavior():null},onHide:function(){this._popupBehavior&&this._popupBehavior.onHide()},get_popupElement:function(){return this._popupElement},set_popupElement:function(n){this._popupElement!=n&&(this._popupElement=n,this.get_isInitialized()&&this._hoverBehavior&&this._hoverBehavior.set_hoverElement(this._popupElement),this.raisePropertyChanged("popupElement"))},get_hoverCssClass:function(){return this._hoverCssClass},set_hoverCssClass:function(n){this._hoverCssClass!=n&&(this._hoverCssClass=n,this.raisePropertyChanged("hoverCssClass"))},get_HoverCssClass:function(){return Sys.Extended.Deprecated("get_HoverCssClass","get_hoverCssClass"),this.get_hoverCssClass()},set_HoverCssClass:function(n){Sys.Extended.Deprecated("set_HoverCssClass","set_hoverCssClass");this.set_hoverCssClass(n)},get_offsetX:function(){return this._offsetX},set_offsetX:function(n){this._offsetX!=n&&(this._offsetX=n,this.raisePropertyChanged("offsetX"))},get_OffsetX:function(){return Sys.Extended.Deprecated("get_OffsetX()","get_offsetX()"),this.get_offsetX()},set_OffsetX:function(n){Sys.Extended.Deprecated("set_OffsetX(value)","set_offsetX(value)");this.set_offsetX(n)},get_offsetY:function(){return this._offsetY},set_offsetY:function(n){this._offsetY!=n&&(this._offsetY=n,this.raisePropertyChanged("offsetY"))},get_OffsetY:function(){return Sys.Extended.Deprecated("get_OffsetY()","get_offsetY()"),this.get_offsetY()},set_OffsetY:function(n){Sys.Extended.Deprecated("set_OffsetY(value)","set_offsetY(value)");this.set_offsetY(n)},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(n){this._popupPosition!=n&&(this._popupPosition=n,this.raisePropertyChanged("popupPosition"))},get_PopupPosition:function(){return Sys.Extended.Deprecated("get_PopupPosition()","get_popupPosition()"),this.get_popupPosition()},set_PopupPosition:function(n){Sys.Extended.Deprecated("set_PopupPosition(value)","set_popupPosition(value)");this.set_popupPosition(n)},get_popDelay:function(){return this._popDelay},set_popDelay:function(n){this._popDelay!=n&&(this._popDelay=n,this.raisePropertyChanged("popDelay"))},get_PopDelay:function(){return Sys.Extended.Deprecated("get_PopDelay","get_popDelay"),this.get_popDelay()},set_PopDelay:function(n){Sys.Extended.Deprecated("set_PopDelay","set_popDelay");this.set_popDelay(n)},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(n){this._hoverDelay!=n&&(this._hoverDelay=n,this.raisePropertyChanged("hoverDelay"))},get_HoverDelay:function(){return Sys.Extended.Deprecated("get_HoverDelay","get_hoverDelay"),this.get_hoverDelay()},set_HoverDelay:function(n){Sys.Extended.Deprecated("set_HoverDelay","set_hoverDelay");this.set_hoverDelay(n)},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raise_showing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},raiseShowing:function(n){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)");this.raise_showing(n)},add_shown:function(n){this.get_events().addHandler("shown",n)},remove_shown:function(n){this.get_events().removeHandler("shown",n)},raise_shown:function(n){var t=this.get_events().getHandler("shown");t&&t(this,n)},raiseShown:function(n){Sys.Extended.Deprecated("raiseShown(eventArgs)","raise_shown(eventArgs)");this.raise_shown(n)},add_hiding:function(n){this.get_events().addHandler("hiding",n)},remove_hiding:function(n){this.get_events().removeHandler("hiding",n)},raise_hiding:function(n){var t=this.get_events().getHandler("hiding");t&&t(this,n)},raiseHiding:function(n){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)");this.raise_hiding(n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raise_hidden:function(n){var t=this.get_events().getHandler("hidden");t&&t(this,n)},raiseHidden:function(n){Sys.Extended.Deprecated("raiseHidden(eventArgs)","raise_hidden(eventArgs)");this.raise_hidden(n)}};Sys.Extended.UI.HoverMenuBehavior.registerClass("Sys.Extended.UI.HoverMenuBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase);Sys.Extended.UI.HoverMenuPopupPosition=function(){throw Error.invalidOperation();};Sys.Extended.UI.HoverMenuPopupPosition.prototype={Center:0,Top:1,Left:2,Bottom:3,Right:4};Sys.Extended.UI.HoverMenuPopupPosition.registerEnum("Sys.Extended.UI.HoverMenuPopupPosition"); \ No newline at end of file +Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.HoverMenuBehavior=function(e){Sys.Extended.UI.HoverMenuBehavior.initializeBase(this,[e]),this._hoverBehavior=null,this._popupBehavior=null,this._mouseEnterHandler=null,this._mouseLeaveHandler=null,this._unhoverHandler=null,this._hoverHandler=null,this._inHover=null,this._oldClass=null,this._popupElement=null,this._onShowJson=null,this._onHideJson=null,this._popupElement=null,this._hoverCssClass=null,this._offsetX=0,this._offsetY=0,this._popDelay=100,this._hoverDelay=0,this._popupPosition=null},Sys.Extended.UI.HoverMenuBehavior.prototype={initialize:function(){Sys.Extended.UI.HoverMenuBehavior.callBaseMethod(this,"initialize"),this._hoverHandler=Function.createDelegate(this,this._onHover),this._unhoverHandler=Function.createDelegate(this,this._onUnhover),this._mouseEnterHandler=Function.createDelegate(this,this._onmouseover),this._mouseLeaveHandler=Function.createDelegate(this,this._onmouseout);var e=this.get_element();$addHandler(e,"mouseover",this._mouseEnterHandler),$addHandler(e,"mouseout",this._mouseLeaveHandler),this._popupElement&&(this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"_PopupBehavior"},null,null,this._popupElement),this._popupPosition?this._popupBehavior.set_positioningMode(Sys.Extended.UI.HoverMenuPopupPosition.Absolute):this._popupBehavior.set_positioningMode(Sys.Extended.UI.HoverMenuPopupPosition.Center),this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson),this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson),this._hoverBehavior=$create(Sys.Extended.UI.HoverBehavior,{id:this.get_id()+"_HoverBehavior",hoverDelay:this._hoverDelay,unhoverDelay:this._popDelay,hoverElement:this._popupElement},null,null,e),this._hoverBehavior.add_hover(this._hoverHandler),this._hoverBehavior.add_unhover(this._unhoverHandler))},dispose:function(){this._onShowJson=null,this._onHideJson=null,this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null),this._popupElement&&(this._popupElement=null),this._mouseEnterHandler&&$removeHandler(this.get_element(),"mouseover",this._mouseEnterHandler),this._mouseLeaveHandler&&$removeHandler(this.get_element(),"mouseout",this._mouseLeaveHandler),this._hoverBehavior&&(this._hoverHandler&&(this._hoverBehavior.remove_hover(this._hoverHandler),this._hoverHandler=null),this._unhoverHandler&&(this._hoverBehavior.remove_hover(this._unhoverHandler),this._unhoverHandler=null),this._hoverBehavior.dispose(),this._hoverBehavior=null),Sys.Extended.UI.HoverMenuBehavior.callBaseMethod(this,"dispose")},_getLeftOffset:function(){var e=$common.getLocation(this.get_element()).x,t=$common.getLocation(this.get_popupElement().offsetParent).x,s=0;switch(this._popupPosition){case Sys.Extended.UI.HoverMenuPopupPosition.Left:s=-1*this._popupElement.offsetWidth;break;case Sys.Extended.UI.HoverMenuPopupPosition.Right:s=this.get_element().offsetWidth}return s+e-t+this._offsetX},_getTopOffset:function(){var e=$common.getLocation(this.get_element()).y,t=$common.getLocation(this.get_popupElement().offsetParent).y,s=0;switch(this._popupPosition){case Sys.Extended.UI.HoverMenuPopupPosition.Top:s=-1*this._popupElement.offsetHeight;break;case Sys.Extended.UI.HoverMenuPopupPosition.Bottom:s=this.get_element().offsetHeight}return e-t+s+this._offsetY},_onHover:function(){if(!this._inHover){var e=new Sys.CancelEventArgs;this.raise_showing(e),e.get_cancel()||(this._inHover=!0,this.populate(),this._popupBehavior.show(),"none"==$common.getCurrentStyle(this._popupElement,"display")&&(this._popupElement.style.display="block"),this._popupBehavior.set_x(this._getLeftOffset()),this._popupBehavior.set_y(this._getTopOffset()),this.raise_shown(Sys.EventArgs.Empty))}},_onUnhover:function(){var e=new Sys.CancelEventArgs;this.raise_hiding(e),e.get_cancel()||(this._inHover=!1,this._resetCssClass(),this._popupBehavior.hide(),this.raise_hidden(Sys.EventArgs.Empty))},_onmouseover:function(){var e=this.get_element();this._hoverCssClass&&e.className!=this._hoverCssClass&&(this._oldClass=e.className,e.className=this._hoverCssClass)},_onmouseout:function(){this._resetCssClass()},_resetCssClass:function(){var e=this.get_element();!this._inHover&&this._hoverCssClass&&e.className==this._hoverCssClass&&(e.className=this._oldClass)},get_onShow:function(){return this._popupBehavior?this._popupBehavior.get_onShow():this._onShowJson},set_onShow:function(e){this._popupBehavior?this._popupBehavior.set_onShow(e):this._onShowJson=e,this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onShowBehavior():null},onShow:function(){this._popupBehavior&&this._popupBehavior.onShow()},get_onHide:function(){return this._popupBehavior?this._popupBehavior.get_onHide():this._onHideJson},set_onHide:function(e){this._popupBehavior?this._popupBehavior.set_onHide(e):this._onHideJson=e,this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onHideBehavior():null},onHide:function(){this._popupBehavior&&this._popupBehavior.onHide()},get_popupElement:function(){return this._popupElement},set_popupElement:function(e){this._popupElement!=e&&(this._popupElement=e,this.get_isInitialized()&&this._hoverBehavior&&this._hoverBehavior.set_hoverElement(this._popupElement),this.raisePropertyChanged("popupElement"))},get_hoverCssClass:function(){return this._hoverCssClass},set_hoverCssClass:function(e){this._hoverCssClass!=e&&(this._hoverCssClass=e,this.raisePropertyChanged("hoverCssClass"))},get_HoverCssClass:function(){return Sys.Extended.Deprecated("get_HoverCssClass","get_hoverCssClass"),this.get_hoverCssClass()},set_HoverCssClass:function(e){Sys.Extended.Deprecated("set_HoverCssClass","set_hoverCssClass"),this.set_hoverCssClass(e)},get_offsetX:function(){return this._offsetX},set_offsetX:function(e){this._offsetX!=e&&(this._offsetX=e,this.raisePropertyChanged("offsetX"))},get_OffsetX:function(){return Sys.Extended.Deprecated("get_OffsetX()","get_offsetX()"),this.get_offsetX()},set_OffsetX:function(e){Sys.Extended.Deprecated("set_OffsetX(value)","set_offsetX(value)"),this.set_offsetX(e)},get_offsetY:function(){return this._offsetY},set_offsetY:function(e){this._offsetY!=e&&(this._offsetY=e,this.raisePropertyChanged("offsetY"))},get_OffsetY:function(){return Sys.Extended.Deprecated("get_OffsetY()","get_offsetY()"),this.get_offsetY()},set_OffsetY:function(e){Sys.Extended.Deprecated("set_OffsetY(value)","set_offsetY(value)"),this.set_offsetY(e)},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(e){this._popupPosition!=e&&(this._popupPosition=e,this.raisePropertyChanged("popupPosition"))},get_PopupPosition:function(){return Sys.Extended.Deprecated("get_PopupPosition()","get_popupPosition()"),this.get_popupPosition()},set_PopupPosition:function(e){Sys.Extended.Deprecated("set_PopupPosition(value)","set_popupPosition(value)"),this.set_popupPosition(e)},get_popDelay:function(){return this._popDelay},set_popDelay:function(e){this._popDelay!=e&&(this._popDelay=e,this.raisePropertyChanged("popDelay"))},get_PopDelay:function(){return Sys.Extended.Deprecated("get_PopDelay","get_popDelay"),this.get_popDelay()},set_PopDelay:function(e){Sys.Extended.Deprecated("set_PopDelay","set_popDelay"),this.set_popDelay(e)},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(e){this._hoverDelay!=e&&(this._hoverDelay=e,this.raisePropertyChanged("hoverDelay"))},get_HoverDelay:function(){return Sys.Extended.Deprecated("get_HoverDelay","get_hoverDelay"),this.get_hoverDelay()},set_HoverDelay:function(e){Sys.Extended.Deprecated("set_HoverDelay","set_hoverDelay"),this.set_hoverDelay(e)},add_showing:function(e){this.get_events().addHandler("showing",e)},remove_showing:function(e){this.get_events().removeHandler("showing",e)},raise_showing:function(e){var t=this.get_events().getHandler("showing");t&&t(this,e)},raiseShowing:function(e){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)"),this.raise_showing(e)},add_shown:function(e){this.get_events().addHandler("shown",e)},remove_shown:function(e){this.get_events().removeHandler("shown",e)},raise_shown:function(e){var t=this.get_events().getHandler("shown");t&&t(this,e)},raiseShown:function(e){Sys.Extended.Deprecated("raiseShown(eventArgs)","raise_shown(eventArgs)"),this.raise_shown(e)},add_hiding:function(e){this.get_events().addHandler("hiding",e)},remove_hiding:function(e){this.get_events().removeHandler("hiding",e)},raise_hiding:function(e){var t=this.get_events().getHandler("hiding");t&&t(this,e)},raiseHiding:function(e){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)"),this.raise_hiding(e)},add_hidden:function(e){this.get_events().addHandler("hidden",e)},remove_hidden:function(e){this.get_events().removeHandler("hidden",e)},raise_hidden:function(e){var t=this.get_events().getHandler("hidden");t&&t(this,e)},raiseHidden:function(e){Sys.Extended.Deprecated("raiseHidden(eventArgs)","raise_hidden(eventArgs)"),this.raise_hidden(e)}},Sys.Extended.UI.HoverMenuBehavior.registerClass("Sys.Extended.UI.HoverMenuBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase),Sys.Extended.UI.HoverMenuPopupPosition=function(){throw Error.invalidOperation()},Sys.Extended.UI.HoverMenuPopupPosition.prototype={Center:0,Top:1,Left:2,Bottom:3,Right:4},Sys.Extended.UI.HoverMenuPopupPosition.registerEnum("Sys.Extended.UI.HoverMenuPopupPosition"); \ No newline at end of file diff --git a/Scripts/AjaxControlToolkit/Release/HtmlEditor.DesignPanel.js b/Scripts/AjaxControlToolkit/Release/HtmlEditor.DesignPanel.js index f7f20f582..701579511 100644 --- a/Scripts/AjaxControlToolkit/Release/HtmlEditor.DesignPanel.js +++ b/Scripts/AjaxControlToolkit/Release/HtmlEditor.DesignPanel.js @@ -1 +1,2 @@ -Type.registerNamespace("Sys.Extended.UI.HtmlEditor");Sys.Extended.UI.HtmlEditor.DesignPanel=function(n){Sys.Extended.UI.HtmlEditor.DesignPanel.initializeBase(this,[n]);this._doc=null;this._updated_now=!1;this._updateTimer=null;this._popup=null;this._contextElement=null;this._a_prize=!1;this.__stack=null;this._StyleForTyping=null;this.isWord=!1;this.isPlainText=!1;this.dfltBlockElement="P";this._FontNotSet=!0;this._design_timer1=null;this._events$delegate=Function.createDelegate(this,Sys.Extended.UI.HtmlEditor.DesignPanelEventHandler);this._blur$delegate=Function.createDelegate(this,this._blur);this._focus$delegate=Function.createDelegate(this,this._focus_event)};Sys.Extended.UI.HtmlEditor.DesignPanel.prototype={initialize:function(){Sys.Extended.UI.HtmlEditor.DesignPanel.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.DesignPanel.callBaseMethod(this,"dispose")},_activate:function(n){Sys.Extended.UI.HtmlEditor.DesignPanel.callBaseMethod(this,"_activate");this._wasFocused=!1;this._initIframe(n);this._onDocumentLoaded()},_deactivate:function(){this._deactivateCommon();Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.open(),this._doc.write(""),this._doc.close(),this.get_element().src="javascript:false;");this._doc=null;Sys.Extended.UI.HtmlEditor.DesignPanel.callBaseMethod(this,"_deactivate")},_deactivateCommon:function(){var t,n;for(this._editPanel.__blured=!1,t=this._doc.body.getElementsByTagName("IMG"),n=0;n0)try{Sys.Extended.UI.HtmlEditor.isIE?$removeHandler(t[n],"dragstart",Sys.Extended.UI.HtmlEditor.stopDrag):$removeHandler(t[n],"draggesture",Sys.Extended.UI.HtmlEditor.stopDrag)}catch(i){}Sys.Extended.UI.HtmlEditor._removeEvents(this._doc,["keydown","keypress","mousedown","mouseup","dblclick"],this._events$delegate);Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["blur"],this._blur$delegate);Sys.Extended.UI.HtmlEditor._removeEvents(this.get_element().contentWindow,["focus"],this._focus$delegate)},_initIframe:function(n){Sys.Extended.UI.HtmlEditor.isIE||(this._savedValue=n,this._absAndFixedParents=this._getAbsAndFixedParents());var t=Sys.Extended.UI.HtmlEditor.Trim(this._prepareContent(n));this._doc=this.get_element().contentWindow.document;Sys.Extended.UI.HtmlEditor.isIE||(this._doc.designMode="on");this._doc.open();this._doc.write('<\/head>'+t+"<\/body><\/html>");this._doc.close();this._doc.id="EditorDocument";Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.body.contentEditable=!0,this._tryForward=!0)},_blur:function(n){return this._editPanel.__blured=!0,Sys.Extended.UI.HtmlEditor.isIE||this._design_timer1==null||(clearTimeout(this._design_timer1),this._design_timer1=null),this.isPopup||this._editPanel._validate(n,null),!0},_focus_event:function(){if(this._editPanel.__blured=!1,Sys.Extended.UI.HtmlEditor.isIE)this._really_focused();else{var n=this;Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel=this._editPanel;this._design_timer1==null&&(this._design_timer1=setTimeout(function(){n._really_focused();n._design_timer1=null},0))}return!0},_getAbsAndFixedParents:function(){for(var n=this.get_element(),t="";n!=null&&n.tagName&&n.tagName.toLowerCase()!="body";)t+=n.tagName,(n.style.position=="absolute"||n.style.position=="fixed")&&(t+=": "+n.style.position),t+="\n",n=n.parentNode;return t},_onDocumentLoaded:function(){var n=this,t,i;if(!Sys.Extended.UI.HtmlEditor.isIE&&(t=this._getAbsAndFixedParents(),t!=this._absAndFixedParents)){this._initIframe(this._savedValue);setTimeout(function(){n._onDocumentLoaded()},10);return}try{if(!Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.queryCommandValue("forecolor"),(Sys.Extended.UI.HtmlEditor.isSafari||Sys.Extended.UI.HtmlEditor.isOpera)&&!Sys.Extended.UI.HtmlEditor.isReallyVisible(this.get_element()))){setTimeout(function(){n._onDocumentLoaded()},10);return}i=n._doc.body.innerHTML}catch(r){setTimeout(function(){n._onDocumentLoaded()},10);return}this._afterBodyIsFormed();setTimeout(function(){n._activateFinished();Sys.Extended.UI.HtmlEditor.isIE&&!n._editPanel.get_autofocus()&&n._getSelection().empty()},0)},_afterBodyIsFormed:function(){var i=this,n,t;if(Sys.Extended.UI.HtmlEditor._addEvents(this._doc,["keydown","keypress","mousedown","mouseup","dblclick"],this._events$delegate),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["blur"],this._blur$delegate),Sys.Extended.UI.HtmlEditor._addEvents(this.get_element().contentWindow,["focus"],this._focus$delegate),Sys.Extended.UI.HtmlEditor.inspectForShadows(i._doc.body),n=this._doc.body,n.childNodes.length==1&&n.firstChild.tagName&&n.firstChild.tagName.toUpperCase()=="DIV"&&n.firstChild.style.cssText.length>0&&n.firstChild.style.direction.length>0&&Sys.Extended.UI.HtmlEditor.getStyle(n.firstChild,"position")!="absolute"){for(n.style.cssText=n.firstChild.style.cssText,t=n.firstChild;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}i._clearP()},_getContent:function(){var p,n,w,u,a,v,s,h,t,c,f,l,i,e;if(this._popup!=null&&typeof this._popup._forceImClose=="function"&&(p=this._popup._forceImClose,p(this._popup._iframe.contentWindow)),this._clearP(),Sys.Extended.UI.HtmlEditor.isIE)Sys.Extended.UI.HtmlEditor.spanJoiner(this._doc.body,this._doc),n=Sys.Extended.UI.HtmlEditor.getHTML(this._doc.body,!1,!0),n=n.replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1 $3").replace(/(]*?>)\s*( )\s*(<\/td[^>]*?>)/ig,"$1
$3").replace(/(]*?>)\s*( )\s*(<\/p[^>]*?>)/ig,"$1
$3"),n=(this._doc.body.style.cssText.length>0?'
':"")+n+(this._doc.body.style.cssText.length>0?"<\/div>":""),this._editPanel.get_noScript()&&(n=n.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,"")),/)/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1$3").replace(/()/ig,"$1wmode=$3$4").replace(/()/ig,"$1$3")),w=new RegExp("(<[/]?)(teo"+Sys.Extended.UI.HtmlEditor.smartClassName+":)","ig"),n=n.replace(w,"$1");else{for(u=this._doc.createElement("DIV"),a=new Sys.Extended.UI.HtmlEditor.DesignPanel.ScriptRecover,u.style.cssText=this._doc.body.style.cssText,this._editPanel.get_noScript()||this._doc.body.innerHTML.replace(/]*?)>(.*?)<\/script(?:[^>]*?>)/gi,function(n,t){return a.regReplScript1(n,t)}),u.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML),v=u.getElementsByTagName("IMG"),s=[],f=0;f0&&c.toLowerCase()=="embed"){var k=t.getAttribute("dummysrc"),o=t.getAttribute("dummybgcolor"),y=t.getAttribute("pseudomode"),b=t.attributes,r=this._doc.createElement("EMBED");for(r.src=k,r.width=t.width,r.height=t.height,o&&o.length>0&&(o=Sys.Extended.UI.HtmlEditor.tryReplaceRgb(o),r.setAttribute("bgcolor",o)),y&&y.length>0&&r.setAttribute("wmode",y),f=0;f0&&(r.style.width=t.style.width);t.style.height&&t.style.height.length>0&&(r.style.height=t.style.height);t.parentNode.insertBefore(r,t);t.parentNode.removeChild(t)}Sys.Extended.UI.HtmlEditor.spanJoiner(u,this._doc);n=Sys.Extended.UI.HtmlEditor.getHTML(u,u.style.cssText.length>0?!0:!1,!0);n=this._editPanel.get_noScript()?n.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""):n.replace(/(]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,function(n,t,i,r){return a.regReplFromScript1(n,t,i,r)});delete u}return n=Sys.Extended.UI.HtmlEditor.brXHTML(n.replace(/^([\n|\r]+)/,"")),this._editPanel.get_noUnicode()&&(n=n.replace(/([\u0080-\uFFFF])/g,function(n,t){return"&#"+t.charCodeAt(0).toString(10)+";"})),Sys.Extended.UI.HtmlEditor.Trim(n)=="
"&&(n=""),n},_setContent:function(n){this._deactivateCommon();var t=Sys.Extended.UI.HtmlEditor.Trim(this._prepareContent(n));this._doc.open();this._doc.write('<\/head>'+t+"<\/body><\/html>");this._doc.close();Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.body.contentEditable=!0,this._tryForward=!0);this._afterBodyIsFormed();this._editPanel.get_autofocus()&&this._focus();Sys.Extended.UI.HtmlEditor.isIE&&!this._editPanel.get_autofocus()&&this._getSelection().empty()},_focus:function(n){this.focusEditor();this._focused(n)},focusEditor:function(){try{this.get_element().contentWindow.focus()}catch(n){}this._wasFocused||(this._wasFocused=!0,this._editPanel.get_startEnd()||this._setToEnd())},_prepareContent:function(n){var t=n,o,e,l,s,h,r,c,f,n;if(t=t.replace(/]*?)>(?:[^\u0000]*?)(]*?)>)(?:[^\u0000]*?)<\/object(?:[^>]*?)>/gi,"$1"),Sys.Extended.UI.HtmlEditor.isIE)return t=Sys.Extended.UI.HtmlEditor.Trim(t.replace(/([\n\r]+<)/g,"<").replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")).replace(/(&)/g,"&amp;").replace(/\s*<\/td>/ig,"<\/td>").replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1 $3").replace(/(]*?>)\s*(]*?>)\s*(<\/p[^>]*?>)/ig,"$1 $3"),/)/ig,"$1pseudomode=$3$4").replace(/(]*?>)/ig,'$1 wmode="transparent"$2')),t.replace(/&/ig,"&");for(o=new Sys.Extended.UI.HtmlEditor.DesignPanel.ScriptRecover,e=document.createElement("DIV"),this._editPanel.get_noScript()||t.replace(/]*?)>(.*?)<\/script(?:[^>]*?>)/gi,function(n,t){return o.regReplScript1(n,t)}),e.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(t.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")),l=e.getElementsByTagName("EMBED"),s=[],r=0;r0&&(u.style.width=i.style.width);i.style.height&&i.style.height.length>0&&(u.style.height=i.style.height);i.parentNode.insertBefore(u,i);i.parentNode.removeChild(i)}return Sys.Extended.UI.HtmlEditor.spanJoiner(e,document),t=Sys.Extended.UI.HtmlEditor.Trim(Sys.Extended.UI.HtmlEditor.getHTML(e,!1,!0)),this._editPanel.get_noScript()||(t=t.replace(/(]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,function(n,t,i,r){return o.regReplFromScript1(n,t,i,r)})),delete e,delete o,t=Sys.Extended.UI.HtmlEditor.brXHTML(t),t.length==0&&(t="
"),t},_clearP:function(){var n,i,t,r,u;try{if(n=this._doc.body,n.firstChild&&n.firstChild.nodeType==3&&(i=Sys.Extended.UI.HtmlEditor.Trim(""+n.firstChild.data+""),i.length==0?n.removeChild(n.firstChild):i!=""+n.firstChild.data+""&&(n.firstChild.data=i)),Sys.Extended.UI.HtmlEditor.isIE&&n.childNodes.length==1&&(n=n.firstChild,n.nodeType==1&&(t=n.tagName.toLowerCase(),t=="p"||t=="ul"||t=="ol"))){r=!1;u=t=="ul"||t=="ol";function f(n){var i=!1,t;if(n.nodeType==1){if((t=n.tagName.toUpperCase(),!(u&&t=="LI")&&(Sys.Extended.UI.HtmlEditor.isRestricted(n)||t=="IMG"||t=="IFRAME"||t=="EMBED"||t=="SCRIPT"))||n.childNodes.length>1)return!0;if(n.childNodes.length==0)return!1;i|=f(n.firstChild)}else n.nodeType==3&&(i|=!0);return i}n.childNodes.length==1&&(f(n.firstChild)||n.removeChild(n.firstChild));r=!0;(r||n.parentNode.innerHTML.toLowerCase()=="

 <\/p>")&&this._doc.body.removeChild(n)}}catch(e){}},isControl:function(){var i,n,t;try{return i=this._getSelection(),Sys.Extended.UI.HtmlEditor.isIE?i.type.toLowerCase()=="control"?!0:!1:(n=this._createRange(i),t=this._getParent(n),t.nodeType!=3&&n.startContainer==n.endContainer?t.tagName?n.startContainer.childNodes.item(n.startOffset)==null?!1:n.startOffset==n.endOffset&&n.startContainer.childNodes.item(n.startOffset).tagName&&(n.startContainer.childNodes.item(n.startOffset).tagName.toUpperCase()=="BR"||Sys.Extended.UI.HtmlEditor.isStyleTag(n.startContainer.childNodes.item(n.startOffset).tagName))?!1:t.tagName.toUpperCase()=="BODY"&&n.startOffset==0&&n.endOffset>0&&n.endOffset==t.childNodes.length?!1:n.startOffset==n.endOffset&&n.startContainer.childNodes.item(n.startOffset).nodeType==3?!1:!0:!1:!1)}catch(r){return!0}},isPopup:function(){return this._popup!=null},_getSelection:function(){var n,t,i,r;if(Sys.Extended.UI.HtmlEditor.isIE)return n=this._doc.selection;this.focusEditor();r=this.get_element().contentWindow;n=r.getSelection();t=this._createRange(n);i=t.startContainer;try{while(i&&i.nodeType)i=i.parentNode}catch(u){this._removeAllRanges(n);t=this._createRange(n);t.setStart(this._saved_startContainer,this._saved_startOffset);t.setEnd(this._saved_startContainer,this._saved_startOffset);this._selectRange(n,t);n=r.getSelection()}return n},_createRange:function(n){if(Sys.Extended.UI.HtmlEditor.isIE)return typeof n=="undefined"?this._doc.body.createTextRange():n.createRange();if(this.focusEditor(),typeof n=="undefined")return this._doc.createRange();try{return n.getRangeAt(0)}catch(i){return this._doc.createRange()}},toEndOfProtected:function(){var i=this,f=this._getSelection(),n,u,r,t;try{t=this._createRange(f)}catch(e){return!1}if(Sys.Extended.UI.HtmlEditor.isIE?n=Sys.Extended.UI.HtmlEditor.contentEditable(Sys.Extended.UI.HtmlEditor.getSelParent(i)):(n=Sys.Extended.UI.HtmlEditor.contentEditable(t.startContainer),n==null&&(n=Sys.Extended.UI.HtmlEditor.contentEditable(t.endContainer))),Sys.Extended.UI.HtmlEditor.isIE&&n!=null){try{t.remove(n)}catch(o){}t=i._doc.body.createControlRange();t.add(n);t.select()}else Sys.Extended.UI.HtmlEditor.isIE||n==null||(u=i._getSelection(),n.nextSibling!=null&&n.nextSibling.nodeType==3?r=n.nextSibling:(r=i._doc.createTextNode(""),n.nextSibling!=null?n.parentNode.insertBefore(r,n.nextSibling):n.parentNode.appendChild(r)),i._removeAllRanges(u),t=i._createRange(u),t.setStart(r,0),t.setEnd(r,0),i._selectRange(u,t));return!0},_commonPaste:function(n){var t=this,r,i,f,u;this._saveContent();Sys.Extended.UI.HtmlEditor.isIE?(this.openWait(),setTimeout(function(){t._paste(!t._editPanel.get_noPaste());t.closeWait()},0),Sys.Extended.UI.HtmlEditor._stopEvent(n)):this.isPlainText||this.isWord||this._editPanel.get_noPaste()?(r=t._getSafePlace(),r!=null?(i=t._doc.createElement("div"),i.style.display="inline",i.style.borderStyle="none",r.parentNode.insertBefore(i,r),i.appendChild(r),i.removeChild(r),i.innerHTML="xx",f=t._getSelection(),u=t._createRange(),t._removeAllRanges(f),u.setStart(i.firstChild,0),u.setEnd(i.firstChild,1),t._selectRange(f,u),t.openWait(),setTimeout(function(){var h=i.parentNode,f,o,r,n,u,s,e;for(i.lastChild.deleteData(i.lastChild.length-1,1),t.isWord?(i.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(i.innerHTML),Sys.Extended.UI.HtmlEditor.replaceOldTags(i,t),Sys.Extended.UI.HtmlEditor.spanJoiner(i,t._doc)):(f=document.createElement("div"),f.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(i.innerHTML),o=new Sys.Extended.UI.HtmlEditor.jsDocument(!0),Sys.Extended.UI.HtmlEditor.__MozillaGetInnerText(f,o),i.innerHTML=o.toString().replace(//g,">").replace(/\r/g,"").replace(/\n/g,"
").replace(/\t/g," "),delete f);i.firstChild;)h.insertBefore(i.firstChild,i);r=null;n=null;i.nextSibling&&i.nextSibling.nodeType==3&&i.previousSibling&&i.previousSibling.nodeType==3&&(r=i.nextSibling,n=i.previousSibling);h.removeChild(i);u=null;r!=null&&n!=null&&(u=n.data.length,n.data=""+n.data+""+r.data+"",r.parentNode.removeChild(r));t.isWord=!1;t.isPlainText=!1;t.closeWait();u!=null&&(s=t._getSelection(),e=t._createRange(),t._removeAllRanges(s),e.setStart(n,u),e.setEnd(n,u),t._selectRange(s,e));t.onContentChanged()},0)):Sys.Extended.UI.HtmlEditor._stopEvent(n)):setTimeout(function(){Sys.Extended.UI.HtmlEditor.operateAnchors(t,t._doc,!t._editPanel.get_showAnchors());Sys.Extended.UI.HtmlEditor.operatePlaceHolders(t,t._doc,!t._editPanel.get_showPlaceHolders());Sys.Extended.UI.HtmlEditor.inspectForShadows(t._doc.body);t._checkImages(t._doc.body);t.onContentChanged()},0)},_selectRange:function(n,t){n.addRange(t);this.focusEditor()},_selectRng:function(n){var i=this._getSelection(),r,e;if(Sys.Extended.UI.HtmlEditor.isIE){var t=this._createRange(i),u=this._createRange(i),o=this._doc.createElement("span"),f=this._doc.createElement("span");n[0].parentNode.insertBefore(o,n[0]);n[n.length-1].nextSibling?n[n.length-1].parentNode.insertBefore(f,n[n.length-1].nextSibling):n[n.length-1].parentNode.appendChild(f);try{t.moveToElementText(o);e=t.moveStart("character",1);t.moveStart("character",-e);u.moveToElementText(f);e=u.moveEnd("character",-1);u.moveEnd("character",-e);t.setEndPoint("EndToEnd",u);t.select()}catch(s){}n[0].parentNode.removeChild(o);n[n.length-1].parentNode.removeChild(f)}else r=this._doc.createRange(),r.setStart(n[0],0),r.setEnd(n[n.length-1],(""+n[n.length-1].data+"").length),this._removeAllRanges(i),this._selectRange(i,r)},_removeAllRanges:function(n){n.removeAllRanges()},_setToEnd:function(){var n=this;setTimeout(function(){n._setToEnd_();n._editPanel.updateToolbar()},0)},_setToEnd_:function(){var n=this,e,u,r,i;if(Sys.Extended.UI.HtmlEditor.isIE){u=n._getSelection();r=n._createRange(u);u.type.toLowerCase()!="control"&&(r.moveEnd("textedit",1),r.collapse(!1));r.select();n.focusEditor();return}var f=0,t=n._doc.body,i=null;if(t.lastChild&&t.lastChild.nodeType==3?(t=t.lastChild,f=(""+t.data+"").length):(e=n._doc.createTextNode(""),t.lastChild&&t.lastChild.nodeType==1&&t.lastChild.tagName.toUpperCase()=="BR"?t.insertBefore(e,t.lastChild):t.appendChild(e),t=e,f=0),u=n._getSelection(),n._removeAllRanges(u),r=n._createRange(),r.setStart(t,f),r.setEnd(t,f),n._selectRange(u,r),i!=null&&n._doc.body.removeChild(i),n.focusEditor(),!Sys.Extended.UI.HtmlEditor.isSafari&&!Sys.Extended.UI.HtmlEditor.isOpera)try{i=n._doc.createElement("button");i.style.width="0px";i.style.height="20px";n._doc.body.appendChild(i);i.focus();i.blur();n.focusEditor();n._doc.body.removeChild(i)}catch(o){}},isShadowed:function(){var t,n,i,r,u;if(!this.isControl())return!1;if(t=this._getSelection(),n=this._createRange(t),i=Sys.Extended.UI.HtmlEditor.isIE?n.item(0):n.startContainer.childNodes.item(n.startOffset),i.tagName&&i.tagName.toUpperCase()=="IMG"&&i.getAttribute(Sys.Extended.UI.HtmlEditor.attachedIdAttribute)&&i.getAttribute(Sys.Extended.UI.HtmlEditor.attachedIdAttribute).length>0){if(r=this.getAttachedElement(i),r!=null){if(Sys.Extended.UI.HtmlEditor.isIE)n=this._doc.body.createControlRange(),n.add(r),n.select();else try{u=Sys.Extended.UI.HtmlEditor.__getIndex(r);t.collapseToEnd();this._removeAllRanges(t);n=this._createRange(t);n.setStart(r.parentNode,u);n.setEnd(r.parentNode,u+1);this._selectRange(t,n)}catch(f){return!0}return!1}return!0}return!1},_ifShadow:function(){var e,f,u,t;if(Sys.Extended.UI.HtmlEditor.isIE)try{e=this._doc.selection}catch(o){return!1}for(var i=this,r=null,n=Sys.Extended.UI.HtmlEditor.getSelParent(i);n&&(n.nodeType==3||n.tagName&&n.tagName.toUpperCase()!="BODY");){if(n.nodeType==3||!n.tagName){n=n.parentNode;continue}if(f=n.tagName.toUpperCase(),f=="TABLE"&&n.getAttribute(Sys.Extended.UI.HtmlEditor.noContextMenuAttribute)&&n.getAttribute(Sys.Extended.UI.HtmlEditor.noContextMenuAttribute)=="yes"){r=n.rows.item(0).cells.item(0).firstChild;Sys.Extended.UI.HtmlEditor.isIE&&f=="P"&&(r=r.firstChild);break}n=n.parentNode}if(r!=null)if(u=i._getSelection(),t=i._createRange(u),Sys.Extended.UI.HtmlEditor.isIE)t=i._doc.body.createControlRange(),t.add(r),t.select();else try{u.collapseToEnd();i._removeAllRanges(u);t=i._createRange(u);t.setStart(r.parentNode,0);t.setEnd(r.parentNode,1);i._selectRange(u,t)}catch(o){}},_saveContent:function(){var n,t,i;try{try{n=this._getSelection();t=this._createRange(n)}catch(r){}i=new Sys.Extended.UI.HtmlEditor._Marker(this,t,n)}catch(r){return}for(this.__stack||(this.__stack=[],this.__stackPos=0);this.__stackPos=0&&this.__stackPos]*/ig,"")+(r=='"X"'?"":"align="+r)+u.replace(/\salign=[^\s>]*/ig,"")}for(c=this._doc.body.getElementsByTagName("EMBED"),e=[],n=0;n)/ig,y),this._doc.body.innerHTML="!!!<\/span>"+Sys.Extended.UI.HtmlEditor.Trim(f),this._doc.body.firstChild&&this._doc.body.removeChild(this._doc.body.firstChild),this._doc.body.firstChild&&this._doc.body.removeChild(this._doc.body.firstChild),s=Sys.Extended.UI.HtmlEditor.getHrefsText(f),Sys.Extended.UI.HtmlEditor.setHrefsText(this._doc.body,s),this._editPanel.get_relativeImages()&&(s=Sys.Extended.UI.HtmlEditor.getImagesText(f),Sys.Extended.UI.HtmlEditor.setImagesText(this._doc.body,s)),Sys.Extended.UI.HtmlEditor.setNames(this._doc.body,t._nArr),Sys.Extended.UI.HtmlEditor.operateAnchors(this,this._doc,!this._editPanel.get_showAnchors()),Sys.Extended.UI.HtmlEditor.operatePlaceHolders(this,this._doc,!this._editPanel.get_showPlaceHolders()),t._tree!=null){i=this._doc.body;try{for(n=t._tree.length-1;n>=0;n--)i=i.childNodes.item(t._tree[n])}catch(p){this.__stackPos>0&&(this.__stackPos--,this._restoreContent(),this.__stackPos++);return}try{l=this._doc.body.createControlRange();l.add(i);l.select()}catch(p){}}else h=this,setTimeout(function(){try{if(h._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel){if(u=h._getSelection(),r=h._createRange(u),u.type.toLowerCase()!="control")try{r.moveToPoint(t._offsetLeft,t._offsetTop)}catch(n){}r.select()}}catch(n){}},0)}else{if(Sys.Extended.UI.HtmlEditor.isOpera)this._doc.body.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(t._save);else for(this._doc.body.innerHTML="",n=0;n=0;n--)v+=" "+t._tree[n],i=i.childNodes.item(t._tree[n]);a=t._offset;try{r.setStart(i,a);r.setEnd(i,a)}catch(p){Sys.Extended.UI.HtmlEditor.inspectForShadows(this._doc.body);return}try{this._selectRange(u,r)}catch(p){}}try{Sys.Extended.UI.HtmlEditor.inspectForShadows(this._doc.body)}catch(p){}}},SaveContent:function(){this._saveContent()},RestoreContent:function(){this._undo(!1)},_undo:function(n){var i,t;if(this.__stack&&this.__stackPos>0){this.__stackPos==this.__stack.length&&n&&this._saveContent();do i=Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML),this.__stackPos--,this._restoreContent();while(Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML)==i&&this.__stackPos>0&&n);t=this;setTimeout(function(){try{t._ifShadow()}catch(i){}if(t._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{t._editPanel.updateToolbar()}catch(i){}n||t.onContentChanged()},0)}},_redo:function(){var i,t,n;this.__stack&&this.__stackPos0&&(t=n._body.ownerDocument.createElement("div"),n._body.appendChild(t),setTimeout(function(){n._body.removeChild(t)},0))),this._restoreContent(),n=this,setTimeout(function(){n._ifShadow();n._editPanel.updateToolbar()},0))},undo:function(){this._undo(!0);this.onContentChanged()},redo:function(){this._redo();this.onContentChanged()},_contextMenuCallP:function(){},onContentChanged:function(){},_copyCut:function(n,t){var v=this,c,f,l,e,a,u,h,y,r,i;if(Sys.Extended.UI.HtmlEditor.isIE){var r=this._getSelection(),i=this._createRange(r),s=!1,o="";if(n=="x"&&this._saveContent(),r.type.toLowerCase()=="control")s=!0,o=Sys.Extended.UI.HtmlEditor.getHTML(i.item(0),!0);else if(i.text!=""){if(s=!0,o=i.htmlText,c=i.duplicate(),f=this._getTextNodeCollection(),f.length<1)return;if(l=Sys.Extended.UI.HtmlEditor._commonParent(f[0],f[f.length-1]),l!=null&&f[0].previousSibling&&f[0].previousSibling.nodeType==3)for(e=l.parent;e&&e.tagName.toUpperCase()!="BODY"&&Sys.Extended.UI.HtmlEditor.isStyleTag(e.tagName);)a=e.cloneNode(!1),a.innerHTML=o,o=a.outerHTML,e=e.parentNode;r=this._getSelection();r.empty();i=this._createRange(r);i.setEndPoint("EndToEnd",c);i.setEndPoint("StartToStart",c);i.select()}else i.htmlText!=""&&(s=!0,o=i.htmlText);s?(u=this._doc.createElement("DIV"),u.innerHTML="!!!<\/span>"+o,u.removeChild(u.firstChild),u.removeChild(u.firstChild),h=Sys.Extended.UI.HtmlEditor.getHTML(u,!1,!0),y=new RegExp("(<[/]?)(teo"+Sys.Extended.UI.HtmlEditor.smartClassName+":)","ig"),h=h.replace(y,"$1"),delete u,this._contentCopy(h,!0),i.select(),n=="x"&&(r.clear(),this._clearP())):n=="x"&&(r.clear(),this._clearP());t&&setTimeout(function(){v._editPanel.updateToolbar()},0)}else n=="x"?(this._saveContent(),r=this._getSelection(),i=this._createRange(r),this._removeAllRanges(r),i.deleteContents(),this._doc.body.innerHTML==""&&(this._doc.body.innerHTML="
",i.setStart(this._doc.body,0),i.setEnd(this._doc.body,0)),v.onContentChanged(),this._selectRange(r,i)):(r=this._getSelection(),i=this._createRange(r),this._removeAllRanges(r),alert(String.format(Sys.Extended.UI.Resources.HTMLEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-C":"Ctrl-C")),this._selectRange(r,i))},_paste:function(n,t){var f=this,v=this._getSelection(),o=this._createRange(v),l,a,r,i,s,h,e,c,u;if(!n){l=o.offsetLeft;a=o.offsetTop;this.insertHTML(this._getPlain());f.onContentChanged();return}if(!this._editPanel.get_noPaste()){if(l=o.offsetLeft,a=o.offsetTop,r=this._doc.createElement("span"),s=this._contentCopy("",!1,t),/<[\/]*p[\s>]+/i.test(s)||/<[\/]*h/i.test(s))i=this._getSafePlace();else{if(i=this._doc.createElement("SPAN"),i.id=Sys.Extended.UI.HtmlEditor.smartClassName,!this.insertHTML(Sys.Extended.UI.HtmlEditor.getHTML(i,!0)))return;i=this._doc.getElementById(Sys.Extended.UI.HtmlEditor.smartClassName);i&&(i.id=null,i.removeAttribute("id"),i.setAttribute("para","no"))}if(r.innerHTML=s,i){if(this._checkImages(r),h=i.parentNode,e=i.getAttribute("para"),e!="no"){if(e.indexOf("left")>=0&&r.firstChild&&r.firstChild.tagName&&r.firstChild.tagName.toUpperCase()=="P"){while(r.firstChild.firstChild)i.previousSibling.appendChild(r.firstChild.firstChild);r.removeChild(r.firstChild)}if(e.indexOf("right")>=0&&r.lastChild&&r.lastChild.tagName&&r.lastChild.tagName.toUpperCase()=="P"){while(r.lastChild.lastChild)i.nextSibling.insertBefore(r.lastChild.lastChild,i.nextSibling.firstChild);r.removeChild(r.lastChild)}}if(c=i,u=null,r.childNodes.length==0&&e.indexOf("left")>=0&&e.indexOf("right")>=0){for(i.nextSibling.firstChild&&(u=this._doc.createElement("span"),c=u,u.innerHTML="111",i.previousSibling.appendChild(u));i.nextSibling.firstChild;)i.previousSibling.appendChild(i.nextSibling.firstChild);h.removeChild(i.nextSibling)}else while(r.firstChild)h.insertBefore(r.firstChild,i);setTimeout(function(){var t=f._getSelection(),n=f._createRange(t);if(t.type.toLowerCase()=="control")while(n.length>0)n.remove(0);try{n.collapse(!1)}catch(r){}f.focusEditor();Sys.Extended.UI.HtmlEditor._setCursor(c,f);u&&u.parentNode.removeChild(u);h.removeChild(i);Sys.Extended.UI.HtmlEditor.inspectForShadows(f._doc.body);f.onContentChanged();n.select()},0)}}},_contentCopy:function(n,t,i){var o,r,c,a,v,h,f,l,s,u,e,y;if(n!=""&&(n=n.replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1 $3").replace(/(]*?>)\s*( )\s*(<\/td[^>]*?>)/ig,"$1
$3").replace(/(]*?>)\s*( )\s*(<\/p[^>]*?>)/ig,"$1
$3")),o=this._doc.createElement("iframe"),o.width="0",o.height="0",Sys.Extended.UI.HtmlEditor.isIE&&(o.src="javascript:false;"),this._doc.appendChild(o),r=o.contentWindow.document,r.write("<\/head>"+n+"<\/body><\/html>"),r.close(),r.body.contentEditable=!0,c=r.body.createTextRange(),a=!1,n==""){for(c.execCommand("paste"),v=r.createElement("DIV"),u=0;u=0&&h.nextSibling&&h.nextSibling.nodeType==3&&(f=""+h.nextSibling.data+"",f.length&&f.charCodeAt(0)==160))){f=f.substr(1);h.nextSibling.data=f;a=!0;break}if(typeof i!="undefined"&&i&&(r.body.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(r.body.innerHTML)),f=Sys.Extended.UI.HtmlEditor.Trim(Sys.Extended.UI.HtmlEditor.getHTML(r.body,!1,!0)),f=f.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""),r.body.innerHTML=f,!t){for(Sys.Extended.UI.HtmlEditor.operateAnchors(this,r,!this.showAnchors),Sys.Extended.UI.HtmlEditor.operatePlaceHolders(this,r,!this.showPlaceHolders),l=r.body.getElementsByTagName("EMBED"),s=[],u=0;u\s*<\/td>/ig,"<\/td>").replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/ig,"$1 $3").replace(/(]*?>)\s*(]*?>)\s*(<\/p[^>]*?>)/ig,"$1 $3").replace(/()/ig,"$1pseudomode=$3$4").replace(/(]*?>)/ig,'$1 wmode="transparent"$2'),l=r.body.getElementsByTagName("EMBED"),s=[];for(u=0;u

':"")+t+(this._doc.body.style.cssText.length>0?"
":""),this._editPanel.get_noScript()&&(t=t.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,"")),/)/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1$3").replace(/()/gi,"$1wmode=$3$4").replace(/()/gi,"$1$3"));var i=new RegExp("(<[/]?)(teo"+Sys.Extended.UI.HtmlEditor.smartClassName+":)","ig");t=t.replace(i,"$1")}else{var n=this._doc.createElement("DIV"),r=new Sys.Extended.UI.HtmlEditor.DesignPanel.ScriptRecover;n.style.cssText=this._doc.body.style.cssText,this._editPanel.get_noScript()||this._doc.body.innerHTML.replace(/]*?)>(.*?)<\/script(?:[^>]*?>)/gi,function(e,t){return r.regReplScript1(e,t)}),n.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML);for(var s=n.getElementsByTagName("IMG"),d=[],o=0;o0&&"embed"==l.toLowerCase()){var h=c.getAttribute("dummysrc"),m=c.getAttribute("dummybgcolor"),g=c.getAttribute("pseudomode"),_=c.attributes,p=this._doc.createElement("EMBED");p.src=h,p.width=c.width,p.height=c.height,m&&m.length>0&&(m=Sys.Extended.UI.HtmlEditor.tryReplaceRgb(m),p.setAttribute("bgcolor",m)),g&&g.length>0&&p.setAttribute("wmode",g);for(var o=0;o<_.length;++o){var E=_.item(o);if(E.specified){var u=E.name.toLowerCase(),f=E.value;"dummytag"!=u&&"dummysrc"!=u&&"dummybgcolor"!=u&&"style"!=u&&"wmode"!=u&&"pseudomode"!=u&&"src"!=u&&("loop"==u&&"true"==f||"play"==u&&"true"==f||"hspace"==u&&"0"==f||"vspace"==u&&"0"==f||"scale"==u&&0==f.length||"align"==u&&0==f.length||p.setAttribute(u,f))}}c.style.width&&c.style.width.length>0&&(p.style.width=c.style.width),c.style.height&&c.style.height.length>0&&(p.style.height=c.style.height),c.parentNode.insertBefore(p,c),c.parentNode.removeChild(c)}}Sys.Extended.UI.HtmlEditor.spanJoiner(n,this._doc),t=Sys.Extended.UI.HtmlEditor.getHTML(n,n.style.cssText.length>0,!0),t=this._editPanel.get_noScript()?t.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""):t.replace(/(]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,function(e,t,i,n){return r.regReplFromScript1(e,t,i,n)}),delete n}return t=Sys.Extended.UI.HtmlEditor.brXHTML(t.replace(/^([\n|\r]+)/,"")),this._editPanel.get_noUnicode()&&(t=t.replace(/([\u0080-\uFFFF])/g,function(e,t){return"&#"+t.charCodeAt(0).toString(10)+";"})),"
"==Sys.Extended.UI.HtmlEditor.Trim(t)&&(t=""),t},_setContent:function(e){this._deactivateCommon();var t=Sys.Extended.UI.HtmlEditor.Trim(this._prepareContent(e));this._doc.open(),this._doc.write(''+t+""),this._doc.close(),Sys.Extended.UI.HtmlEditor.isIE&&(this._doc.body.contentEditable=!0,this._tryForward=!0),this._afterBodyIsFormed(),this._editPanel.get_autofocus()&&this._focus(),Sys.Extended.UI.HtmlEditor.isIE&&!this._editPanel.get_autofocus()&&this._getSelection().empty()},_focus:function(e){this.focusEditor(),this._focused(e)},focusEditor:function(){try{this.get_element().contentWindow.focus()}catch(e){}this._wasFocused||(this._wasFocused=!0,this._editPanel.get_startEnd()||this._setToEnd())},_prepareContent:function(e){var t=e;if(t=t.replace(/]*?)>(?:[^\u0000]*?)(]*?)>)(?:[^\u0000]*?)<\/object(?:[^>]*?)>/gi,"$1"),Sys.Extended.UI.HtmlEditor.isIE)return t=Sys.Extended.UI.HtmlEditor.Trim(t.replace(/([\n\r]+<)/g,"<").replace(/([^>])([\n\r]+)([^<])/g,"$1 $3")).replace(/(&)/g,"&amp;").replace(/\s*<\/td>/gi,"").replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/gi,"$1 $3").replace(/(]*?>)\s*(]*?>)\s*(<\/p[^>]*?>)/gi,"$1 $3"),/)/gi,"$1pseudomode=$3$4").replace(/(]*?>)/gi,'$1 wmode="transparent"$2')),t=t.replace(/&/gi,"&");var i=new Sys.Extended.UI.HtmlEditor.DesignPanel.ScriptRecover,n=document.createElement("DIV");this._editPanel.get_noScript()||t.replace(/]*?)>(.*?)<\/script(?:[^>]*?>)/gi,function(e,t){return i.regReplScript1(e,t)}),n.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(t.replace(/([^>])([\n\r]+)([^<])/g,"$1 $3"));for(var r=n.getElementsByTagName("EMBED"),s=[],d=0;d0&&(l.style.width=a.style.width),a.style.height&&a.style.height.length>0&&(l.style.height=a.style.height),a.parentNode.insertBefore(l,a),a.parentNode.removeChild(a)}return Sys.Extended.UI.HtmlEditor.spanJoiner(n,document),t=Sys.Extended.UI.HtmlEditor.Trim(Sys.Extended.UI.HtmlEditor.getHTML(n,!1,!0)),this._editPanel.get_noScript()||(t=t.replace(/(]*?)>)(.*?)(<\/script(?:[^>]*?)>)/gi,function(e,t,n,r){return i.regReplFromScript1(e,t,n,r)})),delete n,delete i,t=Sys.Extended.UI.HtmlEditor.brXHTML(t),0==t.length&&(t="
"),t},_clearP:function(){function e(t){var i=!1;if(1==t.nodeType){var n=t.tagName.toUpperCase();if((!s||"LI"!=n)&&(Sys.Extended.UI.HtmlEditor.isRestricted(t)||"IMG"==n||"IFRAME"==n||"EMBED"==n||"SCRIPT"==n))return!0;if(t.childNodes.length>1)return!0;if(0==t.childNodes.length)return!1;i|=e(t.firstChild)}else 3==t.nodeType&&(i|=!0);return i}try{var t=this._doc.body;if(t.firstChild&&3==t.firstChild.nodeType){var i=Sys.Extended.UI.HtmlEditor.Trim(""+t.firstChild.data);0==i.length?t.removeChild(t.firstChild):i!=""+t.firstChild.data&&(t.firstChild.data=i)}if(Sys.Extended.UI.HtmlEditor.isIE&&1==t.childNodes.length&&(t=t.firstChild,1==t.nodeType)){var n=t.tagName.toLowerCase();if("p"==n||"ul"==n||"ol"==n){var r=!1,s="ul"==n||"ol"==n;1==t.childNodes.length&&(e(t.firstChild)||t.removeChild(t.firstChild)),r=!0,(r||"

 

"==t.parentNode.innerHTML.toLowerCase())&&this._doc.body.removeChild(t)}}}catch(e){}},isControl:function(){try{var e=this._getSelection();if(Sys.Extended.UI.HtmlEditor.isIE)return"control"==e.type.toLowerCase();var t=this._createRange(e),i=this._getParent(t);return 3!=i.nodeType&&t.startContainer==t.endContainer&&(!!i.tagName&&(null!=t.startContainer.childNodes.item(t.startOffset)&&((t.startOffset!=t.endOffset||!t.startContainer.childNodes.item(t.startOffset).tagName||"BR"!=t.startContainer.childNodes.item(t.startOffset).tagName.toUpperCase()&&!Sys.Extended.UI.HtmlEditor.isStyleTag(t.startContainer.childNodes.item(t.startOffset).tagName))&&(!("BODY"==i.tagName.toUpperCase()&&0==t.startOffset&&t.endOffset>0&&t.endOffset==i.childNodes.length)&&(t.startOffset!=t.endOffset||3!=t.startContainer.childNodes.item(t.startOffset).nodeType)))))}catch(e){return!0}},isPopup:function(){return null!=this._popup},_getSelection:function(){if(Sys.Extended.UI.HtmlEditor.isIE){var e=this._doc.selection;return e}this.focusEditor();var e,t,i,n=this.get_element().contentWindow;e=n.getSelection(),t=this._createRange(e),i=t.startContainer;try{for(;i&&i.nodeType;)i=i.parentNode}catch(i){this._removeAllRanges(e),t=this._createRange(e),t.setStart(this._saved_startContainer,this._saved_startOffset),t.setEnd(this._saved_startContainer,this._saved_startOffset),this._selectRange(e,t),e=n.getSelection()}return e},_createRange:function(e){if(Sys.Extended.UI.HtmlEditor.isIE)return"undefined"==typeof e?this._doc.body.createTextRange():e.createRange();if(this.focusEditor(),"undefined"==typeof e)return this._doc.createRange();try{var t=e.getRangeAt(0);return t}catch(e){return this._doc.createRange()}},toEndOfProtected:function(){var e,t=this,i=this._getSelection();try{e=this._createRange(i)}catch(e){return!1}var n;if(Sys.Extended.UI.HtmlEditor.isIE?n=Sys.Extended.UI.HtmlEditor.contentEditable(Sys.Extended.UI.HtmlEditor.getSelParent(t)):(n=Sys.Extended.UI.HtmlEditor.contentEditable(e.startContainer),null==n&&(n=Sys.Extended.UI.HtmlEditor.contentEditable(e.endContainer))),Sys.Extended.UI.HtmlEditor.isIE&&null!=n){try{e.remove(n)}catch(e){}e=t._doc.body.createControlRange(),e.add(n),e.select()}else if(!Sys.Extended.UI.HtmlEditor.isIE&&null!=n){var r,s=t._getSelection();null!=n.nextSibling&&3==n.nextSibling.nodeType?r=n.nextSibling:(r=t._doc.createTextNode(""),null!=n.nextSibling?n.parentNode.insertBefore(r,n.nextSibling):n.parentNode.appendChild(r)),t._removeAllRanges(s);var e=t._createRange(s);e.setStart(r,0),e.setEnd(r,0),t._selectRange(s,e)}return!0},_commonPaste:function(e){var t=this;if(this._saveContent(),Sys.Extended.UI.HtmlEditor.isIE)this.openWait(),setTimeout(function(){t._paste(!t._editPanel.get_noPaste()),t.closeWait()},0),Sys.Extended.UI.HtmlEditor._stopEvent(e);else if(this.isPlainText||this.isWord||this._editPanel.get_noPaste()){var i=t._getSafePlace();if(null!=i){var n=t._doc.createElement("div");n.style.display="inline",n.style.borderStyle="none",i.parentNode.insertBefore(n,i),n.appendChild(i),n.removeChild(i),n.innerHTML="xx";var r=t._getSelection(),s=t._createRange();t._removeAllRanges(r),s.setStart(n.firstChild,0),s.setEnd(n.firstChild,1),t._selectRange(r,s),t.openWait(),setTimeout(function(){var e=n.parentNode;if(n.lastChild.deleteData(n.lastChild.length-1,1),t.isWord)n.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(n.innerHTML),Sys.Extended.UI.HtmlEditor.replaceOldTags(n,t),Sys.Extended.UI.HtmlEditor.spanJoiner(n,t._doc);else{var i=document.createElement("div");i.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(n.innerHTML);var r=new Sys.Extended.UI.HtmlEditor.jsDocument((!0));Sys.Extended.UI.HtmlEditor.__MozillaGetInnerText(i,r),n.innerHTML=r.toString().replace(//g,">").replace(/\r/g,"").replace(/\n/g,"
").replace(/\t/g," "),delete i}for(;n.firstChild;)e.insertBefore(n.firstChild,n);var s=null,d=null;n.nextSibling&&3==n.nextSibling.nodeType&&n.previousSibling&&3==n.previousSibling.nodeType&&(s=n.nextSibling,d=n.previousSibling),e.removeChild(n);var o=null;if(null!=s&&null!=d&&(o=d.data.length,d.data=""+d.data+s.data,s.parentNode.removeChild(s)),t.isWord=!1,t.isPlainText=!1,t.closeWait(),null!=o){var a=t._getSelection(),l=t._createRange();t._removeAllRanges(a),l.setStart(d,o),l.setEnd(d,o),t._selectRange(a,l)}t.onContentChanged()},0)}else Sys.Extended.UI.HtmlEditor._stopEvent(e)}else setTimeout(function(){Sys.Extended.UI.HtmlEditor.operateAnchors(t,t._doc,!t._editPanel.get_showAnchors()),Sys.Extended.UI.HtmlEditor.operatePlaceHolders(t,t._doc,!t._editPanel.get_showPlaceHolders()),Sys.Extended.UI.HtmlEditor.inspectForShadows(t._doc.body),t._checkImages(t._doc.body),t.onContentChanged()},0)},_selectRange:function(e,t){e.addRange(t),this.focusEditor()},_selectRng:function(e){var t=this._getSelection();if(Sys.Extended.UI.HtmlEditor.isIE){var i=this._createRange(t),n=this._createRange(t),r=this._doc.createElement("span"),s=this._doc.createElement("span");e[0].parentNode.insertBefore(r,e[0]),e[e.length-1].nextSibling?e[e.length-1].parentNode.insertBefore(s,e[e.length-1].nextSibling):e[e.length-1].parentNode.appendChild(s);try{i.moveToElementText(r);var d=i.moveStart("character",1);i.moveStart("character",-d),n.moveToElementText(s),d=n.moveEnd("character",-1),n.moveEnd("character",-d),i.setEndPoint("EndToEnd",n),i.select()}catch(e){}e[0].parentNode.removeChild(r),e[e.length-1].parentNode.removeChild(s)}else{var o=this._doc.createRange();o.setStart(e[0],0),o.setEnd(e[e.length-1],(""+e[e.length-1].data).length),this._removeAllRanges(t),this._selectRange(t,o)}},_removeAllRanges:function(e){e.removeAllRanges()},_setToEnd:function(){var e=this;setTimeout(function(){e._setToEnd_(),e._editPanel.updateToolbar()},0)},_setToEnd_:function(){var e=this;if(Sys.Extended.UI.HtmlEditor.isIE){var t=e._getSelection(),i=e._createRange(t);return"control"!=t.type.toLowerCase()&&(i.moveEnd("textedit",1),i.collapse(!1)),i.select(),void e.focusEditor()}var n=0,r=e._doc.body,s=null;if(r.lastChild&&3==r.lastChild.nodeType)r=r.lastChild,n=(""+r.data).length;else{var d=e._doc.createTextNode("");r.lastChild&&1==r.lastChild.nodeType&&"BR"==r.lastChild.tagName.toUpperCase()?r.insertBefore(d,r.lastChild):r.appendChild(d),r=d,n=0}var t=e._getSelection();e._removeAllRanges(t);var i=e._createRange();if(i.setStart(r,n),i.setEnd(r,n),e._selectRange(t,i),null!=s&&e._doc.body.removeChild(s),e.focusEditor(),!Sys.Extended.UI.HtmlEditor.isSafari&&!Sys.Extended.UI.HtmlEditor.isOpera)try{var s=e._doc.createElement("button");s.style.width="0px",s.style.height="20px",e._doc.body.appendChild(s),s.focus(),s.blur(),e.focusEditor(),e._doc.body.removeChild(s)}catch(e){}},isShadowed:function(){if(!this.isControl())return!1;var e,t=this._getSelection(),i=this._createRange(t);if(e=Sys.Extended.UI.HtmlEditor.isIE?i.item(0):i.startContainer.childNodes.item(i.startOffset),e.tagName&&"IMG"==e.tagName.toUpperCase()&&e.getAttribute(Sys.Extended.UI.HtmlEditor.attachedIdAttribute)&&e.getAttribute(Sys.Extended.UI.HtmlEditor.attachedIdAttribute).length>0){var n=this.getAttachedElement(e);if(null!=n){if(Sys.Extended.UI.HtmlEditor.isIE)i=this._doc.body.createControlRange(),i.add(n),i.select();else try{var r=Sys.Extended.UI.HtmlEditor.__getIndex(n);t.collapseToEnd(),this._removeAllRanges(t),i=this._createRange(t),i.setStart(n.parentNode,r),i.setEnd(n.parentNode,r+1),this._selectRange(t,i)}catch(e){return!0}return!1}return!0}return!1},_ifShadow:function(){if(Sys.Extended.UI.HtmlEditor.isIE)try{this._doc.selection}catch(e){return!1}for(var e=this,t=null,i=Sys.Extended.UI.HtmlEditor.getSelParent(e);i&&(3==i.nodeType||i.tagName&&"BODY"!=i.tagName.toUpperCase());)if(3!=i.nodeType&&i.tagName){var n=i.tagName.toUpperCase();if("TABLE"==n&&i.getAttribute(Sys.Extended.UI.HtmlEditor.noContextMenuAttribute)&&"yes"==i.getAttribute(Sys.Extended.UI.HtmlEditor.noContextMenuAttribute)){t=i.rows.item(0).cells.item(0).firstChild,Sys.Extended.UI.HtmlEditor.isIE&&"P"==n&&(t=t.firstChild);break}i=i.parentNode}else i=i.parentNode;if(null!=t){var r=e._getSelection(),s=e._createRange(r);if(Sys.Extended.UI.HtmlEditor.isIE)s=e._doc.body.createControlRange(),s.add(t),s.select();else try{r.collapseToEnd(),e._removeAllRanges(r),s=e._createRange(r),s.setStart(t.parentNode,0),s.setEnd(t.parentNode,1),e._selectRange(r,s)}catch(e){}}},_saveContent:function(){var e,t,i;try{try{e=this._getSelection(),t=this._createRange(e)}catch(e){}i=new Sys.Extended.UI.HtmlEditor._Marker(this,t,e)}catch(e){return}for(this.__stack||(this.__stack=[],this.__stackPos=0);this.__stackPos]*/gi,"")+('"X"'==n?"":"align="+n)+r.replace(/\salign=[^\s>]*/gi,"")}if(this.__stack&&this.__stackPos>=0&&this.__stackPos)/gi,e),this._doc.body.innerHTML="!!!"+Sys.Extended.UI.HtmlEditor.Trim(a),this._doc.body.firstChild&&this._doc.body.removeChild(this._doc.body.firstChild),this._doc.body.firstChild&&this._doc.body.removeChild(this._doc.body.firstChild);var l=Sys.Extended.UI.HtmlEditor.getHrefsText(a);if(Sys.Extended.UI.HtmlEditor.setHrefsText(this._doc.body,l),this._editPanel.get_relativeImages()&&(l=Sys.Extended.UI.HtmlEditor.getImagesText(a),Sys.Extended.UI.HtmlEditor.setImagesText(this._doc.body,l)),Sys.Extended.UI.HtmlEditor.setNames(this._doc.body,n._nArr),Sys.Extended.UI.HtmlEditor.operateAnchors(this,this._doc,!this._editPanel.get_showAnchors()),Sys.Extended.UI.HtmlEditor.operatePlaceHolders(this,this._doc,!this._editPanel.get_showPlaceHolders()),null!=n._tree){var d,c=this._doc.body;try{for(d=n._tree.length-1;d>=0;d--)c=c.childNodes.item(n._tree[d])}catch(e){return void(this.__stackPos>0&&(this.__stackPos--,this._restoreContent(),this.__stackPos++))}try{var h=this._doc.body.createControlRange();h.add(c),h.select()}catch(e){}}else{var m=this;setTimeout(function(){try{if(m._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel){if(t=m._getSelection(),i=m._createRange(t),"control"!=t.type.toLowerCase())try{i.moveToPoint(n._offsetLeft,n._offsetTop)}catch(e){}i.select()}}catch(e){}},0)}}else{if(Sys.Extended.UI.HtmlEditor.isOpera)this._doc.body.innerHTML=Sys.Extended.UI.HtmlEditor.Trim(n._save);else{this._doc.body.innerHTML="";for(var d=0;d=0;d--)g+=" "+n._tree[d],c=c.childNodes.item(n._tree[d]);var _=n._offset;try{i.setStart(c,_),i.setEnd(c,_)}catch(e){return void Sys.Extended.UI.HtmlEditor.inspectForShadows(this._doc.body)}try{this._selectRange(t,i)}catch(e){}}try{Sys.Extended.UI.HtmlEditor.inspectForShadows(this._doc.body)}catch(e){}}},SaveContent:function(){this._saveContent()},RestoreContent:function(){this._undo(!1)},_undo:function(e){if(this.__stack&&this.__stackPos>0){this.__stackPos==this.__stack.length&&e&&this._saveContent();do{var t=Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML);this.__stackPos--,this._restoreContent()}while(Sys.Extended.UI.HtmlEditor.Trim(this._doc.body.innerHTML)==t&&this.__stackPos>0&&e);var i=this;setTimeout(function(){try{i._ifShadow()}catch(e){}if(i._editPanel==Sys.Extended.UI.HtmlEditor.LastFocusedEditPanel)try{i._editPanel.updateToolbar()}catch(e){}e||i.onContentChanged()},0)}},_redo:function(){if(this.__stack&&this.__stackPos0)){var i=t._body.ownerDocument.createElement("div");t._body.appendChild(i),setTimeout(function(){t._body.removeChild(i)},0)}this._restoreContent();var t=this;setTimeout(function(){t._ifShadow(),t._editPanel.updateToolbar()},0)}},undo:function(){this._undo(!0),this.onContentChanged()},redo:function(){this._redo(),this.onContentChanged()},_contextMenuCallP:function(){},onContentChanged:function(){},_copyCut:function(e,t){var i=this;if(Sys.Extended.UI.HtmlEditor.isIE){var n=this._getSelection(),r=this._createRange(n),s=!1,d="";if("x"==e&&this._saveContent(),"control"==n.type.toLowerCase())s=!0,d=Sys.Extended.UI.HtmlEditor.getHTML(r.item(0),!0);else if(""!=r.text){s=!0,d=r.htmlText;var o=r.duplicate(),a=this._getTextNodeCollection();if(a.length<1)return;var l=Sys.Extended.UI.HtmlEditor._commonParent(a[0],a[a.length-1]);if(null!=l&&a[0].previousSibling&&3==a[0].previousSibling.nodeType)for(var c=l.parent;c&&"BODY"!=c.tagName.toUpperCase()&&Sys.Extended.UI.HtmlEditor.isStyleTag(c.tagName);){var h=c.cloneNode(!1);h.innerHTML=d,d=h.outerHTML,c=c.parentNode}n=this._getSelection(),n.empty(),r=this._createRange(n),r.setEndPoint("EndToEnd",o),r.setEndPoint("StartToStart",o),r.select()}else""!=r.htmlText&&(s=!0,d=r.htmlText);if(s){var m=this._doc.createElement("DIV");m.innerHTML="!!!"+d,m.removeChild(m.firstChild),m.removeChild(m.firstChild);var g=Sys.Extended.UI.HtmlEditor.getHTML(m,!1,!0),_=new RegExp("(<[/]?)(teo"+Sys.Extended.UI.HtmlEditor.smartClassName+":)","ig");g=g.replace(_,"$1"),delete m,this._contentCopy(g,!0),r.select(),"x"==e&&(n.clear(),this._clearP())}else"x"==e&&(n.clear(),this._clearP());t&&setTimeout(function(){i._editPanel.updateToolbar()},0)}else if("x"==e){this._saveContent();var n=this._getSelection(),r=this._createRange(n);this._removeAllRanges(n),r.deleteContents(),""==this._doc.body.innerHTML&&(this._doc.body.innerHTML="
",r.setStart(this._doc.body,0),r.setEnd(this._doc.body,0)),i.onContentChanged(),this._selectRange(n,r)}else{var n=this._getSelection(),r=this._createRange(n);this._removeAllRanges(n),alert(String.format(Sys.Extended.UI.Resources.HTMLEditor_toolbar_button_Use_verb,Sys.Extended.UI.HtmlEditor.isSafari&&navigator.userAgent.indexOf("mac")!=-1?"Apple-C":"Ctrl-C")),this._selectRange(n,r)}},_paste:function(e,t){var i,n,r=this,s=this._getSelection(),d=this._createRange(s);if(!e)return i=d.offsetLeft,n=d.offsetTop,this.insertHTML(this._getPlain()),void r.onContentChanged();if(!this._editPanel.get_noPaste()){i=d.offsetLeft,n=d.offsetTop;var o,a=this._doc.createElement("span"),l=this._contentCopy("",!1,t);if(/<[\/]*p[\s>]+/i.test(l)||/<[\/]*h/i.test(l))o=this._getSafePlace();else{if(o=this._doc.createElement("SPAN"),o.id=Sys.Extended.UI.HtmlEditor.smartClassName,!this.insertHTML(Sys.Extended.UI.HtmlEditor.getHTML(o,!0)))return;o=this._doc.getElementById(Sys.Extended.UI.HtmlEditor.smartClassName),o&&(o.id=null,o.removeAttribute("id"),o.setAttribute("para","no"))}if(a.innerHTML=l,o){this._checkImages(a);var c=o.parentNode,h=o.getAttribute("para");if("no"!=h){if(h.indexOf("left")>=0&&a.firstChild&&a.firstChild.tagName&&"P"==a.firstChild.tagName.toUpperCase()){for(;a.firstChild.firstChild;)o.previousSibling.appendChild(a.firstChild.firstChild);a.removeChild(a.firstChild)}if(h.indexOf("right")>=0&&a.lastChild&&a.lastChild.tagName&&"P"==a.lastChild.tagName.toUpperCase()){for(;a.lastChild.lastChild;)o.nextSibling.insertBefore(a.lastChild.lastChild,o.nextSibling.firstChild);a.removeChild(a.lastChild)}}var m=o,g=null;if(0==a.childNodes.length&&h.indexOf("left")>=0&&h.indexOf("right")>=0){for(o.nextSibling.firstChild&&(g=this._doc.createElement("span"),m=g,g.innerHTML="111",o.previousSibling.appendChild(g));o.nextSibling.firstChild;)o.previousSibling.appendChild(o.nextSibling.firstChild);c.removeChild(o.nextSibling)}else for(;a.firstChild;)c.insertBefore(a.firstChild,o);setTimeout(function(){var e=r._getSelection(),t=r._createRange(e);if("control"==e.type.toLowerCase())for(;t.length>0;)t.remove(0);try{t.collapse(!1)}catch(e){}r.focusEditor(),Sys.Extended.UI.HtmlEditor._setCursor(m,r),g&&g.parentNode.removeChild(g),c.removeChild(o),Sys.Extended.UI.HtmlEditor.inspectForShadows(r._doc.body),r.onContentChanged(),t.select()},0)}}},_contentCopy:function(e,t,i){""!=e&&(e=e.replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/gi,"$1 $3").replace(/(]*?>)\s*( )\s*(<\/td[^>]*?>)/gi,"$1
$3").replace(/(]*?>)\s*( )\s*(<\/p[^>]*?>)/gi,"$1
$3"));var n=this._doc.createElement("iframe");n.width="0",n.height="0",Sys.Extended.UI.HtmlEditor.isIE&&(n.src="javascript:false;"),this._doc.appendChild(n);var r=n.contentWindow.document;r.write(""+e+""),r.close(),r.body.contentEditable=!0;var s=r.body.createTextRange(),d=!1;if(""==e){s.execCommand("paste");for(var o=r.createElement("DIV"),a=0;a=0&&l.nextSibling&&3==l.nextSibling.nodeType){var c=""+l.nextSibling.data;if(c.length&&160==c.charCodeAt(0)){c=c.substr(1),l.nextSibling.data=c,d=!0;break}}}}"undefined"!=typeof i&&i&&(r.body.innerHTML=Sys.Extended.UI.HtmlEditor.cleanUp(r.body.innerHTML));var c=Sys.Extended.UI.HtmlEditor.Trim(Sys.Extended.UI.HtmlEditor.getHTML(r.body,!1,!0));if(c=c.replace(/(]*?)>(?:[^<]*?)<\/script(?:[^>]*?)>)/gi,""),r.body.innerHTML=c,!t){Sys.Extended.UI.HtmlEditor.operateAnchors(this,r,!this.showAnchors),Sys.Extended.UI.HtmlEditor.operatePlaceHolders(this,r,!this.showPlaceHolders);for(var h=r.body.getElementsByTagName("EMBED"),m=[],a=0;a\s*<\/td>/gi,"").replace(/(]*?>)([\s ]*?)(<\/td[^>]*?>)/gi,"$1 $3").replace(/(]*?>)\s*(]*?>)\s*(<\/p[^>]*?>)/gi,"$1 $3").replace(/()/gi,"$1pseudomode=$3$4").replace(/(]*?>)/gi,'$1 wmode="transparent"$2'),h=r.body.getElementsByTagName("EMBED"),m=[],a=0;a