kendoui-rails 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -1
- data/EULA-Kendo.pdf +0 -0
- data/LicenseAgreements/EULA.rtf +352 -335
- data/LicenseAgreements/EULA.txt +264 -295
- data/lib/kendoui-rails/version.rb +2 -2
- data/vendor/assets/changelog.html +731 -0
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am-ET.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-AE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-BH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-DZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-EG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-IQ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-JO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-KW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-MA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-OM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-QA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-TN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-YE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn-CL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl-AZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn-AZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be-BY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg-BG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-BD.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs-CZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da-DK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-AT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv-MV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el-GR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-029.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-AU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-BZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-JM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-MY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-NZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-PH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-SG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-TT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-US.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-AR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-BO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-DO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-EC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-GT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-HN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-MX.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-NI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-SV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-US.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-UY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-VE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et-EE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa-IR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil-PH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo-FO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-BE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-MC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy-NL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga-IE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he-IL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-HR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu-HU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy-AM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id-ID.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is-IS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-IT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja-JP.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka-GE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk-KZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl-GL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km-KH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko-KR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky-KG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo-LA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt-LT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv-LV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi-NZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk-MK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-MN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-BN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-MY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt-MT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne-NP.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-BE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-NL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.no.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl-PL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs-AF.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps-AF.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-BR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-PT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut-GT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-BO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-EC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-PE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro-RO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-UA.min.js +10 -0
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw-RW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si-LK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk-SK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl-SI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq-AL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-CS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-ME.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-RS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-CS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-ME.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-RS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw-KE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr-SY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl-TJ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th-TH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk-TM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr-TR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn-DZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk-UA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur-PK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl-UZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn-UZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi-VN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo-SN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-HK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hans.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hant.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-MO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-SG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-TW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/kendo.autocomplete.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.binder.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.calendar.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.columnmenu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.combobox.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.core.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.odata.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.xml.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.datepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.datetimepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.draganddrop.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.dropdownlist.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.editable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.editor.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.filtermenu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.fx.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.grid.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.groupable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.list.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.listview.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.menu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.mobile.scroller.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.numerictextbox.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.pager.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.panelbar.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.popup.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.reorderable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.resizable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.selectable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.slider.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.sortable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.splitter.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.tabstrip.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.timepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.treeview.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.upload.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.validator.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.web.min.js +2 -2
- data/vendor/assets/javascripts/kendo/kendo.window.min.js +10 -0
- data/vendor/assets/stylesheets/kendo/Black/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/BlueOpal/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Default/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Silver/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/kendo.black.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.blueopal.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.common.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.default.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.hakama.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.kendo.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.metro.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.silver.min.css +2 -2
- metadata +47 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["yo-NG"]={name:"yo-NG",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"N"}},calendars:{standard:{days:{names:["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],namesAbbr:["Aik","Aje","Ise","Ojo","Ojo","Eti","Aba"],namesShort:["A","A","I","O","O","E","A"]},months:{names:["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],namesAbbr:["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""]},AM:["Owuro","owuro","OWURO"],PM:["Ale","ale","ALE"],patterns:{d:"d/M/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"d/M/yyyy h:mm tt",G:"d/M/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["yo-NG"]={name:"yo-NG",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"N"}},calendars:{standard:{days:{names:["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],namesAbbr:["Aik","Aje","Ise","Ojo","Ojo","Eti","Aba"],namesShort:["A","A","I","O","O","E","A"]},months:{names:["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],namesAbbr:["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""]},AM:["Owuro","owuro","OWURO"],PM:["Ale","ale","ALE"],patterns:{d:"d/M/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"d/M/yyyy h:mm tt",G:"d/M/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures.yo={name:"yo",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"N"}},calendars:{standard:{days:{names:["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],namesAbbr:["Aik","Aje","Ise","Ojo","Ojo","Eti","Aba"],namesShort:["A","A","I","O","O","E","A"]},months:{names:["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],namesAbbr:["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""]},AM:["Owuro","owuro","OWURO"],PM:["Ale","ale","ALE"],patterns:{d:"d/M/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"d/M/yyyy h:mm tt",G:"d/M/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures.yo={name:"yo",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"N"}},calendars:{standard:{days:{names:["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],namesAbbr:["Aik","Aje","Ise","Ojo","Ojo","Eti","Aba"],namesShort:["A","A","I","O","O","E","A"]},months:{names:["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],namesAbbr:["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""]},AM:["Owuro","owuro","OWURO"],PM:["Ale","ale","ALE"],patterns:{d:"d/M/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"d/M/yyyy h:mm tt",G:"d/M/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-CHS"]={name:"zh-CHS",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-CHS"]={name:"zh-CHS",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-CHT"]={name:"zh-CHT",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-CHT"]={name:"zh-CHT",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-CN"]={name:"zh-CN",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-CN"]={name:"zh-CN",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-HK"]={name:"zh-HK",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-HK"]={name:"zh-HK",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-Hans"]={name:"zh-Hans",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-Hans"]={name:"zh-Hans",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-Hant"]={name:"zh-Hant",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-Hant"]={name:"zh-Hant",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"HK$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-MO"]={name:"zh-MO",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"MOP"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-MO"]={name:"zh-MO",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"MOP"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"d/M/yyyy H:mm",G:"d/M/yyyy H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-SG"]={name:"zh-SG",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' tt h:mm:ss",g:"d/M/yyyy tt h:mm",G:"d/M/yyyy tt h:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt h:mm",T:"tt h:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-SG"]={name:"zh-SG",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"d/M/yyyy",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' tt h:mm:ss",g:"d/M/yyyy tt h:mm",G:"d/M/yyyy tt h:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt h:mm",T:"tt h:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zh-TW"]={name:"zh-TW",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"NT$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' tt hh:mm:ss",g:"yyyy/M/d tt hh:mm",G:"yyyy/M/d tt hh:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt hh:mm",T:"tt hh:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zh-TW"]={name:"zh-TW",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"NT$"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' tt hh:mm:ss",g:"yyyy/M/d tt hh:mm",G:"yyyy/M/d tt hh:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt hh:mm",T:"tt hh:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures.zh={name:"zh",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures.zh={name:"zh",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures["zu-ZA"]={name:"zu-ZA",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"R"}},calendars:{standard:{days:{names:["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],namesAbbr:["Son.","Mso.","Bi.","Tha.","Ne.","Hla.","Mgq."],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],namesAbbr:["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"yyyy/MM/dd",D:"dd MMMM yyyy",F:"dd MMMM yyyy hh:mm:ss tt",g:"yyyy/MM/dd hh:mm tt",G:"yyyy/MM/dd hh:mm:ss tt",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures["zu-ZA"]={name:"zu-ZA",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"R"}},calendars:{standard:{days:{names:["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],namesAbbr:["Son.","Mso.","Bi.","Tha.","Ne.","Hla.","Mgq."],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],namesAbbr:["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"yyyy/MM/dd",D:"dd MMMM yyyy",F:"dd MMMM yyyy hh:mm:ss tt",g:"yyyy/MM/dd hh:mm tt",G:"yyyy/MM/dd hh:mm:ss tt",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){kendo.cultures.zu={name:"zu",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"R"}},calendars:{standard:{days:{names:["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],namesAbbr:["Son.","Mso.","Bi.","Tha.","Ne.","Hla.","Mgq."],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],namesAbbr:["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"yyyy/MM/dd",D:"dd MMMM yyyy",F:"dd MMMM yyyy hh:mm:ss tt",g:"yyyy/MM/dd hh:mm tt",G:"yyyy/MM/dd hh:mm:ss tt",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:0}}}})(this)
|
10
|
+
;(function(a,b){kendo.cultures.zu={name:"zu",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$ n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"R"}},calendars:{standard:{days:{names:["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],namesAbbr:["Son.","Mso.","Bi.","Tha.","Ne.","Hla.","Mgq."],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],namesAbbr:["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"yyyy/MM/dd",D:"dd MMMM yyyy",F:"dd MMMM yyyy hh:mm:ss tt",g:"yyyy/MM/dd hh:mm tt",G:"yyyy/MM/dd hh:mm:ss tt",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:0}}}})(this);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function x(a){var b=a.value.length;s(a,b,b)}function w(a,b,c,d){var e=b.split(d);e.splice(u(a,b,d),1,c),d&&e[e.length-1]!==""&&e.push("");return e.join(d)}function v(a,b,c){return b.split(c)[u(a,b,c)]}function u(a,b,c){return c?b.substring(0,a).split(c).length-1:0}var c=window.kendo,d=c.support,e=d.placeholder,f=c.ui,g=c.keys,h=c.data.DataSource,i=f.List,j="change",k="k-state-default",l="disabled",m="k-state-focused",n="k-state-selected",o="k-state-disabled",p="k-state-hover",q="mouseenter mouseleave",r=i.caret,s=i.selectText,t=a.proxy,y=i.extend({init:function(b,d){var f=this,g;d=a.isArray(d)?{dataSource:d}:d,i.fn.init.call(f,b,d),b=f.element,d=f.options,d.placeholder=d.placeholder||b.attr("placeholder"),e&&b.attr("placeholder",d.placeholder),f._wrapper(),f._accessors(),f._dataSource(),b[0].type="text",g=f.wrapper,b.attr("autocomplete","off").addClass("k-input").bind({keydown:t(f._keydown,f),paste:t(f._search,f),focus:function(){f._prev=f.value(),f._placeholder(!1),g.addClass(m),clearTimeout(f._bluring)},blur:function(){f._change(),f._placeholder(),g.removeClass(m)}}),f._enable(),f._popup(),f._old=f.value(),f._placeholder(),c.notify(f)},options:{name:"AutoComplete",suggest:!1,template:"",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{}},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(j,a._refreshHandler):a._refreshHandler=t(a.refresh,a),a.dataSource=h.create(a.options.dataSource).bind(j,a._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource()},events:["open","close",j,"select","dataBinding","dataBound"],setOptions:function(a){i.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper;a===!1?(d.removeClass(k).addClass(o).unbind(q),c.attr(l,l)):(d.removeClass(o).addClass(k).bind(q,b._toggleHover),c.removeAttr(l))},close:function(){var a=this;a._current=null,a.popup.close()},refresh:function(){var b=this,d=b.ul[0],e=b.popup,f=b.options,g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),h&&(f.highlightFirst&&b.current(a(d.firstChild)),f.suggest&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,e[h?"open":"close"]()),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b.trigger("dataBound")},select:function(a){this._select(a)},search:function(a){var b=this,c=b.options,d=c.ignoreCase,e=c.separator,f;a=a||b.value(),b._current=null,clearTimeout(b._typing),e&&(a=v(r(b.element[0]),a,e)),f=a.length,f?f>=b.options.minLength&&(b._open=!0,b.dataSource.filter({value:d?a.toLowerCase():a,operator:c.filter,field:c.dataTextField,ignoreCase:d})):b.popup.close()},suggest:function(a){var c=this,d=c._last,e=c.value(),f=c.element[0],h=r(f),j=c.options.separator,k=e.split(j),l=u(h,e,j),m=h,n;d==g.BACKSPACE||d==g.DELETE?c._last=b:(a=a||"",typeof a!="string"&&(n=i.inArray(a[0],c.ul[0]),n>-1?a=c._text(c._data()[n]):a=""),h<=0&&(h=e.toLowerCase().indexOf(a.toLowerCase())+1),n=e.substring(0,h).lastIndexOf(j),n=n>-1?h-(n+j.length):h,e=k[l].substring(0,n),a&&(n=a.toLowerCase().indexOf(e.toLowerCase()),n>-1&&(a=a.substring(n+e.length),m=h+a.length,e+=a),j&&k[k.length-1]!==""&&k.push("")),k[l]=e,c.value(k.join(j||"")),s(f,h,m))},value:function(a){var c=this,d=c.element[0];if(a!==b)d.value=a,c._placeholder();else{a=d.value;if(d.className.indexOf("k-readonly")>-1)return a===c.options.placeholder?"":a;return a}},_accept:function(a){var b=this;b._focus(a),x(b.element[0])},_keydown:function(b){var c=this,d=c.ul[0],e=b.keyCode,f=c._current,h=c.popup.visible();c._last=e,e===g.DOWN?(h&&c._move(f?f.next():a(d.firstChild)),b.preventDefault()):e===g.UP?(h&&c._move(f?f.prev():a(d.lastChild)),b.preventDefault()):e===g.ENTER||e===g.TAB?(c.popup.visible()&&b.preventDefault(),c._accept(f)):e===g.ESC?c.close():c._search()},_move:function(a){var b=this;a=a[0]?a:null,b.current(a),b.options.suggest&&b.suggest(a)},_placeholder:function(a){if(!e){var c=this,d=c.element,f=c.options.placeholder,g;if(f){g=d.val(),a===b&&(a=!g),a||(g!==f?f=g:f="");if(g===c._old&&!a)return;d.toggleClass("k-readonly",a).val(f)}}},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._prev!==a.value()&&(a._prev=a.value(),a.search())},a.options.delay)},_select:function(b){var c=this,d=c.options.separator,e=c._data(),f,g;b=a(b),b[0]&&!b.hasClass(n)&&(g=i.inArray(b[0],c.ul[0]),g>-1&&(e=e[g],f=c._text(e),d&&(f=w(r(c.element[0]),c.value(),f,d)),c.value(f),c.current(b.addClass(n))))},_toggleHover:function(b){d.touch||a(b.currentTarget).toggleClass(p,b.type==="mouseenter")},_wrapper:function(){var a=this,b=a.element,c=b[0],d;d=b.parent(),d.is("span.k-widget")||(d=b.wrap("<span />").parent()),d[0].style.cssText=c.style.cssText,b.css({width:"100%",height:c.style.height}),a._focused=a.element,a.wrapper=d.addClass("k-widget k-autocomplete k-header").addClass(c.className)}});f.plugin(y)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function F(a,b){var c=a.element,d=c[0].kendoBindingTarget;d&&B(c,d.source,b)}function E(b){var c,d;b=a(b);for(c=0,d=b.length;c<d;c++)D(b[c])}function D(a){var b,c,d=a.children;C(a);if(d)for(b=0,c=d.length;b<c;b++)D(d[b])}function C(b){var c=b.kendoBindingTarget;c&&(c.destroy(),a.support.deleteExpando?delete b.kendoBindingTarget:b.removeAttribute?b.removeAttribute("kendoBindingTarget"):b.kendoBindingTarget=null)}function B(b,d,e){var f,g;d=c.observable(d),b=a(b);for(f=0,g=b.length;f<g;f++)A(b[f],d,e)}function A(a,b,d){var e=a.getAttribute("data-"+c.ns+"role"),f,g=a.getAttribute("data-"+c.ns+"bind"),h=a.children,i=!0,j,k={},l;d||(d=c.ui),(e||g)&&C(a),e&&(l=v(e,a,d)),g&&(g=y(g.replace(x,"")),l||(k=c.parseOptions(a,{textField:"",valueField:"",template:"",valueUpdate:n}),l=new s(a,k)),l.source=b,j=z(g,b,o),k.template&&(j.template=new q(b,"",k.template)),j.click&&(g.events=g.events||{},g.events.click=g.click,delete j.click),j.source&&(i=!1),g.attr&&(j.attr=z(g.attr,b,o)),g.style&&(j.style=z(g.style,b,o)),g.events&&(j.events=z(g.events,b,p)),l.bind(j)),l&&(a.kendoBindingTarget=l);if(i&&h)for(f=0;f<h.length;f++)A(h[f],b,d)}function z(a,b,c){var d,e={};for(d in a)e[d]=new c(b,a[d]);return e}function y(a){var b={},c,d,e,f,g,h,i;i=a.match(w);for(c=0,d=i.length;c<d;c++)e=i[c],f=e.indexOf(":"),g=e.substring(0,f),h=e.substring(f+1),h.charAt(0)=="{"&&(h=y(h)),b[g]=h;return b}function v(a,b,d){var e=d.roles,f=e[a];if(f)return new t(c.initWidget(b,f.options,e))}function u(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(u(a[b].items)):d=d.concat(a[b].items);return d}var c=window.kendo,d=c.Observable,e=c.data.ObservableObject,f=c.data.ObservableArray,g={}.toString,h={},i=c.Class,j,k=a.proxy,l="value",m="checked",n="change";(function(){var a=document.createElement("a");a.innerText!==undefined?j="innerText":a.textContent!==undefined&&(j="textContent")})();var o=d.extend({init:function(a,b){var c=this;d.fn.init.call(c),c.source=a,c.path=b,c.dependencies={},c.dependencies[b]=!0,c.observable=c.source instanceof d,c._access=function(a){c.dependencies[a.field]=!0},c.observable&&(c._change=function(a){c.change(a)},c.source.bind(n,c._change))},change:function(a){var b,c,d,e=this;if(e.path==="this")e.trigger(n,a);else for(b in e.dependencies){c=b.indexOf(a.field);if(c===0){d=b.charAt(a.field.length);if(!d||d==="."||d==="["){e.trigger(n,a);break}}}},start:function(){this.observable&&this.source.bind("get",this._access)},stop:function(){this.observable&&this.source.unbind("get",this._access)},get:function(){var a=this,b=a.source,c,d=a.path,f=b;a.start();if(a.observable){f=b.get(d);while(f===undefined&&b)b=b.parent(),b instanceof e&&(f=b.get(d));typeof f=="function"&&(c=d.lastIndexOf("."),c>0&&(b=b.get(d.substring(0,c))),f=k(f,b),f=f(a.source)),b&&b!==a.source&&b.unbind(n,a._change).bind(n,a._change)}a.stop();return f},set:function(a){this.source.set(this.path,a)},destroy:function(){this.observable&&this.source.unbind(n,this._change)}}),p=o.extend({get:function(){var a=this.source,b=this.path,c;c=a.get(b);while(!c&&a)a=a.parent(),a instanceof e&&(c=a.get(b));return k(c,a)}}),q=o.extend({init:function(a,b,c){var d=this;o.fn.init.call(d,a,b),d.template=c},render:function(a){var b;this.start(),b=c.render(this.template,a),this.stop();return b}}),r=i.extend({init:function(a,b,c){this.element=a,this.bindings=b,this.options=c},bind:function(a,b){var c=this;a=b?a[b]:a,a.bind(n,function(a){c.refresh(b||a)}),c.refresh(b)},destroy:function(){}});h.attr=r.extend({refresh:function(a){this.element.setAttribute(a,this.bindings.attr[a].get())}}),h.style=r.extend({refresh:function(a){this.element.style[a]=this.bindings.style[a].get()}}),h.enabled=r.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),h.disabled=r.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),h.events=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c),this.handlers={}},refresh:function(b){var c=this.bindings.events[b],d=this.handlers[b]=c.get();a(this.element).bind(b,c.source,d)},destroy:function(){var b=a(this.element),c;for(c in this.handlers)b.unbind(c,this.handlers[c])}}),h.text=r.extend({refresh:function(){var a=this.bindings.text.get();a==null&&(a=""),this.element[j]=a}}),h.visible=r.extend({refresh:function(){this.bindings.visible.get()?this.element.style.display="":this.element.style.display="none"}}),h.invisible=r.extend({refresh:function(){this.bindings.invisible.get()?this.element.style.display="none":this.element.style.display=""}}),h.html=r.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),h.value=r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),this.eventName=d.valueUpdate||n,a(this.element).bind(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=n,this.bindings[l].set(this.element.value),this._initChange=!1},refresh:function(){if(!this._initChange){var a=this.bindings[l].get();a==null&&(a=""),this.element.value=a}this._initChange=!1},destroy:function(){a(this.element).unbind(this.eventName,this._change)}}),h.source=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c)},refresh:function(a){var b=this,c=b.bindings.source.get();c instanceof f?(a=a||{},a.action=="add"?b.add(a.index,a.items):a.action=="remove"?b.remove(a.index,a.items):a.action!="itemchange"&&b.render()):b.render()},container:function(){var a=this.element;a.nodeName.toLowerCase()=="table"&&(a.tBodies[0]||a.appendChild(document.createElement("tbody")),a=a.tBodies[0]);return a},template:function(){var a=this.options,b=a.template,d=this.container().nodeName.toLowerCase();b||(d=="select"?a.valueField||a.textField?b=c.format('<option value="#:{0}#">#:{1}#</option>',a.valueField||a.textField,a.textField||a.valueField):b="<option>#:data#</option>":d=="tbody"?b="<tr><td>#:data#</td></tr>":d=="ul"||d=="ol"?b="<li>#:data#</li>":b="#:data#",b=c.template(b));return b},destroy:function(){var a=this.bindings.source.get();a.unbind(n,this._change)},add:function(b,d){var e=this.container(),f,g,h,i=e.cloneNode(!1),j=e.children[b];a(i).html(c.render(this.template(),d));if(i.children.length)for(f=0,g=d.length;f<g;f++)h=i.children[0],e.insertBefore(h,j||null),A(h,d[f])},remove:function(a,b){var c,d=this.container();for(c=0;c<b.length;c++)d.removeChild(d.children[a])},render:function(){var b=this.bindings.source.get(),d,e,h=this.container(),i=this.template(),j;!(b instanceof f)&&g.call(b)!=="[object Array]"&&(b.parent&&(j=b.parent),b=new f([b]),b.parent&&(b.parent=j));if(this.bindings.template){a(h).html(this.bindings.template.render(b));if(h.children.length)for(d=0,e=b.length;d<e;d++)A(h.children[d],b[d])}else a(h).html(c.render(i,b))}}),h.input={checked:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=this.element,b=this.value();if(a.type=="radio")this.bindings[m].set(b);else if(a.type=="checkbox"){var c=this.bindings[m].get(),d;c instanceof f?b!==!1&&b!==!0&&(d=c.indexOf(b),d>-1?c.splice(d,1):c.push(b)):this.bindings[m].set(b)}},refresh:function(){var a=this.bindings[m].get(),b=this.element;b.type=="checkbox"?(a instanceof f&&a.indexOf(this.value(b))>=0&&(a=!0),b.checked=a===!0):b.type=="radio"&&a!=null&&b.value===a.toString()&&(b.checked=!0)},value:function(){var a=this.element,b=a.value;a.type=="checkbox"&&(b=="on"||b=="off"||b==="true")&&(b=a.checked);return b},destroy:function(){a(this.element).unbind(n,this._change)}})},h.select={value:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=[],b=this.element,c,d=this.options.valueField||this.options.textField,g,h,i,j,k;for(j=0,k=b.options.length;j<k;j++)g=b.options[j],g.selected&&(i=g.attributes.value,i&&i.specified?i=g.value:i=g.text,a.push(i));if(d){c=this.bindings.source.get();for(h=0;h<a.length;h++)for(j=0,k=c.length;j<k;j++)if(c[j].get(d)==a[h]){a[h]=c[j];break}}i=this.bindings[l].get(),i instanceof f?i.splice.apply(i,[0,i.length].concat(a)):i instanceof e||!d?this.bindings[l].set(a[0]):this.bindings[l].set(a[0].get(d))},refresh:function(){var a,b=this.element,c=b.options,d=this.bindings[l].get(),g=d,h=this.options.valueField||this.options.textField,i;g instanceof f||(g=new f([d]));for(var j=0;j<g.length;j++){d=g[j],h&&d instanceof e&&(d=d.get(h));for(a=0;a<c.length;a++)i=c[a].value,i===""&&d!==""&&(i=c[a].text),i==d&&(c[a].selected=!0)}},destroy:function(){a(this.element).unbind(n,this._change)}})},h.widget={events:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this.handlers={}},refresh:function(a){var b=this.bindings.events[a],c=b.get();this.handlers[a]=function(a){a.data=b.source,c(a)},this.widget.bind(a,this.handlers[a])},destroy:function(){var a;for(a in this.handlers)this.widget.unbind(a,this.handlers[a])}}),checked:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this._change=k(this.change,this),this.widget.bind(n,this._change)},change:function(){this.bindings[m].set(this.value())},refresh:function(){this.widget.check(this.bindings[m].get()===!0)},value:function(){var a=this.element,b=a.value;if(b=="on"||b=="off")b=a.checked;return b},destroy:function(){this.widget.unbind(n,this._change)}}),visible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.visible.get();this.widget.wrapper[0].style.display=a?"":"none"}}),invisible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.invisible.get();this.widget.wrapper[0].style.display=a?"none":""}}),enabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:r.extend({init:function(a,b,c){var d=this;r.fn.init.call(d,a.element[0],b,c),d.widget=a,d._dataBinding=k(d.dataBinding,d),d._dataBound=k(d.dataBound,d),d._itemChange=k(d.itemChange,d)},itemChange:function(a){A(a.item[0],a.data,a.ns||c.ui)},dataBinding:function(){var a,b,c=this.widget,d=c.items();for(a=0,b=d.length;a<b;a++)D(d[a])},dataBound:function(a){var b,d,e=this.widget,f=e.items(),g=e.dataSource,h=g.view(),i=a.ns||c.ui,j=g.group()||[];if(f.length){j.length&&(h=u(h));for(b=0,d=h.length;b<d;b++)A(f[b],h[b],i)}},refresh:function(a){var b=this,d,e=b.widget;a=a||{},a.action||(b.destroy(),e.bind("dataBinding",b._dataBinding),e.bind("dataBound",b._dataBound),e.bind("itemChange",b._itemChange),e.dataSource instanceof c.data.DataSource&&(d=b.bindings.source.get(),d instanceof c.data.DataSource?e.setDataSource(d):e.dataSource.data(d)))},destroy:function(){var a=this.widget;a.unbind("dataBinding",this._dataBinding),a.unbind("dataBound",this._dataBound),a.unbind("itemChange",this._itemChange)}}),value:r.extend({init:function(b,c,d){r.fn.init.call(this,b.element[0],c,d),this.widget=b,this._change=a.proxy(this.change,this),this.widget.first(n,this._change);var f=this.bindings.value.get();this._valueIsObservableObject=f==null||f instanceof e},change:function(){var a=this.widget.value(),b,d,e=this.options.dataValueField||this.options.dataTextField;if(e){var f,g=this._valueIsObservableObject;this.bindings.source&&(f=this.bindings.source.get());if(a===""&&g)a=null;else{if(!f||f instanceof c.data.DataSource)f=this.widget.dataSource.view();for(b=0,d=f.length;b<d;b++)if(f[b].get(e)==a){g?a=f[b]:a=f[b].get(e);break}}}this.bindings.value.set(a)},refresh:function(){var a=this.options.dataValueField||this.options.dataTextField,b=this.bindings.value.get();a&&b instanceof e&&(b=b.get(a)),this.widget.value(b)},destroy:function(){this.widget.unbind(n,this._change)}})};var s=i.extend({init:function(a,b){this.target=a,this.options=b,this.toDestroy=[]},bind:function(a){var b=this.target.nodeName.toLowerCase(),c,d=h[b]||{};for(c in a)this.applyBinding(c,a,d)},applyBinding:function(a,b,c){var d=c[a]||h[a],e=this.toDestroy,f,g=b[a];if(d){d=new d(this.target,b,this.options),e.push(d);if(g instanceof o)d.bind(g),e.push(g);else for(f in g)d.bind(g,f),e.push(g[f])}else if(a!=="template")throw new Error("The "+a+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var a,b,c=this.toDestroy;for(a=0,b=c.length;a<b;a++)c[a].destroy()}}),t=s.extend({bind:function(a){var b=this,c,d=!1,e=!1;for(c in a)c==l?d=!0:c=="source"?e=!0:b.applyBinding(c,a);e&&b.applyBinding("source",a),d&&b.applyBinding(l,a)},applyBinding:function(a,b){var c=h.widget[a],d=this.toDestroy,e,f=b[a];if(!c)throw new Error("The "+a+" binding is not supported by the "+this.target.options.name+" widget");c=new c(this.target,b,this.target.options),d.push(c);if(f instanceof o)c.bind(f),d.push(f);else for(e in f)c.bind(f,e),d.push(f[e])}}),w=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,x=/\s/g;c.unbind=E,c.bind=B,c.data.binders=h,c.data.Binder=r,c.notify=F,c.observable=function(a){a instanceof e||(a=new e(a));return a}})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function ba(a,b){if(a)return a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate();return!1}function _(a,b){for(var c=0,d=b.length;c<d;c++)if(a===+b[c])return!0;return!1}function $(a){o&&a.find("*").attr("unselectable","on")}function Z(a){var c=N[a.start],d=N[a.depth],e=i(a.culture);a.format=g(a.format||e.calendars.standard.patterns.d),isNaN(c)&&(c=0,a.start=t);if(d===b||d>c)a.depth=t}function Y(a){return i(a).calendars.standard}function X(a){a.preventDefault()}function W(b){b.stopImmediatePropagation(),a(this).toggleClass(y,b.type=="mouseenter")}function V(a,b,c){b=b instanceof M?b.getFullYear():a.getFullYear()+c*b,a.setFullYear(b)}function U(a,b){return a.slice(b).concat(a.slice(0,b))}function T(a,b,c){return+a>=+b&&+a<=+c}function S(a,b,c){var d=new M;d=new M(d.getFullYear(),d.getMonth(),d.getDate()),a&&(d=new M(a)),b>d?d=new M(b):c<d&&(d=new M(c));return d}function R(a,b,c){var d=a.getFullYear(),e=b.getFullYear(),f=e,g=0;c&&(e=e-e%c,f=e-e%c+c-1),d>f?g=1:d<e&&(g=-1);return g}function Q(a){var b=0,c,d=a.min,e=a.max,f=a.start,g=a.setter,h=a.build,i=a.cells||12,j=a.perRow||4,k=a.content||m,l=a.empty||n,o=a.html||'<table class="k-content k-meta-view" cellspacing="0"><tbody><tr>';for(;b<i;b++)b>0&&b%j===0&&(o+="</tr><tr>"),c=h(f,b),o+=T(f,d,e)?k(c):l(c),g(f,1);return o+"</tr></tbody></table>"}var c=window.kendo,d=c.ui,e=d.Widget,f=c.parseDate,g=c._extractFormat,h=c.template,i=c.getCulture,j=c.support.touch,k=c.support.transitions,l=k?k.css+"transform-origin":"",m=h('<td#=data.cssClass#><a class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),n=h("<td> </td>",{useWithBlock:!1}),o=a.browser.msie&&parseInt(a.browser.version,10)<9,p=j?"touchend":"click",q="min",r="left",s="slide",t="month",u="century",v="change",w="navigate",x="value",y="k-state-hover",z="k-state-disabled",A="k-other-month",B=' class="'+A+'"',C="k-nav-today",D="td:has(.k-link)",E=j?"touchstart":"mouseenter",F=j?"touchend":"mouseleave",G=6e4,H=864e5,I="_prevArrow",J="_nextArrow",K=a.proxy,L=a.extend,M=Date,N={month:0,year:1,decade:2,century:3},O=e.extend({init:function(a,b){var d=this,f;e.fn.init.call(d,a,b),a=d.wrapper=d.element,b=d.options,b.url=window.unescape(b.url),a.addClass("k-widget k-calendar"),d._templates(),d._header(),d._footer(d.footer),a.delegate(D,E+" "+F,W).delegate(D,p,K(d._click,d)),f=b.value,Z(b),d._index=N[b.start],d._current=new M(S(f,b.min,b.max)),d.value(f),c.notify(d)},options:{name:"Calendar",value:null,min:new M(1900,0,1),max:new M(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:t,depth:t,animation:{horizontal:{effects:s,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[v,w],setOptions:function(a){Z(a),e.fn.setOptions.call(this,a)},min:function(a){return this._option(q,a)},max:function(a){return this._option("max",a)},navigateToPast:function(){this._navigate(I,-1)},navigateToFuture:function(){this._navigate(J,1)},navigateUp:function(){var a=this,b=a._index;a._title.hasClass(z)||a.navigate(a._current,++b)},navigateDown:function(a){var b=this,c=b._index,d=b.options.depth;if(!!a){if(c===N[d]){+b._value!=+a&&(b.value(a),b.trigger(v));return}b.navigate(a,--c)}},navigate:function(c,d){d=isNaN(d)?N[d]:d;var e=this,f=e.options,g=f.culture,h=f.min,i=f.max,j=e._title,k=e._table,l=e._value,m=e._current,n=c&&+c>+m,o=d!==b&&d!==e._index,p,q,r;c?e._current=c=new M(S(c,h,i)):c=m,d===b?d=e._index:e._index=d,e._view=q=P.views[d],r=q.compare,j.toggleClass(z,d===N[u]),e[I].toggleClass(z,r(c,h)<1),e[J].toggleClass(z,r(c,i)>-1);if(!k||e._changeView)j.html(q.title(c,g)),e._table=p=a(q.content(L({min:h,max:i,date:c,url:f.url,dates:f.dates,format:f.format,culture:g},e[q.name]))),$(p),e._animate({from:k,to:p,vertical:o,future:n}),e.trigger(w);d===N[f.depth]&&l&&e._class("k-state-selected",q.toDateString(l)),e._changeView=!0},value:function(a){var c=this,d=c._view,e=c.options,g=e.min,h=e.max;if(a===b)return c._value;a=f(a,e.format,e.culture),a!==null&&(a=new M(a),T(a,g,h)||(a=null)),c._value=a,c._changeView=!a||d&&d.compare(a,c._current)!==0,c.navigate(a)},_animate:function(a){var b=this,c=a.from,d=a.to;c?c.parent().data("animating")?(c.parent().kendoStop(!0,!0).remove(),c.remove(),d.insertAfter(b.element[0].firstChild)):!c.is(":visible")||b.options.animation===!1?(d.insertAfter(c),c.remove()):b[a.vertical?"_vertical":"_horizontal"](c,d,a.future):d.insertAfter(b.element[0].firstChild)},_horizontal:function(a,b,c){var d=this,e=d.options.animation.horizontal,f=e.effects,g=a.outerWidth();f&&f.indexOf(s)!=-1&&(a.add(b).css({width:g}),a.wrap("<div/>"),a.parent().css({position:"relative",width:g*2,"float":r,left:c?0:-g}),b[c?"insertAfter":"insertBefore"](a),L(e,{effects:s+":"+(c?r:"right"),complete:function(){a.remove(),b.unwrap()}}),a.parent().kendoStop(!0,!0).kendoAnimate(e))},_vertical:function(a,b){var c=this,d=c.options.animation.vertical,e=d.effects,f,g;e&&e.indexOf("zoom")!=-1&&(b.css({position:"absolute",top:a.prev().outerHeight(),left:0}).insertBefore(a),l&&(f=c._cellByDate(c._view.toDateString(c._current)),g=f.position(),g=g.left+parseInt(f.width()/2,10)+"px"+" "+(g.top+parseInt(f.height()/2,10)+"px"),b.css(l,g)),a.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){a.remove(),b.css({position:"static",top:0,left:0})}}),b.kendoStop(!0,!0).kendoAnimate(d))},_cellByDate:function(b){return this._table.find("td:not(."+A+")").filter(function(){return a(this.firstChild).attr(c.attr(x))===b})},_class:function(b,d){this._table.find("td:not(."+A+")").removeClass(b).filter(function(){return a(this.firstChild).attr(c.attr(x))===d}).addClass(b)},_click:function(b){var d=this,e=d.options,f=d._current,g=a(b.currentTarget.firstChild),h=g.attr(c.attr(x)).split("/");h=new M(h[0],h[1],h[2]),g[0].href.indexOf("#")!=-1&&b.preventDefault(),g.parent().hasClass(A)?f=h:d._view.setDate(f,h),d.navigateDown(S(f,e.min,e.max))},_focus:function(a){var b=this,c=b._view;c.compare(a,b._current)!==0?b.navigate(a):b._current=a,b._class("k-state-focused",c.toDateString(a))},_footer:function(b){var d=this,e=d.element,f=new M,g=e.find(".k-footer");b?(g[0]||(g=a('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(e)),d._today=g.show().find(".k-link").html(b(f)).attr("title",c.toString(f,"D",d.options.culture)),d._toggle()):(d._toggle(!1),g.hide())},_header:function(){var a=this,b=a.element,c;b.find(".k-header")[0]||b.html('<div class="k-header"><a href="#" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" class="k-link k-nav-fast"></a><a href="#" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),c=b.find(".k-link").bind(E+" "+F,W).click(!1),a._title=c.eq(1).bind(p,K(a.navigateUp,a)),a[I]=c.eq(0).bind(p,K(a.navigateToPast,a)),a[J]=c.eq(2).bind(p,K(a.navigateToFuture,a))},_navigate:function(a,b){var c=this,d=c._index+1,e=new M(c._current);a=c[a],a.hasClass(z)||(d>3?e.setFullYear(e.getFullYear()+100*b):P.views[d].setDate(e,b),c.navigate(e))},_option:function(a,c){var d=this,e=d.options,g=+d._value,h,i;if(c===b)return e[a];c=f(c,e.format,e.culture);!c||(e[a]=new M(c),i=d._view.compare(c,d._current),a===q?(h=+c>g,i=i>-1):(h=g>+c,i=i<1),h?d.value(null):i&&d.navigate(),d._toggle())},_toggle:function(a){var c=this,d=c.options,e=c._today;a===b&&(a=T(new M,d.min,d.max)),e&&(e.unbind(p),a?e.addClass(C).removeClass(z).bind(p,K(c._todayClick,c)):e.removeClass(C).addClass(z).bind(p,X))},_todayClick:function(a){var b=this,c=N[b.options.depth],d=new M;a.preventDefault(),b._view.compare(b._current,d)===0&&b._index==c&&(b._changeView=!1),b._value=d,b.navigate(d,c),b.trigger(v)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month,f=e.content,g=e.empty;a.month={content:h('<td#=data.cssClass#><a class="k-link#=data.linkClass#" href="#=data.url#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:h("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=h(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}});d.plugin(O);var P={firstDayOfMonth:function(a){return new M(a.getFullYear(),a.getMonth(),1)},firstVisibleDay:function(a,b){b=b||c.culture().calendar;var d=b.firstDay,e=new M(a.getFullYear(),a.getMonth(),0,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());while(e.getDay()!=d)P.setTime(e,-1*H);return e},setTime:function(a,b){var c=a.getTimezoneOffset(),d=new M(a.getTime()+b),e=d.getTimezoneOffset()-c;a.setTime(d.getTime()+e*G)},views:[{name:t,title:function(a,b){return Y(b).months.names[a.getMonth()]+" "+a.getFullYear()},content:function(a){var b=this,d=0,e=a.min,f=a.max,g=a.date,h=a.dates,i=a.format,j=a.culture,k=a.url,l=k&&h[0],m=Y(j),n=m.firstDay,o=m.days,p=U(o.names,n),q=U(o.namesShort,n),r=P.firstVisibleDay(g,m),s=b.first(g),t=b.last(g),u=b.toDateString,v=new M,w='<table class="k-content" cellspacing="0"><thead><tr>';for(;d<7;d++)w+='<th scope="col" title="'+p[d]+'">'+q[d]+"</th>";v=+(new M(v.getFullYear(),v.getMonth(),v.getDate()));return Q({cells:42,perRow:7,html:w+="</tr></thead><tbody><tr>",start:new M(r.getFullYear(),r.getMonth(),r.getDate()),min:new M(e.getFullYear(),e.getMonth(),e.getDate()),max:new M(f.getFullYear(),f.getMonth(),f.getDate()),content:a.content,empty:a.empty,setter:b.setDate,build:function(a,b){var d=[],e=a.getDay(),f="",g="#";(a<s||a>t)&&d.push(A),+a===v&&d.push("k-today"),(e===0||e===6)&&d.push("k-weekend"),l&&_(+a,h)&&(g=k.replace("{0}",c.toString(a,i,j)),f=" k-action-link");return{date:a,dates:h,ns:c.ns,title:c.toString(a,"D",j),value:a.getDate(),dateString:u(a),cssClass:d[0]?' class="'+d.join(" ")+'"':"",linkClass:f,url:g}}})},first:function(a){return P.firstDayOfMonth(a)},last:function(a){return new M(a.getFullYear(),a.getMonth()+1,0)},compare:function(a,b){var c,d=a.getMonth(),e=a.getFullYear(),f=b.getMonth(),g=b.getFullYear();e>g?c=1:e<g?c=-1:c=d==f?0:d>f?1:-1;return c},setDate:function(a,b){b instanceof M?a.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()):P.setTime(a,b*H)},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/"+a.getDate()}},{name:"year",title:function(a){return a.getFullYear()},content:function(a){var b=Y(a.culture).months.namesAbbr,d=this.toDateString,e=a.min,f=a.max;return Q({min:new M(e.getFullYear(),e.getMonth(),1),max:new M(f.getFullYear(),f.getMonth(),1),start:new M(a.date.getFullYear(),0,1),setter:this.setDate,build:function(a){return{value:b[a.getMonth()],ns:c.ns,dateString:d(a),cssClass:""}}})},first:function(a){return new M(a.getFullYear(),0,a.getDate())},last:function(a){return new M(a.getFullYear(),11,a.getDate())},compare:function(a,b){return R(a,b)},setDate:function(a,b){if(b instanceof M)a.setFullYear(b.getFullYear(),b.getMonth(),a.getDate());else{var c=a.getMonth()+b;a.setMonth(c),c>11&&(c-=12),c>0&&a.getMonth()!=c&&a.setDate(0)}},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/1"}},{name:"decade",title:function(a){var b=a.getFullYear();b=b-b%10;return b+"-"+(b+9)},content:function(a){var b=a.date.getFullYear(),d=this.toDateString;return Q({start:new M(b-b%10-1,0,1),min:new M(a.min.getFullYear(),0,1),max:new M(a.max.getFullYear(),0,1),setter:this.setDate,build:function(a,b){return{value:a.getFullYear(),ns:c.ns,dateString:d(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%10,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%10+9,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,10)},setDate:function(a,b){V(a,b,1)},toDateString:function(a){return a.getFullYear()+"/0/1"}},{name:u,title:function(a){var b=a.getFullYear();b=b-b%100;return b+"-"+(b+99)},content:function(a){var b=a.date.getFullYear(),d=a.min.getFullYear(),e=a.max.getFullYear(),f=this.toDateString;d=d-d%10,e=e-e%10,e-d<10&&(e=d+9);return Q({start:new M(b-b%100-10,0,1),min:new M(d,0,1),max:new M(e,0,1),setter:this.setDate,build:function(a,b){var d=a.getFullYear();return{value:d+" - "+(d+9),ns:c.ns,dateString:f(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%100,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%100+99,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,100)},setDate:function(a,b){V(a,b,10)},toDateString:function(a){var b=a.getFullYear();return b-b%10+"/0/1"}}]};P.isEqualDatePart=ba,P.makeUnselectable=$,P.restrictValue=S,P.isInRange=T,P.normalize=Z,P.viewsEnum=N,c.calendar=P})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function s(a){String.prototype.trim?a=a.trim():a=a.replace(/^\s\s*/,"").replace(/\s\s*$/,"");return a.replace(/ /gi,"")}var c=window.kendo,d=c.ui,e=a.proxy,f=a.extend,g=a.grep,h=a.map,i=a.inArray,j="k-state-selected",k="asc",l="desc",m="click",n="change",o="kendoPopup",p="kendoFilterMenu",q="kendoMenu",r=d.Widget,t=r.extend({init:function(b,d){var f=this,g;r.fn.init.call(f,b,d),b=f.element,d=f.options,f.owner=d.owner,f.field=b.attr(c.attr("field")),g=b.find(".k-header-column-menu"),g[0]||(g=b.prepend('<a class="k-header-column-menu" href="#"><span class="k-icon k-i-arrowhead-s"/></a>').find(".k-header-column-menu")),f._clickHandler=e(f._click,f),g.click(f._clickHandler),f.link=g,f.wrapper=a('<div class="k-column-menu"/>'),f.wrapper.html(c.template(u)({ns:c.ns,messages:d.messages,sortable:d.sortable,filterable:d.filterable,columns:f._ownerColumns(),showColumns:d.columns})),f.popup=f.wrapper[o]({anchor:g,open:e(f._open,f)}).data(o),f._menu(),f._sort(),f._columns(),f._filter()},options:{name:"ColumnMenu",messages:{sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filter:"Filter",columns:"Columns"},columns:!0,sortable:!0,filterable:!0},destroy:function(){var a=this;a.filterMenu&&(a.filterMenu.destroy(),a.filterMenu=null),a.wrapper.children().removeData(q),a.wrapper.removeData(o).remove(),a.link.unbind(m,a._clickHandler),a.element.removeData("kendoColumnMenu"),a.columns=null},close:function(){this.menu.close(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){a(".k-column-menu").not(this.wrapper).each(function(){a(this).data(o).close()})},_ownerColumns:function(){var a=this.owner.columns,b=g(a,function(a){var b=!0,c=s(a.title||"");if(a.menu===!1||!a.field&&!c.length)b=!1;return b});return h(b,function(b){return{field:b.field,title:b.title||b.field,hidden:b.hidden,index:i(b,a)}})},_menu:function(){this.menu=this.wrapper.children()[q]({orientation:"vertical",closeOnClick:!1}).data(q)},_sort:function(){var b=this;b.options.sortable&&(b.refresh(),b.options.dataSource.bind(n,e(b.refresh,b)),b.menu.element.delegate(".k-sort-asc, .k-sort-desc",m,function(){var c=a(this),d=c.hasClass("k-sort-asc")?k:l;c.parent().find(".k-sort-"+(d==k?l:k)).removeClass(j),b._sortDataSource(c,d),b.close()}))},_sortDataSource:function(a,c){var d=this,e=d.options.sortable,f=d.options.dataSource,g,h,i=f.sort()||[];a.hasClass(j)&&e&&e.allowUnsort!==!1?(a.removeClass(j),c=b):a.addClass(j);if(e===!0||e.mode==="single")i=[{field:d.field,dir:c}];else{for(g=0,h=i.length;g<h;g++)if(i[g].field===d.field){i.splice(g,1);break}i.push({field:d.field,dir:c})}f.sort(i)},_columns:function(){var b=this;b.options.columns&&(b._updateColumnsMenu(),b.owner.bind(["columnHide","columnShow"],function(){b._updateColumnsMenu()}),b.wrapper.delegate("[type=checkbox]",n,function(d){var e=a(this),f=parseInt(e.attr(c.attr("index")),10);e.is(":checked")?b.owner.showColumn(f):b.owner.hideColumn(f)}))},_updateColumnsMenu:function(){var a=this._ownerColumns(),b=h(a,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(","),d=g(a,function(a){return!a.hidden}),e=h(d,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(",");this.wrapper.find(b).attr("checked",!1),this.wrapper.find(e).attr("checked",!0).attr("disabled",d.length==1)},_filter:function(){var a=this,b=a.options;b.filterable!==!1&&(a.filterMenu=a.wrapper.find(".k-filterable")[p](f(!0,{},{appendToElement:!0,dataSource:b.dataSource,values:b.values,field:a.field},b.filterable)).data(p))},refresh:function(){var a=this,b=a.options.dataSource.sort()||[],c,d=a.field,e,f;a.wrapper.find(".k-sort-asc, .k-sort-desc").removeClass(j);for(e=0,f=b.length;e<f;e++)c=b[e],d==c.field&&a.wrapper.find(".k-sort-"+c.dir).addClass(j)}}),u='<ul>#if(sortable){#<li class="k-item k-sort-asc"><span class="k-link"><span class="k-sprite k-i-sort-asc"></span>${messages.sortAscending}</span></li><li class="k-item k-sort-desc"><span class="k-link"><span class="k-sprite k-i-sort-desc"></span>${messages.sortDescending}</span></li>#if(showColumns || filterable){#<li class="k-separator"></li>#}##}##if(showColumns){#<li class="k-item k-columns-item"><span class="k-link"><span class="k-sprite k-i-columns"></span>${messages.columns}</span><ul>#for (var col in columns) {#<li><label><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</label></li>#}#</ul></li>#if(filterable){#<li class="k-separator"></li>#}##}##if(filterable){#<li class="k-item k-filter-item"><span class="k-link"><span class="k-sprite k-filter"></span>${messages.filter}</span><ul><li><div class="k-filterable"></div></li></ul></li>#}#</ul>';d.plugin(t)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=c.ui,e=d.List,f=d.Select,g=c.support,h=g.placeholder,i=f.removeFiltersForField,j=c.keys,k=g.touch?"touchend":"click",l="disabled",m="change",n="k-state-default",o="k-state-disabled",p="k-state-focused",q="mousedown",r="select",s="k-state-selected",t="filter",u="accept",v="rebind",w="mouseenter mouseleave",x=null,y=a.proxy,z=f.extend({init:function(b,d){var e=this,g,h;d=a.isArray(d)?{dataSource:d}:d,f.fn.init.call(e,b,d),d=e.options,b=e.element.focus(function(){e.input.focus()}),d.placeholder=d.placeholder||b.attr("placeholder"),e._reset(),e._wrapper(),e._input(),e._popup(),e._accessors(),e._dataSource(),e._enable(),e._cascade(),g=e._inputWrapper,e.input.bind({keydown:y(e._keydown,e),focus:function(){g.addClass(p),e._placeholder(!1)},blur:function(){g.removeClass(p),clearTimeout(e._typing),e.text(e.text()),e._placeholder(),e._blur()}}),e._oldIndex=e.selectedIndex=-1,e._old=e.value(),d.autoBind?e._selectItem():(h=d.text,!h&&b.is(r)&&(h=b.children(":selected").text()),h&&e.input.val(h)),h||e._placeholder(),c.notify(e)},options:{name:"ComboBox",enable:!0,index:-1,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,template:"",filter:"none",placeholder:"",suggest:!1,ignoreCase:!0,animation:{}},events:["open","close",m,"select","dataBinding","dataBound"],setOptions:function(a){f.fn.setOptions.call(this,a),this._template(),this._accessors()},current:function(a){var c=this,d=c._current;if(a===b)return d;d&&d.removeClass(s),f.fn.current.call(c,a)},enable:function(a){var b=this,c=b.input.add(b.element),d=b._inputWrapper.unbind(w),e=b._arrow.parent().unbind(k+" "+q);a===!1?(d.removeClass(n).addClass(o),c.attr(l,l)):(d.removeClass(o).addClass(n).bind(w,b._toggleHover),c.removeAttr(l),e.bind(k,function(){b.toggle()}).bind(q,function(a){a.preventDefault()}))},open:function(){var a=this,b=a.dataSource.options.serverFiltering;a.popup.visible()||(!a.ul[0].firstChild||a._state===u&&!b?(a._open=!0,a._state=v,a._selectItem()):(a.popup.open(),a._scroll(a._current)))},refresh:function(){var b=this,d=b.ul[0],e=b.options,f=b.value(),g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),b.element.is(r)&&(b._options(g),f&&b._state===v&&(b._state="",b.value(f))),h&&(e.highlightFirst&&b.current(a(d.firstChild)),e.suggest&&b.input.val()&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,b.toggle(!!h)),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b._hideBusy(),b.trigger("dataBound")},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},search:function(a){a=typeof a=="string"?a:this.text();var b=this,c=a.length,d=b.options,e=d.ignoreCase,f=d.filter,g=d.dataTextField,h,j;clearTimeout(b._typing),c>=d.minLength&&(f==="none"?b._filter(a):(b._open=!0,b._state=t,j=b.dataSource.filter()||{},i(j,g),h=j.filters||[],h.push({value:e?a.toLowerCase():a,field:g,operator:f,ignoreCase:e}),b.dataSource.filter(h)))},suggest:function(a){var c=this,d=c.input[0],f=c.text(),g=e.caret(d),h=c._last,i;if(h==j.BACKSPACE||h==j.DELETE)c._last=b;else{a=a||"",typeof a!="string"&&(i=e.inArray(a[0],c.ul[0]),i>-1?a=c._text(c.dataSource.view()[i]):a=""),g<=0&&(g=f.toLowerCase().indexOf(a.toLowerCase())+1),a?(i=a.toLowerCase().indexOf(f.toLowerCase()),i>-1&&(f+=a.substring(i+f.length))):f=f.substring(0,g);if(f.length!==g||!a)d.value=f,e.selectText(d,g,f.length)}},text:function(a){a=a===null?"":a;var c=this,d=c._text,e=c.input[0],f=c.options.ignoreCase,g=a,h;if(a===b)return e.value;h=c.dataItem();if(!h||d(h)!==a)f&&(g=g.toLowerCase()),c._select(function(a){a=d(a),f&&(a=(a+"").toLowerCase());return a===g}),c.selectedIndex<0&&(c._custom(a),e.value=a)},toggle:function(a){var b=this;b._toggle(a)},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),d>-1?c.select(d):(c.current(x),c._custom(a),c.text(a),c._placeholder()),c._old=c._accessor(),c._oldIndex=c.selectedIndex},_accept:function(a){var b=this;a&&b.popup.visible()?(b._state===t&&(b._state=u),b._focus(a)):(b.text(b.text()),b._change())},_custom:function(b){var c=this,d=c.element,e=c._option;d.is(r)?(e||(e=c._option=a("<option/>"),d.append(e)),e.text(b),e[0].selected=!0):d.val(b)},_filter:function(a){var c=this,d=c.options,e=c.dataSource,f=d.ignoreCase,g=function(d){var e=c._text(d);if(e!==b){e=e+"";if(e!==""&&a==="")return!1;f&&(e=e.toLowerCase());return e.indexOf(a)===0}};f&&(a=a.toLowerCase());c.ul[0].firstChild?(c._highlight(g)!==-1&&(d.suggest&&c._current&&c.suggest(c._current),c.open()),c._hideBusy()):e.one(m,function(){e.data()[0]&&c.search(a)}).fetch()},_highlight:function(c){var d=this,f;if(c===b||c===null)return-1;c=d._get(c),f=e.inArray(c[0],d.ul[0]),f==-1&&(d.options.highlightFirst&&!d.text()?c=a(d.ul[0].firstChild):c=x),d.current(c);return f},_input:function(){var b=this,c=b.element[0],d=c.tabIndex,e=b.wrapper,f=".k-input",g,i,j=c.name||"";j&&(j='name="'+j+'_input" '),g=e.find(f),g[0]||(e.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><input '+j+'class="k-input" type="text" autocomplete="off"/><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),g=e.find(f)),i=g[0],i.tabIndex=d,i.style.cssText=c.style.cssText,c.maxLength>-1&&(i.maxLength=c.maxLength),g.addClass(c.className).val(c.value).css({width:"100%",height:c.style.height}).show(),h&&g.attr("placeholder",b.options.placeholder),b._focused=b.input=g,b._arrow=e.find(".k-icon"),b._inputWrapper=a(e[0].firstChild)},_keydown:function(a){var b=this,c=a.keyCode,d=b.input;b._last=c,clearTimeout(b._typing),c==j.TAB?(b.text(d.val()),b._state===t&&b.selectedIndex>-1&&(b._state=u)):b._move(a)||b._search()},_placeholder:function(a){if(!h){var c=this,d=c.input,e=c.options.placeholder,f;if(e){f=c.value(),a===b&&(a=!f),d.toggleClass("k-readonly",a);if(!a)if(!f)e="";else return;d.val(e)}}},_search:function(){var a=this;a._typing=setTimeout(function(){var b=a.text();a._prev!==b&&(a._prev=b,a.search(b))},a.options.delay)},_select:function(a){var c=this,d,e,f=c._highlight(a),g=c._data();c.selectedIndex=f,f!==-1&&(c._current.addClass(s),g=g[f],d=c._text(g),e=c._value(g),c._prev=c.input[0].value=d,c._accessor(e!==b?e:d,f),c._placeholder())},_selectItem:function(){var a=this,b=a.options,c=a.dataSource,d=c.filter()||{};i(d,a.options.dataTextField),a.dataSource.one(m,function(){var c=b.value||a.value();c?a.value(c):a.select(b.index),a.trigger("selected")}).filter(d)},_wrapper:function(){var a=this,b=a.element,c;c=b.parent(),c.is("span.k-widget")||(c=b.hide().wrap("<span />").parent()),c[0].style.cssText=b[0].style.cssText,a.wrapper=c.addClass("k-widget k-combobox k-header").addClass(b[0].className).show()}});d.plugin(z)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function bk(d,e){var f={},g,h;for(g in e)h=bj(d,g),h!==b&&(bf.test(g)&&(h=c.template(a("#"+h).html())),f[g]=h);return f}function bj(d,e){var f;e.indexOf("data")===0&&(e=e.substring(4),e=e.charAt(0).toLowerCase()+e.substring(1)),e=e.replace(bi,"-$1"),f=d.getAttribute("data-"+c.ns+e),f===null?f=b:f==="null"?f=null:f==="true"?f=!0:f==="false"?f=!1:isNaN(parseFloat(f))?bg.test(f)&&!bh.test(f)&&(f=a.parseJSON(f)):f=parseFloat(f);return f}function _(a){return(""+a).replace(Y,"&").replace(Z,"<").replace($,">")}function X(a,b,c,d){b&&(b=b.split(" "),e(b,function(b,c){a.toggleClass(c,d)}));return a}function W(a,b,c,d,e,f){return T.transitionPromise(a,b,U(c,d,e,f))}function V(b,c,d,e,f){b.each(function(b,g){g=a(g),g.queue(function(){T.promise(g,U(c,d,e,f))})});return b}function U(a,b,c,e){typeof a===r&&(i(b)&&(e=b,b=400,c=!1),i(c)&&(e=c,c=!1),typeof b===v&&(c=b,b=400),a={effects:a,duration:b,reverse:c,complete:e});return d({effects:{},duration:400,reverse:!1,init:h,teardown:h,hide:!1,show:!1},a,{completeCallback:a.complete,complete:h})}function S(a){var b={};e(typeof a=="string"?a.split(" "):a,function(a){b[a]=this});return b}function Q(a,b){b||(b="offset");var c=a[b](),d=m.mobileOS;if(m.touch&&d.ios&&d.flatVersion<410){var e=b=="offset"?c:a.offset(),f=c.left==e.left&&c.top==e.top;if(f)return{top:c.top-window.scrollY,left:c.left-window.scrollX}}return c}function P(b){return a.trim(a(b).contents().filter(function(){return this.nodeType!=8}).html())===""}function O(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&c!="toJSON"&&b++;return b}function N(a,b){var c,d,e,f;for(c in b)d=b[c],e=typeof d,e===t&&d!==null&&d.constructor!==Array?d instanceof Date?a[c]=new Date(d.getTime()):(f=a[c],typeof f===t?a[c]=f||{}:a[c]={},N(a[c],d)):e!==w&&(a[c]=d);return a}function M(a){var b=1,c=arguments.length;for(b=1;b<c;b++)N(a,arguments[b]);return a}function L(b){var d=a.browser,e;if(!b.parent().hasClass("k-animation-container")){var f=b.css(c.support.transitions.css+"box-shadow")||b.css("box-shadow"),g=f?f.match(p)||[0,0,0,0,0]:[0,0,0,0,0],h=j.max(+g[3],+(g[4]||0)),i=-g[1]+h,k=+g[1]+h,l=+g[2]+h,m=b[0].style.width,o=b[0].style.height,q=n.test(m),r=n.test(o);d.opera&&(i=k=l=5),e=q||r,q||(m=b.outerWidth()),r||(o=b.outerHeight()),b.wrap(a("<div/>").addClass("k-animation-container").css({width:m,height:o,marginLeft:-i,paddingLeft:i,paddingRight:k,paddingBottom:l})),e&&b.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}else{var s=b.parent(".k-animation-container"),t=s[0].style;s.is(":hidden")&&s.show(),e=n.test(t.width)||n.test(t.height),e||s.css({width:b.outerWidth(),height:b.outerHeight()})}d.msie&&j.floor(d.version)<=7&&b.css({zoom:1});return b.parent()}function K(a){return a<10?"0"+a:a}function D(a,b){if(b)return"'"+a.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var c=a.charAt(0),d=a.substring(1);return c==="="?"+("+d+")+":c===":"?"+e("+d+")+":";"+a+";o+="}function B(){}var c=window.kendo=window.kendo||{},d=a.extend,e=a.each,f=a.proxy,g=a.isArray,h=a.noop,i=a.isFunction,j=Math,k,l=window.JSON||{},m={},n=/%/,o=/\{(\d+)(:[^\}]+)?\}/g,p=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,q="function",r="string",s="number",t="object",u="null",v="boolean",w="undefined",x={},y={},z=[].slice,A=window.Globalize;B.extend=function(a){var b=function(){},c,e=this,f=a&&a.init?a.init:function(){e.apply(this,arguments)},g;b.prototype=e.prototype,g=f.fn=f.prototype=new b;for(c in a)typeof a[c]!==t||a[c]instanceof Array||a[c]===null?g[c]=a[c]:g[c]=d(!0,{},b.prototype[c],a[c]);g.constructor=f,f.extend=e.extend;return f};var C=B.extend({init:function(){this._events={}},bind:function(a,b,c){var d=this,e,f=typeof a===r?[a]:a,g,h,i,j=typeof b===q,k;for(e=0,g=f.length;e<g;e++)a=f[e],i=j?b:b[a],i&&(c&&(h=i,i=function(){d.unbind(a,i),h.apply(d,arguments)}),k=d._events[a]=d._events[a]||[],k.push(i));return d},one:function(a,b){return this.bind(a,b,!0)},first:function(a,b){var c=this,d,e=typeof a===r?[a]:a,f,g,h=typeof b===q,i;for(d=0,f=e.length;d<f;d++)a=e[d],g=h?b:b[a],g&&(i=c._events[a]=c._events[a]||[],i.unshift(g));return c},trigger:function(a,b){var c=this,d=c._events[a],e,f,g=!1;if(d){b=b||{},b.sender=c,b.preventDefault=function(){g=!0},b.isDefaultPrevented=function(){return g},d=d.slice();for(e=0,f=d.length;e<f;e++)d[e].call(c,b)}return g},unbind:function(a,b){var c=this,d=c._events[a],e,f;if(d)if(b)for(e=0,f=d.length;e<f;e++)d[e]===b&&d.splice(e,1);else c._events[a]=[];return c}}),E=/^\w+/,F=/\$\{([^}]*)\}/g,G=/\\\}/g,H=/__CURLY__/g,I=/\\#/g,J=/__SHARP__/g;k={paramName:"data",useWithBlock:!0,render:function(a,b){var c,d,e="";for(c=0,d=b.length;c<d;c++)e+=a(b[c]);return e},compile:function(b,e){var f=d({},this,e),g=f.paramName,h=g.match(E)[0],j=f.useWithBlock,k="var o,e=kendo.htmlEncode;",l,m;if(i(b)){if(b.length===2)return function(c){return b(a,{data:c}).join("")};return b}k+=j?"with("+g+"){":"",k+="o=",l=b.replace(G,"__CURLY__").replace(F,"#=e($1)#").replace(H,"}").replace(I,"__SHARP__").split("#");for(m=0;m<l.length;m++)k+=D(l[m],m%2===0);k+=j?";}":";",k+="return o;",k=k.replace(J,"#");try{return new Function(h,k)}catch(n){throw new Error(c.format("Invalid template:'{0}' Generated code:'{1}'",b,k))}}},function(){function h(a,d){var i,j,k,l,m=b,n,o=d[a],p;o&&typeof o===t&&typeof o.toJSON===q&&(o=o.toJSON(a)),typeof e===q&&(o=e.call(d,a,o)),p=typeof o;if(p===r)return g(o);if(p===s)return isFinite(o)?String(o):u;if(p===v||p===u)return String(o);if(p===t){if(!o)return u;b+=c,n=[];if(f.apply(o)==="[object Array]"){l=o.length;for(i=0;i<l;i++)n[i]=h(i,o)||u;k=n.length===0?"[]":b?"[\n"+b+n.join(",\n"+b)+"\n"+m+"]":"["+n.join(",")+"]",b=m;return k}if(e&&typeof e===t){l=e.length;for(i=0;i<l;i++)typeof e[i]===r&&(j=e[i],k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k))}else for(j in o)Object.hasOwnProperty.call(o,j)&&(k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k));k=n.length===0?"{}":b?"{\n"+b+n.join(",\n"+b)+"\n"+m+"}":"{"+n.join(",")+"}",b=m;return k}}function g(b){a.lastIndex=0;return a.test(b)?'"'+b.replace(a,function(a){var b=d[a];return typeof b===r?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}var a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b,c,d={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},e,f={}.toString;typeof Date.prototype.toJSON!==q&&(Date.prototype.toJSON=function(a){var b=this;return isFinite(b.valueOf())?b.getUTCFullYear()+"-"+K(b.getUTCMonth()+1)+"-"+K(b.getUTCDate())+"T"+K(b.getUTCHours())+":"+K(b.getUTCMinutes())+":"+K(b.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}),typeof l.stringify!==q&&(l.stringify=function(a,d,f){var g;b="",c="";if(typeof f===s)for(g=0;g<f;g+=1)c+=" ";else typeof f===r&&(c=f);e=d;if(d&&typeof d!==q&&(typeof d!==t||typeof d.length!==s))throw new Error("JSON.stringify");return h("",{"":a})})}(),function(){function v(a,c,f){f=t(f);var j=f.numberFormat,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,s=j.pattern[0],u=[],v,w,x,y,z,A=a<0,B,C,D,E,F=h,G=h,H,I,J,K,L,M,N,O,P,Q=-1,R;if(a===b)return h;if(!isFinite(a))return a;if(!c)return f.name.length?a.toLocaleString():a.toString();z=d.exec(c);if(z){c=z[1].toLowerCase(),w=c==="c",x=c==="p";if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol,s=j.pattern[A?0:1];y=z[2],y&&(r=+y);if(c==="e")return y?a.toExponential(r):a.toExponential();x&&(a*=100),a=a.toFixed(r),a=a.split(i),B=a[0],C=a[1],A&&(B=B.substring(1)),G=B,D=B.length;if(D>=o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H)}C&&(G+=q+C);if(c==="n"&&!A)return G;a=h;for(H=0,I=s.length;H<I;H++)J=s.charAt(H),J==="n"?a+=G:J==="$"||J==="%"?a+=v:a+=J;return a}A&&(a=-a),c=c.split(";");if(A&&c[1])c=c[1],L=!0;else if(a===0){c=c[2]||c[0];if(c.indexOf(l)==-1&&c.indexOf(m)==-1)return c}else c=c[0];if(c.indexOf("'")>-1||c.indexOf('"')>-1)c=c.replace(e,function(a){u.push(a);return n});w=c.indexOf("$")!=-1,x=c.indexOf("%")!=-1,x&&(a*=100);if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol;K=c.indexOf(k)>-1,K&&(c=c.replace(g,h)),M=c.indexOf(i),I=c.length,M!=-1?(O=c.lastIndexOf(m),N=c.lastIndexOf(l),C=a.toString().split(i)[1]||h,N>O&&C.length>N-O?H=N:O!=-1&&O>=M&&(H=O),H&&(a=a.toFixed(H-M))):a=a.toFixed(0),N=c.indexOf(l),P=O=c.indexOf(m),N==-1&&O!=-1?Q=O:N!=-1&&O==-1?Q=N:Q=N>O?O:N,N=c.lastIndexOf(l),O=c.lastIndexOf(m),N==-1&&O!=-1?R=O:N!=-1&&O==-1?R=N:R=N>O?N:O,Q==I&&(R=Q);if(Q!=-1){G=a.toString().split(i),B=G[0],C=G[1]||h,D=B.length,E=C.length;if(K)if(D===o&&D<M-P)B=p+B;else if(D>o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H);B=G}a=c.substring(0,Q),A&&!L&&(a+="-");for(H=Q;H<I;H++){J=c.charAt(H);if(M==-1){if(R-H<D){a+=B;break}}else{O!=-1&&O<H&&(F=h),M-H<=D&&M-H>-1&&(a+=B,H=M);if(M===H){a+=(C?q:h)+C,H+=R-M+1;continue}}J===m?(a+=J,F=J):J===l&&(a+=F)}R>=Q&&(a+=c.substring(R+1));if(w||x){G=h;for(H=0,I=a.length;H<I;H++)J=a.charAt(H),G+=J==="$"||J==="%"?v:J;a=G}if(u[0]){I=u.length;for(H=0;H<I;H++)a=a.replace(n,u[H])}}return a}function u(c,d,e){e=t(e);var f=e.calendars.standard,g=f.days,h=f.months;d=f.patterns[d]||d;return d.replace(a,function(a){var d;a==="d"?d=c.getDate():a==="dd"?d=K(c.getDate()):a==="ddd"?d=g.namesAbbr[c.getDay()]:a==="dddd"?d=g.names[c.getDay()]:a==="M"?d=c.getMonth()+1:a==="MM"?d=K(c.getMonth()+1):a==="MMM"?d=h.namesAbbr[c.getMonth()]:a==="MMMM"?d=h.names[c.getMonth()]:a==="yy"?d=K(c.getFullYear()%100):a==="yyyy"?d=c.getFullYear():a==="h"?d=c.getHours()%12||12:a==="hh"?d=K(c.getHours()%12||12):a==="H"?d=c.getHours():a==="HH"?d=K(c.getHours()):a==="m"?d=c.getMinutes():a==="mm"?d=K(c.getMinutes()):a==="s"?d=c.getSeconds():a==="ss"?d=K(c.getSeconds()):a==="f"?d=j.floor(c.getMilliseconds()/100):a==="ff"?d=j.floor(c.getMilliseconds()/10):a==="fff"?d=c.getMilliseconds():a==="tt"&&(d=c.getHours()<12?f.AM[0]:f.PM[0]);return d!==b?d:a.slice(1,a.length-1)})}function t(a){a&&(a=q(a));return a||c.cultures.current}function q(a){if(a){if(a.numberFormat)return a;if(typeof a===r){var b=c.cultures;return b[a]||b[a.split("-")[0]]||null}return null}return null}var a=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,e=/["'].*?["']/g,g=/\,/g,h="",i=".",k=",",l="#",m="0",n="??",p="en-US";c.cultures={"en-US":{name:p,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}},c.culture=function(a){var d=c.cultures,e;if(a!==b)e=q(a)||d[p],e.calendar=e.calendars.standard,d.current=e;else return d.current},c.findCulture=q,c.getCulture=t,c.culture(p);var w=function(a,c,d){if(c){if(a instanceof Date)return u(a,c,d);if(typeof a===s)return v(a,c,d)}return a!==b?a:""};A&&(w=f(A.format,A)),c.format=function(a){var b=arguments;return a.replace(o,function(a,c,d){var e=b[parseInt(c,10)+1];return w(e,d?d.substring(1):"")})},c._extractFormat=function(a){a.slice(0,3)==="{0:"&&(a=a.slice(3,a.length-1));return a},c.toString=w}(),function(){function m(a,b,c){if(!a)return null;var d=function(a){var c=0;while(b[t]===a)c++,t++;c>0&&(t-=1);return c},f=function(b){var c=new RegExp("^\\d{1,"+b+"}"),d=a.substr(u,b).match(c);if(d){d=d[0],u+=d.length;return parseInt(d,10)}return null},g=function(b){var c=0,d=b.length,e,f;for(;c<d;c++){e=b[c],f=e.length;if(a.substr(u,f)==e){u+=f;return c+1}}return null},i=function(){var c=!1;a.charAt(u)===b[t]&&(u++,c=!0);return c},k=c.calendars.standard,m=null,n=null,o=null,p=null,q=null,r=null,s=null,t=0,u=0,v=!1,w=new Date,x=30,y=w.getFullYear(),z,A,B,C,D,E,F,G,H,I,J,K;b||(b="d"),C=k.patterns[b],C&&(b=C),b=b.split(""),B=b.length;for(;t<B;t++){z=b[t];if(v)z==="'"?v=!1:i();else if(z==="d"){A=d("d"),o=A<3?f(2):g(k.days[A==3?"namesAbbr":"names"]);if(o===null||j(o,1,31))return null}else if(z==="M"){A=d("M"),n=A<3?f(2):g(k.months[A==3?"namesAbbr":"names"]);if(n===null||j(n,1,12))return null;n-=1}else if(z==="y")A=d("y"),m=f(A<3?2:4),m===null&&(m=y),m<x&&(m=y-y%100+m);else if(z==="h"){d("h"),p=f(2),p==12&&(p=0);if(p===null||j(p,0,11))return null}else if(z==="H"){d("H"),p=f(2);if(p===null||j(p,0,23))return null}else if(z==="m"){d("m"),q=f(2);if(q===null||j(q,0,59))return null}else if(z==="s"){d("s"),r=f(2);if(r===null||j(r,0,59))return null}else if(z==="f"){A=d("f"),s=f(A);if(s===null||j(s,0,999))return null}else if(z==="t"){A=d("t"),H=k.AM,I=k.PM,A===1&&(H=l(H),I=l(I)),D=g(I);if(!D&&!g(H))return null}else if(z==="z"){E=!0,A=d("z");if(a.substr(u,1)==="Z"){if(!F)return null;i();continue}G=a.substr(u,6).match(A>2?h:e);if(!G)return null;G=G[0],u=G.length,G=G.split(":"),J=parseInt(G[0],10);if(j(J,-12,13))return null;if(A>2){K=parseInt(G[1],10);if(isNaN(K)||j(K,0,59))return null}}else z==="T"?F=i():z==="'"?(v=!0,i()):i()}D&&p<12&&(p+=12),o===null&&(o=1);if(E){J&&(p+=-J),K&&(q+=-K);return new Date(Date.UTC(m,n,o,p,q,r,s))}return new Date(m,n,o,p,q,r,s)}function l(b){return a.map(b,k)}function k(a){return a.charAt(0)}function j(a,b,c){return!(a>=b&&a<=c)}var b=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,e=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:\d{2}/,i=["G","g","d","F","D","y","m","T","t"];c.parseDate=function(a,b,d){if(a instanceof Date)return a;var e=0,f=null,h,j;d=c.getCulture(d);if(!b){b=[],j=d.calendar.patterns,h=i.length;for(;e<h;e++)b[e]=j[i[e]];b[e]="ddd MMM dd yyyy HH:mm:ss",b[++e]="yyyy-MM-ddTHH:mm:ss.fffzzz",b[++e]="yyyy-MM-ddTHH:mm:sszzz",b[++e]="yyyy-MM-ddTHH:mmzzz",b[++e]="yyyy-MM-ddTHH:mmzz",b[++e]="yyyy-MM-dd",e=0}b=g(b)?b:[b],h=b.length;for(;e<h;e++){f=m(a,b[e],d);if(f)return f}return f},c.parseInt=function(a,b){var d=c.parseFloat(a,b);d&&(d=d|0);return d},c.parseFloat=function(a,e,f){if(!a&&a!==0)return null;if(typeof a===s)return a;a=a.toString(),e=c.getCulture(e);var g=e.numberFormat,h=g.percent,i=g.currency,j=i.symbol,k=h.symbol,l=a.indexOf("-")>-1,m,n;if(d.test(a)){a=parseFloat(a),isNaN(a)&&(a=null);return a}a.indexOf(j)>-1||f&&f.toLowerCase().indexOf("c")>-1?(g=i,m=g.pattern[0].replace("$",j).split("n"),a.indexOf(m[0])>-1&&a.indexOf(m[1])>-1&&(a=a.replace(m[0],"").replace(m[1],""),l=!0)):a.indexOf(k)>-1&&(n=!0,g=h,j=k),a=a.replace("-","").replace(j,"").replace(b," ").split(g[","].replace(b," ")).join("").replace(g["."],"."),a=parseFloat(a),isNaN(a)?a=null:l&&(a*=-1),a&&n&&(a/=100);return a},A&&(c.parseDate=f(A.parseDate,A),c.parseFloat=f(A.parseFloat,A))}(),function(){m.scrollbar=function(){var a=document.createElement("div"),b;a.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",a.innerHTML=" ",document.body.appendChild(a),b=a.offsetWidth-a.scrollWidth,document.body.removeChild(a);return b};var a=document.createElement("table");try{a.innerHTML="<tr><td></td></tr>",m.tbodyInnerHtml=!0}catch(c){m.tbodyInnerHtml=!1}m.touch="ontouchstart"in window,m.pointers=navigator.msPointerEnabled;var d=m.transitions=!1,f=m.transforms=!1;m.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,m.hasNativeScrolling=typeof document.documentElement.style.webkitOverflowScrolling=="string",e(["Moz","webkit","O","ms"],function(){var b=this.toString(),c=typeof a.style[b+"Transition"]===r;if(c||typeof a.style[b+"Transform"]===r){var e=b.toLowerCase();f={css:"-"+e+"-",prefix:b,event:e==="o"||e==="webkit"?e:""},c&&(d=f,d.event=d.event?d.event+"TransitionEnd":"transitionend");return!1}}),m.transforms=f,m.transitions=d,m.devicePixelRatio=window.devicePixelRatio===b?1:window.devicePixelRatio,m.detectOS=function(a){var c=!1,d,e=[],f={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,winphone:/(IEMobile)\/(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/},g={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows|winphone/},h={tablet:/playbook|ipad|fire/i},i={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i},j=function(a,c,d){for(var e in c)if(c.hasOwnProperty(e)&&c[e].test(a))return e;return d!==b?d:a};for(var k in f)if(f.hasOwnProperty(k)){e=a.match(f[k]);if(e){if(k=="windows"&&"plugins"in navigator)return!1;c={},c.device=k,c.tablet=j(k,h,!1),c.browser=j(a,i,"default"),c.name=j(k,g),c[c.name]=!0,c.majorVersion=e[2],c.minorVersion=e[3].replace("_","."),d=c.minorVersion.replace(".","").substr(0,2),c.flatVersion=c.majorVersion+d+Array(3-(d.length<3?d.length:2)).join("0"),c.appMode=window.navigator.standalone||/file|local/.test(window.location.protocol)||typeof window.PhoneGap!==w||typeof window.cordova!==w,c.android&&m.devicePixelRatio<1.5&&(window.outerWidth>800||window.outerHeight>800)&&(c.tablet=k);break}}return c},m.mobileOS=m.detectOS(navigator.userAgent),m.zoomLevel=function(){return m.touch?document.documentElement.clientWidth/window.innerWidth:1},m.eventCapture=document.documentElement.addEventListener,m.placeholder="placeholder"in document.createElement("input"),m.stableSort=function(){var a=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return a[0]===0&&a[1]===1&&a[2]===2&&a[3]===3&&a[4]===4&&a[5]===5&&a[6]===6&&a[7]===7&&a[8]===8&&a[9]===9&&a[10]===10&&a[11]===11&&a[12]===12}()}();var R={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},T={promise:function(a,b){b.show&&a.css({display:a.data("olddisplay")||"block"}).css("display"),b.hide&&a.data("olddisplay",a.css("display")).hide(),b.init&&b.init(),b.completeCallback&&b.completeCallback(a),a.dequeue()},transitionPromise:function(a,b,d){var e=c.wrap(a);e.append(b),a.hide(),b.show(),d.completeCallback&&d.completeCallback(a);return a}};d(a.fn,{kendoStop:function(a,b){return this.stop(a,b)},kendoAnimate:function(a,b,c,d){return V(this,a,b,c,d)},kendoAnimateTo:function(a,b,c,d,e){return W(this,a,b,c,d,e)}}),d(a.fn,{kendoAddClass:function(a,b){return X(this,a,b,!0)},kendoRemoveClass:function(a,b){return X(this,a,b,!1)},kendoToggleClass:function(a,b,c){return X(this,a,b,c)}});var Y=/&/g,Z=/</g,$=/>/g,ba=function(a){var b=typeof a.pageX==w?a.originalEvent:a;return{idx:m.pointers?b.pointerId:0,x:b.pageX,y:b.pageY}},bb=function(a){return a.target};m.touch&&(ba=function(a,b){var c=a.changedTouches||a.originalEvent.changedTouches;if(b){var d=null;e(c,function(a,c){b==c.identifier&&(d={idx:c.identifier,x:c.pageX,y:c.pageY})});return d}return{idx:c[0].identifier,x:c[0].pageX,y:c[0].pageY}},bb=function(a){var b="originalEvent"in a?a.originalEvent.changedTouches:"changedTouches"in a?a.changedTouches:null;return b?document.elementFromPoint(b[0].clientX,b[0].clientY):null},e(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(b,c){a.fn[c]=function(a){return this.bind(c,a)}})),m.touch?(m.mousedown="touchstart",m.mouseup="touchend",m.mousemove="touchmove",m.mousecancel="touchcancel",m.resize="orientationchange"):m.pointers?(m.mousemove="MSPointerMove",m.mousedown="MSPointerDown",m.mouseup="MSPointerUp",m.mousecancel="MSPointerCancel",m.resize="orientationchange resize"):(m.mousemove="mousemove",m.mousedown="mousedown",m.mouseup="mouseup",m.mousecancel="mouseleave",m.resize="resize");var bc=function(a){var b="d",c,d,e,f,g=1;for(d=0,e=a.length;d<e;d++)f=a[d],f!==""&&(c=f.indexOf("["),c!==0&&(c==-1?f="."+f:(g++,f="."+f.substring(0,c)+" || {})"+f.substring(c))),g++,b+=f+(d<e-1?" || {})":")"));return Array(g).join("(")+b},bd=/^([a-z]+:)?\/\//i;d(c,{ui:c.ui||{},fx:c.fx||T,data:c.data||{},mobile:c.mobile||{},dataviz:c.dataviz||{ui:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:m,animate:V,ns:"",attr:function(a){return"data-"+c.ns+a},wrap:L,deepExtend:M,size:O,isNodeEmpty:P,getOffset:Q,parseEffects:S,toggleClass:X,directions:R,Observable:C,Class:B,Template:k,template:f(k.compile,k),render:f(k.render,k),stringify:f(l.stringify,l),touchLocation:ba,eventTarget:bb,htmlEncode:_,isLocalUrl:function(a){return a&&!bd.test(a)},expr:function(a,b){a=a||"",a&&a.charAt(0)!=="["&&(a="."+a),b?a=bc(a.split(".")):a="d"+a;return a},getter:function(a,b){return x[a]=x[a]||new Function("d","return "+c.expr(a,b))},setter:function(a){return y[a]=y[a]||new Function("d,value","d."+a+"=value")},accessor:function(a){return{get:c.getter(a),set:c.setter(a)}},guid:function(){var a="",b,c;for(b=0;b<32;b++){c=j.random()*16|0;if(b==8||b==12||b==16||b==20)a+="-";a+=(b==12?4:b==16?c&3|8:c).toString(16)}return a},roleSelector:function(a){return a.replace(/(\S+)/g,"["+c.attr("role")+"=$1],").slice(0,-1)},logToConsole:function(a){var b=window.console;typeof b!="undefined"&&b.log&&b.log(a)}});var be=C.extend({init:function(b,e){var f=this;f.element=a(b),C.fn.init.call(f),f.options=d(!0,{},f.options,e),f.element.attr(c.attr("role"))||f.element.attr(c.attr("role"),(f.options.name||"").toLowerCase()),f.element.data("kendo"+f.options.prefix+f.options.name,f),f.bind(f.events,f.options)},events:[],options:{prefix:""},setOptions:function(b){a.extend(this.options,b),this.bind(this.events,b)}});c.notify=h;var bf=/template$/i,bg=/^\s*(?:\{(?:.|\n)*\}|\[(?:.|\n)*\])\s*$/,bh=/^\{(\d+)(:[^\}]+)?\}/,bi=/([A-Z])/g;c.initWidget=function(d,e,f){var g,h,i,j,k,l,m,n;f?f.roles&&(f=f.roles):f=c.ui.roles,d=d.nodeType?d:d[0],l=d.getAttribute("data-"+c.ns+"role");if(!!l){i=f[l];if(!i)return;n=bj(d,"dataSource"),e=a.extend({},bk(d,i.fn.options),e),n&&(typeof n===r?e.dataSource=c.getter(n)(window):e.dataSource=n);for(j=0,k=i.fn.events.length;j<k;j++)h=i.fn.events[j],m=bj(d,h),m!==b&&(e[h]=c.getter(m)(window));g=a(d).data("kendo"+i.fn.options.name),g?g.setOptions(e):g=new i(d,e);return g}},c.init=function(b){var e=z.call(arguments,1),f;e[0]||(e=[c.ui,c.dataviz.ui]),f=a.map(e,function(a){return a.roles}).reverse(),f=d.apply(null,[{}].concat(f)),a(b).find("[data-"+c.ns+"role]").andSelf().each(function(){c.initWidget(this,{},f)})},c.parseOptions=bk,d(c.ui,{Widget:be,roles:{},progress:function(b,c){var d=b.find(".k-loading-mask");c?d.length||(d=a("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").prependTo(b).css({top:b.scrollTop(),left:b.scrollLeft()})):d&&d.remove()},plugin:function(d,e,f){var g=d.fn.options.name,h;e=e||c.ui,f=f||"",e[g]=d,e.roles[g.toLowerCase()]=d,h="getKendo"+f+g,g="kendo"+f+g,a.fn[g]=function(e){var f=this,h;typeof e===r?(h=z.call(arguments,1),this.each(function(){var d=a.data(this,g),i,j;if(!d)throw new Error(c.format("Cannot call method '{0}' of {1} before it is initialized",e,g));i=d[e];if(typeof i!==q)throw new Error(c.format("Cannot find method '{0}' of {1}",e,g));j=i.apply(d,h);if(j!==b){f=j;return!1}})):this.each(function(){new d(this,e)});return f},a.fn[h]=function(){return this.data(g)}}});var bl=be.extend({init:function(a,b){be.fn.init.call(this,a,b),this.wrapper=this.element},options:{prefix:"Mobile"},events:[],viewShow:a.noop,view:function(){var a=this.element.closest(c.roleSelector("view")+","+c.roleSelector("splitview"));return a.data("kendoMobileView")||a.data("kendoMobileSplitView")}});d(c.mobile,{init:function(a){c.init(a,c.mobile.ui,c.ui,c.dataviz.ui)},ui:{Widget:bl,roles:{},plugin:function(a){c.ui.plugin(a,c.mobile.ui,"Mobile")}}}),c.touchScroller=function(a,b){if(m.touch&&c.mobile.ui.Scroller&&!a.data("kendoMobileScroller")){a.kendoMobileScroller(b);return a.data("kendoMobileScroller")}return!1},c.preventDefault=function(a){a.preventDefault()},c.widgetInstance=function(a,b){var d=b.roles[a.data(c.ns+"role")];if(d)return a.data("kendo"+d.fn.options.prefix+d.fn.options.name)},c.onResize=function(b){var c=b;m.mobileOS.android&&(c=function(){setTimeout(b,200)}),a(window).on(m.resize,c)},c.data=function(a,b){return a.data(c.ns+b)}})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function bE(b,c){var d=a(b).children(),e,f,g=[],h,i=c[0].field,j=c[1]&&c[1].field,k=c[2]&&c[2].field,l=c[3]&&c[3].field,m,n,o,p,q;for(e=0,f=d.length;e<f;e++)h={},m=d.eq(e),o=m[0].firstChild,q=m.children(),b=q.filter("ul"),q=q.filter(":not(ul)"),n=m.attr("data-id"),n&&(h.id=n),o&&(h[i]=o.nodeType==3?o.nodeValue:q.text()),j&&(h[j]=q.find("a").attr("href")),l&&(h[l]=q.find("img").attr("src")),k&&(p=q.find(".k-sprite").prop("className"),h[k]=p&&a.trim(p.replace("k-sprite",""))),b.length&&(h.items=bE(b.eq(0),c)),m.attr("data-hasChildren")=="true"&&(h.hasChildren=!0),g.push(h);return g}function bB(b,c){var d=a(b)[0].tBodies[0],e=d?d.rows:[],f,g,h,i=c.length,j=[],k,l,m,n;for(f=0,g=e.length;f<g;f++){l={},n=!0,k=e[f].cells;for(h=0;h<i;h++)m=k[h],m.nodeName.toLowerCase()!=="th"&&(n=!1,l[c[h].field]=m.innerHTML);n||j.push(l)}return j}function bA(b,c){var d=a(b)[0].children,e,f,g=[],h,i=c[0],j=c[1],k,l;for(e=0,f=d.length;e<f;e++)h={},l=d[e],h[i.field]=l.text,k=l.attributes.value,k&&k.specified?k=l.value:k=l.text,h[j.field]=k,g.push(h);return g}function by(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(b(a[c]))return c;return-1}function bx(a,b){if(b)return by(a,function(a){return a.uid==b.uid});return-1}function bw(a,b){if(b)return by(a,function(a){return a[b.idField]===b.id});return-1}function bv(a,b){var c,d,e,f;for(e=a.length-1,f=0;e>=f;e--)d=a[e],c={value:b.get(d.field),field:d.field,items:c?[c]:[b],hasSubgroups:!!c,aggregates:{}};return c}function bu(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].uid==b.uid){b=a[c],a.splice(c,1);return b}}function bt(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].hasSubgroups){if(bt(a[c].items,b))return!0}else if(b(a[c].items,a[c]))return!0}function bs(a,b){var c,d,e,f;if(b)for(c=0,d=a.length;c<d;c++)e=a[c],f=e.items,e.hasSubgroups?bs(f,b):f.length&&!(f[0]instanceof b)&&(f.type=b,f.wrapAll(f,f))}function br(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(br(a[b].items)):d=d.concat(a[b].items.slice());return d}function bp(a,b,c,d){return function(e){e=a(e),e&&!g(d)&&(M.call(e)!=="[object Array]"&&!(e instanceof Q)&&(e=[e]),c(e,d,new b));return e||[]}}function bo(a,b,c){var d,e,f;for(e=0,f=a.length;e<f;e++)d=a[e],d.value=c._parse(d.field,d.value),d.hasSubgroups?bo(d.items,b,c):bn(d.items,b,c)}function bn(a,b,c){var d,e,f,g;for(f=0,g=a.length;f<g;f++){d=a[f];for(e in b)d[e]=c._parse(e,b[e](d))}}function bj(a,b){b=b||{};var c=new Z(a),d=b.aggregate,e=b.filter;e&&(c=c.filter(e));return c.aggregate(d)}function bi(a,c){c=c||{};var d=new Z(a),e=c.group,f=bd(e||[]).concat($(c.sort||[])),g,h=c.filter,i=c.skip,j=c.take;h&&(d=d.filter(h),g=d.toArray().length),f&&(d=d.sort(f),e&&(a=d.toArray())),i!==b&&j!==b&&(d=d.range(i,j)),e&&(d=d.group(e,a));return{total:g,data:d.toArray()}}function bh(a){var b,c=a.length,d=Array(c);for(b=0;b<c;b++)d[b]=a[b].toJSON();return d}function bf(a,b,c,d,e){b=b||[];var f,g,h,i=b.length;for(f=0;f<i;f++){g=b[f],h=g.aggregate;var j=g.field;a[j]=a[j]||{},a[j][h]=bg[h.toLowerCase()](a[j][h],c,n.accessor(j),d,e)}}function be(a,b){if(a&&a.getTime&&b&&b.getTime)return a.getTime()===b.getTime();return a===b}function bd(a,c){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return k(e,function(a){return{field:a.field,dir:a.dir||"asc",aggregates:a.aggregates}})}function bc(a){return h(a)?a:[a]}function bb(a){if(a&&!g(a)){if(h(a)||!a.filters)a={logic:"and",filters:h(a)?a:[a]};ba(a);return a}}function ba(a){var b,c,d,e,f=a.filters;if(f)for(b=0,c=f.length;b<c;b++)d=f[b],e=d.operator,e&&typeof e===q&&(d.operator=_[e.toLowerCase()]||e),ba(d)}function $(a,c){if(a){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return i(e,function(a){return!!a.dir})}}function Z(a){this.data=a||[]}function S(b,c){if(b===c)return!0;var d=a.type(b),e=a.type(c),f;if(d!==e)return!1;if(d==="date")return b.getTime()===c.getTime();if(d!=="object"&&d!=="array")return!1;for(f in b)if(!S(b[f],c[f]))return!1;return!0}var c=a.extend,d=a.proxy,e=a.isFunction,f=a.isPlainObject,g=a.isEmptyObject,h=a.isArray,i=a.grep,j=a.ajax,k,l=a.each,m=a.noop,n=window.kendo,o=n.Observable,p=n.Class,q="string",r="function",s="create",t="read",u="update",v="destroy",w="change",x="get",y="error",z="requestStart",A=[s,t,u,v],B=function(a){return a},C=n.getter,D=n.stringify,E=Math,F=[].push,G=[].join,H=[].pop,I=[].splice,J=[].shift,K=[].slice,L=[].unshift,M={}.toString,N=n.support.stableSort,O=/^\/Date\((.*?)\)\/$/,P=/(?=['\\])/g,Q=o.extend({init:function(a,b){var c=this;c.type=b||R,o.fn.init.call(c),c.length=a.length,c.wrapAll(a,c)},toJSON:function(){var a,b=this.length,c,d=Array(b);for(a=0;a<b;a++)c=this[a],c instanceof R&&(c=c.toJSON()),d[a]=c;return d},parent:m,wrapAll:function(a,b){var c=this,d,e,f=function(){return c};b=b||[];for(d=0,e=a.length;d<e;d++)b[d]=c.wrap(a[d],f);return b},wrap:function(a,b){var c=this,d;a!==null&&M.call(a)==="[object Object]"&&(d=a instanceof c.type||a instanceof V,d||(a=a instanceof R?a.toJSON():a,a=new c.type(a)),a.parent=b,a.bind(w,function(a){c.trigger(w,{field:a.field,node:a.node,index:a.index,items:a.items||[this],action:a.action||"itemchange"})}));return a},push:function(){var a=this.length,b=this.wrapAll(arguments),c;c=F.apply(this,b),this.trigger(w,{action:"add",index:a,items:b});return c},slice:K,join:G,pop:function(){var a=this.length,b=H.apply(this);a&&this.trigger(w,{action:"remove",index:a-1,items:[b]});return b},splice:function(a,b,c){var d=this.wrapAll(K.call(arguments,2)),e,f,g;e=I.apply(this,[a,b].concat(d));if(e.length){this.trigger(w,{action:"remove",index:a,items:e});for(f=0,g=e.length;f<g;f++)e[f].children&&e[f].unbind(w)}c&&this.trigger(w,{action:"add",index:a,items:d});return e},shift:function(){var a=this.length,b=J.apply(this);a&&this.trigger(w,{action:"remove",index:0,items:[b]});return b},unshift:function(){var a=this.wrapAll(arguments),b;b=L.apply(this,a),this.trigger(w,{action:"add",index:0,items:a});return b},indexOf:function(a){var b=this,c,d;for(c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1}}),R=o.extend({init:function(a){var b=this,c,d,e=function(){return b},f;o.fn.init.call(this);for(d in a)c=a[d],d.charAt(0)!="_"&&(f=M.call(c),c=b.wrap(c,d,e)),b[d]=c;b.uid=n.guid()},shouldSerialize:function(a){return this.hasOwnProperty(a)&&a!=="_events"&&typeof this[a]!==r&&a!=="uid"},toJSON:function(){var a={},b,c;for(c in this)if(this.shouldSerialize(c)){b=this[c];if(b instanceof R||b instanceof Q)b=b.toJSON();a[c]=b}return a},get:function(a){var b=this,c;b.trigger(x,{field:a}),a==="this"?c=b:c=n.getter(a,!0)(b);return c},_set:function(a,b){var c=this;if(a.indexOf(".")){var d=a.split("."),e="";while(d.length>1){e+=d.shift();var f=n.getter(e,!0)(c);if(f instanceof R){f.set(d.join("."),b);return}e+="."}}n.setter(a)(c,b)},set:function(a,b){var c=this,d=c[a],e=function(){return c};d!==b&&(c.trigger("set",{field:a,value:b})||(c._set(a,c.wrap(b,a,e)),c.trigger(w,{field:a})))},parent:m,wrap:function(a,b,c){var d=this,e=M.call(a),f=a instanceof Q;a===null||e!=="[object Object]"||a instanceof bz||!!f?a===null||e!=="[object Array]"&&!f?a!==null&&a instanceof bz&&(a._parent=c):(f||(a=new Q(a)),a.parent=c,function(b){a.bind(w,function(a){d.trigger(w,{field:b,index:a.index,items:a.items,action:a.action})})}(b)):(a instanceof R||(a=new R(a)),a.parent=c,function(b){a.bind(x,function(a){a.field=b+"."+a.field,d.trigger(x,a)}),a.bind(w,function(a){a.field=b+"."+a.field,d.trigger(w,a)})}(b));return a}}),T={number:function(a){return n.parseFloat(a)},date:function(a){if(typeof a===q){var b=O.exec(a);if(b)return new Date(parseInt(b[1],10))}return n.parseDate(a)},"boolean":function(a){if(typeof a===q)return a.toLowerCase()==="true";return!!a},string:function(a){return a+""},"default":function(a){return a}},U={string:"",number:0,date:new Date,"boolean":!1,"default":""},V=R.extend({init:function(c){var d=this;if(!c||a.isEmptyObject(c))c=a.extend({},d.defaults,c);R.fn.init.call(d,c),d.dirty=!1,d.idField&&(d.id=d.get(d.idField),d.id===b&&(d.id=d._defaultId))},shouldSerialize:function(a){return R.fn.shouldSerialize.call(this,a)&&a!=="uid"&&(this.idField==="id"||a!=="id")&&a!=="dirty"&&a!=="_accessors"},_parse:function(a,b){var c=this,d;a=(c.fields||{})[a],a&&(d=a.parse,!d&&a.type&&(d=T[a.type.toLowerCase()]));return d?d(b):b},editable:function(a){a=(this.fields||{})[a];return a?a.editable!==!1:!0},set:function(a,b,c){var d=this;d.editable(a)&&(b=d._parse(a,b),S(b,d.get(a))||(d.dirty=!0,R.fn.set.call(d,a,b,c)))},accept:function(a){var b=this;c(b,a),b.idField&&(b.id=b.get(b.idField)),b.dirty=!1},isNew:function(){return this.id===this._defaultId}});V.define=function(a,d){d===b&&(d=a,a=V);var e,f=c({},{defaults:{}},d),g,h,i,j,k=f.id;k&&(f.idField=k),f.id&&delete f.id,k&&(f.defaults[k]=f._defaultId="");for(g in f.fields)h=f.fields[g],i=h.type||"default",j=null,g=typeof h.field===q?h.field:g,h.nullable||(j=f.defaults[g]=h.defaultValue!==b?h.defaultValue:U[i.toLowerCase()]),d.id===g&&(f._defaultId=j),f.defaults[g]=j,h.parse=h.parse||T[i];e=a.extend(f),e.define=function(a){return V.define(e,a)},f.fields&&(e.fields=f.fields,e.idField=f.idField);return e};var W={selector:function(a){return e(a)?a:C(a)},asc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a>c?1:a<c?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a<c?1:a>c?-1:0}},create:function(a){return this[a.dir.toLowerCase()](a.field)},combine:function(a){return function(b,c){var d=a[0](b,c),e,f;for(e=1,f=a.length;e<f;e++)d=d||a[e](b,c);return d}}},X=c({},W,{asc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d>e?1:d<e?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d<e?1:d>e?-1:0}}});k=function(a,b){var c,d=a.length,e=Array(d);for(c=0;c<d;c++)e[c]=b(a[c],c,a);return e};var Y=function(){function b(b,c,d,e){var f;d!=null&&(typeof d===q&&(d=a(d),f=O.exec(d),f?d=new Date(+f[1]):e?(d="'"+d.toLowerCase()+"'",c="("+c+" || '').toLowerCase()"):d="'"+d+"'"),d.getTime&&(c="("+c+"?"+c+".getTime():"+c+")",d=d.getTime()));return c+" "+b+" "+d}function a(a){return a.replace(P,"\\")}return{eq:function(a,c,d){return b("==",a,c,d)},neq:function(a,c,d){return b("!=",a,c,d)},gt:function(a,c,d){return b(">",a,c,d)},gte:function(a,c,d){return b(">=",a,c,d)},lt:function(a,c,d){return b("<",a,c,d)},lte:function(a,c,d){return b("<=",a,c,d)},startswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"', 0) == 0"},endswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"') == "+b+".length - "+(c||"").length},contains:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') >= 0"},doesnotcontain:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') == -1"}}}();Z.filterExpr=function(a){var c=[],d={and:" && ",or:" || "},e,f,g,h,i=[],j=[],k,l,m=a.filters;for(e=0,f=m.length;e<f;e++)g=m[e],k=g.field,l=g.operator,g.filters?(h=Z.filterExpr(g),g=h.expression.replace(/__o\[(\d+)\]/g,function(a,b){b=+b;return"__o["+(j.length+b)+"]"}).replace(/__f\[(\d+)\]/g,function(a,b){b=+b;return"__f["+(i.length+b)+"]"}),j.push.apply(j,h.operators),i.push.apply(i,h.fields)):(typeof k===r?(h="__f["+i.length+"](d)",i.push(k)):h=n.expr(k),typeof l===r?(g="__o["+j.length+"]("+h+", "+g.value+")",j.push(l)):g=Y[(l||"eq").toLowerCase()](h,g.value,g.ignoreCase!==b?g.ignoreCase:!0)),c.push(g);return{expression:"("+c.join(d[a.logic])+")",fields:i,operators:j}};var _={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"};Z.normalizeFilter=bb,Z.prototype={toArray:function(){return this.data},range:function(a,b){return new Z(this.data.slice(a,a+b))},skip:function(a){return new Z(this.data.slice(a))},take:function(a){return new Z(this.data.slice(0,a))},select:function(a){return new Z(k(this.data,a))},orderBy:function(a){var b=this.data.slice(0),c=e(a)||!a?W.asc(a):a.compare;return new Z(b.sort(c))},orderByDescending:function(a){return new Z(this.data.slice(0).sort(W.desc(a)))},sort:function(a,b,c){var d,e,f=$(a,b),g=[];c=c||W;if(f.length){for(d=0,e=f.length;d<e;d++)g.push(c.create(f[d]));return this.orderBy({compare:c.combine(g)})}return this},filter:function(a){var b,c,d,e,f,g=this.data,h,i,j=[],k;a=bb(a);if(!a||a.filters.length===0)return this;e=Z.filterExpr(a),h=e.fields,i=e.operators,f=k=new Function("d, __f, __o","return "+e.expression);if(h.length||i.length)k=function(a){return f(a,h,i)};for(b=0,d=g.length;b<d;b++)c=g[b],k(c)&&j.push(c);return new Z(j)},group:function(a,b){a=bd(a||[]),b=b||this.data;var c=this,d=new Z(c.data),e;a.length>0&&(e=a[0],d=d.groupBy(e).select(function(c){var d=(new Z(b)).filter([{field:c.field,operator:"eq",value:c.value}]);return{field:c.field,value:c.value,items:a.length>1?(new Z(c.items)).group(a.slice(1),d.toArray()).toArray():c.items,hasSubgroups:a.length>1,aggregates:d.aggregate(e.aggregates)}}));return d},groupBy:function(a){if(g(a)||!this.data.length)return new Z([]);var b=a.field,c=this._sortForGrouping(b,a.dir||"asc"),d=n.accessor(b),e,f=d.get(c[0],b),h={field:b,value:f,items:[]},i,j,k,l=[h];for(j=0,k=c.length;j<k;j++)e=c[j],i=d.get(e,b),be(f,i)||(f=i,h={field:b,value:f,items:[]},l.push(h)),h.items.push(e);return new Z(l)},_sortForGrouping:function(a,b){var c,d,e=this.data;if(!N){for(c=0,d=e.length;c<d;c++)e[c].__position=c;e=(new Z(e)).sort(a,b,X).toArray();for(c=0,d=e.length;c<d;c++)delete e[c].__position;return e}return this.sort(a,b).toArray()},aggregate:function(a){var b,c,d={};if(a&&a.length)for(b=0,c=this.data.length;b<c;b++)bf(d,a,this.data[b],b,c);return d}};var bg={sum:function(a,b,c){return(a||0)+c.get(b)},count:function(a,b,c){return(a||0)+1},average:function(a,b,c,d,e){a=(a||0)+c.get(b),d==e-1&&(a=a/e);return a},max:function(a,b,c){var d=c.get(b);a=a||0,a<d&&(a=d);return a},min:function(a,b,c){var d=c.get(b);a=a||d,a>d&&(a=d);return a}},bk=p.extend({init:function(a){this.data=a.data},read:function(a){a.success(this.data)},update:function(a){a.success(a.data)},create:function(a){a.success(a.data)},destroy:m}),bl=p.extend({init:function(a){var b=this,d;a=b.options=c({},b.options,a),l(A,function(b,c){typeof a[c]===q&&(a[c]={url:a[c]})}),b.cache=a.cache?bm.create(a.cache):{find:m,add:m},d=a.parameterMap,b.parameterMap=e(d)?d:function(a){var b={};l(a,function(a,c){a in d&&(a=d[a],f(a)&&(c=a.value(c),a=a.key)),b[a]=c});return b}},options:{parameterMap:B},create:function(a){return j(this.setup(a,s))},read:function(c){var d=this,e,f,g,h=d.cache;c=d.setup(c,t),e=c.success||m,f=c.error||m,g=h.find(c.data),g!==b?e(g):(c.success=function(a){h.add(c.data,a),e(a)},a.ajax(c))},update:function(a){return j(this.setup(a,u))},destroy:function(a){return j(this.setup(a,v))},setup:function(a,b){a=a||{};var d=this,f,g=d.options[b],h=e(g.data)?g.data(a.data):g.data;a=c(!0,{},g,a),f=c(!0,{},h,a.data),a.data=d.parameterMap(f,b),e(a.url)&&(a.url=a.url(f));return a}}),bm=p.extend({init:function(){this._store={}},add:function(a,c){a!==b&&(this._store[D(a)]=c)},find:function(a){return this._store[D(a)]},clear:function(){this._store={}},remove:function(a){delete this._store[D(a)]}});bm.create=function(a){var b={inmemory:function(){return new bm}};if(f(a)&&e(a.find))return a;if(a===!0)return new bm;return b[a]()};var bq=p.extend({init:function(a){var b=this,c,e,g,h;a=a||{};for(c in a)e=a[c],b[c]=typeof e===q?C(e):e;h=a.modelBase||V;if(f(b.model)){b.model=g=h.define(b.model);var i=d(b.data,b),j=d(b.groups,b),k={};g.fields&&l(g.fields,function(a,b){f(b)&&b.field?k[b.field]=C(b.field):k[a]=C(a)}),b.data=bp(i,g,bn,k),b.groups=bp(j,g,bo,k)}},errors:function(a){return a?a.errors:null},parse:B,data:B,total:function(a){return a.length},groups:B,status:function(a){return a.status},aggregates:function(){return{}}}),bz=o.extend({init:function(a){var d=this,g,h,i;a&&(i=a.data),a=d.options=c({},d.options,a),c(d,{_map:{},_prefetch:{},_data:[],_ranges:[],_view:[],_pristine:[],_destroyed:[],_pageSize:a.pageSize,_page:a.page||(a.pageSize?1:b),_sort:$(a.sort),_filter:bb(a.filter),_group:bd(a.group),_aggregate:a.aggregate,_total:a.total}),o.fn.init.call(d),h=a.transport,h?(h.read=typeof h.read===q?{url:h.read}:h.read,a.type&&(n.data.transports[a.type]&&!f(n.data.transports[a.type])?d.transport=new n.data.transports[a.type](c(h,{data:i})):h=c(!0,{},n.data.transports[a.type],h),a.schema=c(!0,{},n.data.schemas[a.type],a.schema)),d.transport||(d.transport=e(h.read)?h:new bl(h))):d.transport=new bk({data:a.data}),d.reader=new n.data.readers[a.schema.type||"json"](a.schema),g=d.reader.model||{},d._data=d._observe(d._data),d.bind([y,w,z],a)},options:{data:[],schema:{modelBase:V},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,sendAllFields:!0,batch:!1},_flatData:function(a){if(this.options.serverGrouping&&this.group().length)return br(a);return a},get:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].id==a)return d[b]},getByUid:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].uid==a)return d[b]},sync:function(){var b=this,c,d,e=[],f=[],g=b._destroyed,h=b._flatData(b._data);if(!!b.reader.model){for(c=0,d=h.length;c<d;c++)h[c].isNew()?e.push(h[c]):h[c].dirty&&f.push(h[c]);var i=b._send("create",e);i.push.apply(i,b._send("update",f)),i.push.apply(i,b._send("destroy",g)),a.when.apply(null,i).then(function(){var a,c;for(a=0,c=arguments.length;a<c;a++)b._accept(arguments[a]);b._change()})}},_accept:function(b){var d=this,e=b.models,f=b.response,g=0,h=d.options.serverGrouping&&d.group()&&d.group().length,i=d.reader.data(d._pristine),j=b.type,k;if(f){f=d.reader.parse(f);if(d._handleCustomErrors(f))return;f=d.reader.data(f),a.isArray(f)||(f=[f])}else f=a.map(e,function(a){return a.toJSON()});j==="destroy"&&(d._destroyed=[]);for(g=0,k=e.length;g<k;g++)j!=="destroy"?(e[g].accept(f[g]),j==="create"?i.push(h?bv(d.group(),e[g]):e[g]):j==="update"&&(h?d._updatePristineGroupModel(e[g],f[g]):c(i[d._pristineIndex(e[g])],f[g]))):h?d._removePristineGroupModel(e[g]):i.splice(d._pristineIndex(e[g]),1)},_pristineIndex:function(a){var b=this,c,d,e=b.reader.data(b._pristine);for(c=0,d=e.length;c<d;c++)if(e[c][a.idField]===a.id)return c;return-1},_updatePristineGroupModel:function(a,b){var d=this.reader.groups(this._pristine),e;bt(d,function(d,f){e=bw(d,a);if(e>-1){c(!0,d[e],b);return!0}})},_removePristineGroupModel:function(a){var b=this.reader.groups(this._pristine),c;bt(b,function(b,d){c=bw(b,a);if(c>-1){b.splice(c,1);return!0}})},_promise:function(b,d,e){var f=this,g=f.transport;return a.Deferred(function(a){g[e].call(g,c({success:function(b){a.resolve({response:b,models:d,type:e})},error:function(b){a.reject(b),f.trigger(y,b)}},b))}).promise()},_send:function(a,b){var c=this,d,e,f=[];if(c.options.batch)b.length&&f.push(c._promise({data:{models:bh(b)}},b,a));else for(d=0,e=b.length;d<e;d++)f.push(c._promise({data:b[d].toJSON()},[b[d]],a));return f},add:function(a){return this.insert(this._data.length,a)},insert:function(a,b){b||(b=a,a=0),b instanceof V||(this.reader.model?b=new this.reader.model(b):b=new R(b)),this.options.serverGrouping&&this.group()&&this.group().length?this._data.splice(a,0,bv(this.group(),b)):this._data.splice(a,0,b);return b},cancelChanges:function(a){var b=this,d,e=b.options.serverGrouping&&b.group()&&b.group().length,f=e?b.reader.groups:b.reader.data,g=f(b._pristine),h;a instanceof n.data.Model?e?b._cancelGroupModel(a):(h=b.indexOf(a),d=b._pristineIndex(a),h!=-1&&(d!=-1&&!a.isNew()?c(!0,b._data[h],g[d]):b._data.splice(h,1))):(b._destroyed=[],b._data=b._observe(g),b._change())},read:function(a){var b=this,c=b._params(a);b._queueRequest(c,function(){b.trigger(z),b._ranges=[],b.transport.read({data:c,success:d(b.success,b),error:d(b.error,b)})})},_cancelGroupModel:function(a){var b=this.reader.groups(this._pristine),d,e;bt(b,function(b,c){e=bw(b,a);if(e>-1){d=b[e];return!0}}),e>-1&&bt(this._data,function(b,f){e=bx(b,a),e>-1&&(a.isNew()?b.splice(e,1):c(!0,b[e],d))})},indexOf:function(a){return bx(this._data,a)},_params:function(a){var b=this,d=c({take:b.take(),skip:b.skip(),page:b.page(),pageSize:b.pageSize(),sort:b._sort,filter:b._filter,group:b._group,aggregate:b._aggregate},a);b.options.serverPaging||(delete d.take,delete d.skip,delete d.page,delete d.pageSize);return d},_queueRequest:function(a,c){var e=this;e._requestInProgress?e._pending={callback:d(c,e),options:a}:(e._requestInProgress=!0,e._pending=b,c())},_dequeueRequest:function(){var a=this;a._requestInProgress=!1,a._pending&&a._queueRequest(a._pending.options,a._pending.callback)},remove:function(a){var b=this._data;if(this.options.serverGrouping&&this.group()&&this.group().length)return this._removeGroupItem(b,a);return bu(b,a)},_removeGroupItem:function(a,b){var c;bt(a,function(a,d){c=bu(a,b);if(c)return!0});return b},error:function(a,b,c){this._dequeueRequest(),this.trigger(y,{xhr:a,status:b,errorThrown:c})},_handleCustomErrors:function(a){if(this.reader.errors){var b=this.reader.errors(a);if(b){this.trigger(y,{xhr:null,status:"customerror",errorThrown:"custom error",errors:b});return!0}}return!1},_parent:m,success:function(b){var c=this,d=c.options,e=d.serverGrouping===!0&&c._group&&c._group.length>0;b=c.reader.parse(b);if(!c._handleCustomErrors(b)){c._pristine=f(b)?a.extend(!0,{},b):b.slice(0),c._total=c.reader.total(b),c._aggregate&&d.serverAggregates&&(c._aggregateResult=c.reader.aggregates(b)),e?b=c.reader.groups(b):b=c.reader.data(b),c._data=c._observe(b);var g=c._skip||0,h=g+c._data.length;c._ranges.push({start:g,end:h,data:c._data}),c._ranges.sort(function(a,b){return a.start-b.start}),c._dequeueRequest(),c._process(c._data)}},_observe:function(a){var b=this,c=b.reader.model,e=!1;c&&a.length&&(e=!(a[0]instanceof c)),a instanceof Q?e&&(a.type=b.reader.model,a.wrapAll(a,a)):(a=new Q(a,b.reader.model),a.parent=function(){return b._parent()}),b.group()&&b.group().length&&b.options.serverGrouping&&bs(a,c);return a.bind(w,d(b._change,b))},_change:function(a){var b=this,c,d,e=a?a.action:"";if(e==="remove")for(c=0,d=a.items.length;c<d;c++)(!a.items[c].isNew||!a.items[c].isNew())&&b._destroyed.push(a.items[c]);if(!b.options.autoSync||e!=="add"&&e!=="remove"&&e!=="itemchange"){var f=b._total||b.reader.total(b._pristine);e==="add"?f++:e==="remove"?f--:e!=="itemchange"&&!b.options.serverPaging&&(f=b.reader.total(b._pristine)),b._total=f,b._process(b._data,a)}else b.sync()},_process:function(a,c){var d=this,e={},f;d.options.serverPaging!==!0&&(e.skip=d._skip,e.take=d._take||d._pageSize,e.skip===b&&d._page!==b&&d._pageSize!==b&&(e.skip=(d._page-1)*d._pageSize)),d.options.serverSorting!==!0&&(e.sort=d._sort),d.options.serverFiltering!==!0&&(e.filter=d._filter),d.options.serverGrouping!==!0&&(e.group=d._group),d.options.serverAggregates!==!0&&(e.aggregate=d._aggregate,d._aggregateResult=bj(a,e)),f=bi(a,e),d._view=f.data,f.total!==b&&!d.options.serverFiltering&&(d._total=f.total),c=c||{},c.items=c.items||d._view,d.trigger(w,c)},at:function(a){return this._data[a]},data:function(a){var c=this;if(a!==b)c._data=this._observe(a),c._total=c._data.length,c._process(c._data);else return c._data},view:function(){return this._view},query:function(a){var c=this,d,e=c.options.serverSorting||c.options.serverPaging||c.options.serverFiltering||c.options.serverGrouping||c.options.serverAggregates;a!==b&&(c._pageSize=a.pageSize,c._page=a.page,c._sort=a.sort,c._filter=a.filter,c._group=a.group,c._aggregate=a.aggregate,c._skip=a.skip,c._take=a.take,c._skip===b&&(c._skip=c.skip(),a.skip=c.skip()),c._take===b&&c._pageSize!==b&&(c._take=c._pageSize,a.take=c._take),a.sort&&(c._sort=a.sort=$(a.sort)),a.filter&&(c._filter=a.filter=bb(a.filter)),a.group&&(c._group=a.group=bd(a.group)),a.aggregate&&(c._aggregate=a.aggregate=bc(a.aggregate))),e||c._data===b||c._data.length===0?c.read(a):(c.trigger(z),d=bi(c._data,a),c.options.serverFiltering||(d.total!==b?c._total=d.total:c._total=c._data.length),c._view=d.data,c._aggregateResult=bj(c._data,a),c.trigger(w,{items:d.data}))},fetch:function(a){var b=this;a&&e(a)&&b.one(w,a),b._query()},_query:function(a){var b=this;b.query(c({},{page:b.page(),pageSize:b.pageSize(),sort:b.sort(),filter:b.filter(),group:b.group(),aggregate:b.aggregate()},a))},next:function(){var a=this,b=a.page(),c=a.total();!b||(c?a.page(b+1):(a._skip=b*a.take(),a._query({page:b+1})))},prev:function(){var a=this,b=a.page(),c=a.total();!!b&&b!==1&&(c?a.page(b-1):(a._skip=a._skip-a.take(),a._query({page:b-1})))},page:function(a){var c=this,d;if(a!==b)a=E.max(E.min(E.max(a,1),c.totalPages()),1),c._query({page:a});else{d=c.skip();return d!==b?E.round((d||0)/(c.take()||1))+1:b}},pageSize:function(a){var c=this;if(a!==b)c._query({pageSize:a,page:1});else return c.take()},sort:function(a){var c=this;if(a!==b)c._query({sort:a});else return c._sort},filter:function(a){var c=this;if(a===b)return c._filter;c._query({filter:a,page:1})},group:function(a){var c=this;if(a!==b)c._query({group:a});else return c._group},total:function(){return this._total||0},aggregate:function(a){var c=this;if(a!==b)c._query({aggregate:a});else return c._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var a=this,b=a.pageSize()||a.total();return E.ceil((a.total()||0)/b)},inRange:function(a,b){var c=this,d=E.min(a+b,c.total());if(!c.options.serverPaging&&c.data.length>0)return!0;return c._findRange(a,d).length>0},range:function(a,c){a=E.min(a||0,this.total());var d=this,e=E.max(E.floor(a/c),0)*c,f=E.min(e+c,d.total()),g;g=d._findRange(a,E.min(a+c,d.total()));if(g.length){d._skip=a>d.skip()?E.min(f,(d.totalPages()-1)*d.take()):e,d._take=c;var h=d.options.serverPaging,i=d.options.serverSorting;try{d.options.serverPaging=!0,d.options.serverSorting=!0,h&&(d._data=g=d._observe(g)),d._process(g)}finally{d.options.serverPaging=h,d.options.serverSorting=i}}else c!==b&&(d._rangeExists(e,f)?e<a&&d.prefetch(f,c,function(){d.range(a,c)}):d.prefetch(e,c,function(){a>e&&f<d.total()&&!d._rangeExists(f,E.min(f+c,d.total()))?d.prefetch(f,c,function(){d.range(a,c)}):d.range(a,c)}))},_findRange:function(a,c){var d=this,e=d._ranges,f,g=[],h,i,j,k,l,m,n,o=d.options,p=o.serverSorting||o.serverPaging||o.serverFiltering||o.serverGrouping||o.serverAggregates,q;for(h=0,q=e.length;h<q;h++){f=e[h];if(a>=f.start&&a<=f.end){var r=0;for(i=h;i<q;i++){f=e[i];if(f.data.length&&a+r>=f.start){l=f.data,m=f.end,p||(n=bi(f.data,{sort:d.sort(),filter:d.filter()}),l=n.data,n.total!==b&&(m=n.total)),j=0,a+r>f.start&&(j=a+r-f.start),k=l.length,m>c&&(k=k-(m-c)),r+=k-j,g=g.concat(l.slice(j,k));if(c<=f.end&&r==c-a)return g}}break}}return[]},skip:function(){var a=this;if(a._skip===b)return a._page!==b?(a._page-1)*(a.take()||1):b;return a._skip},take:function(){var a=this;return a._take||a._pageSize},prefetch:function(a,b,c){var d=this,e=E.min(a+b,d.total()),f={start:a,end:e,data:[]},g={take:b,skip:a,page:a/b+1,pageSize:b,sort:d._sort,filter:d._filter,group:d._group,aggregate:d._aggregate};d._rangeExists(a,e)?c&&c():(clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(g,function(){d.transport.read({data:g,success:function(b){d._dequeueRequest();var e=!1;for(var g=0,h=d._ranges.length;g<h;g++)if(d._ranges[g].start===a){e=!0,f=d._ranges[g];break}e||d._ranges.push(f),b=d.reader.parse(b),f.data=d._observe(d.reader.data(b)),f.end=f.start+f.data.length,d._ranges.sort(function(a,b){return a.start-b.start}),d._total=d.reader.total(b),c&&c()}})})},100))},_rangeExists:function(a,b){var c=this,d=c._ranges,e,f;for(e=0,f=d.length;e<f;e++)if(d[e].start<=a&&d[e].end>=b)return!0;return!1}});bz.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},d=b.data,e=b.fields,f=b.table,h=b.select,i,j,k={},l;!d&&e&&!b.transport&&(f?d=bB(f,e):h&&(d=bA(h,e)));if(n.data.Model&&e&&(!b.schema||!b.schema.model)){for(i=0,j=e.length;i<j;i++)l=e[i],l.type&&(k[l.field]=l);g(k)||(b.schema=c(!0,b.schema,{model:{fields:k}}))}b.data=d;return b instanceof bz?b:new bz(b)};var bC=V.define({init:function(a){var b=this,d=b.hasChildren||a.hasChildren,f="items",g={};n.data.Model.fn.init.call(b,a),typeof b.children===q&&(f=b.children),g=c({schema:{data:f,model:{hasChildren:d}}},b.children,{data:a}),d||(d=g.schema.data),typeof d===q&&(d=n.getter(d)),e(d)&&(b.hasChildren=!!d.call(b,b)),b.children=new bD(g),b.children._parent=function(){return b},b.children.bind(w,function(a){a.node=a.node||b,b.trigger(w,a)}),b._loaded=!!a&&!!a[f]},hasChildren:!1,level:function(){var a=this.parentNode(),b=0;while(a)b++,a=a.parentNode();return b},load:function(){var a=this,c={};c[a.idField||"id"]=a.id,a._loaded||(a.children._data=b),a.children.one(w,function(){a._loaded=!0}).query(c)},parentNode:function(){var a=this.parent();return a.parent()},loaded:function(a){if(a!==b)this._loaded=a;else return this._loaded},shouldSerialize:function(a){return V.fn.shouldSerialize.call(this,a)&&a!=="children"&&a!=="_loaded"&&a!=="hasChildren"}}),bD=bz.extend({init:function(a){var b=bC.define({children:a});bz.fn.init.call(this,c(!0,{},{schema:{modelBase:b,model:b}},a))},remove:function(a){var b=a.parentNode(),c=this,d;b&&(c=b.children),d=bz.fn.remove.call(c,a),b&&!c.data().length&&(b.hasChildren=!1);return d},insert:function(a,b){var c=this._parent();c&&(c.hasChildren=!0);return bz.fn.insert.call(this,a,b)},getByUid:function(a){var b,c,d,e;d=bz.fn.getByUid.call(this,a);if(d)return d;e=this._flatData(this.data());for(b=0,c=e.length;b<c;b++){d=e[b].children.getByUid(a);if(d)return d}}});bD.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},c=b.data,d=b.fields,e=b.list;!c&&d&&!b.transport&&e&&(c=bE(e,d)),b.data=c;return b instanceof bD?b:new bD(b)},c(!0,n.data,{readers:{json:bq},Query:Z,DataSource:bz,HierarchicalDataSource:bD,Node:bC,ObservableObject:R,ObservableArray:Q,LocalTransport:bk,RemoteTransport:bl,Cache:bm,DataReader:bq,Model:V})})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function h(d){var f=[],g=d.logic||"and",i,j,k,l,m,n,o,p,q=d.filters;for(i=0,j=q.length;i<j;i++)d=q[i],k=d.field,o=d.value,n=d.operator,d.filters?d=h(d):(p=d.ignoreCase,k=k.replace(/\./g,"/"),d=e[n],d&&o!==b&&(l=a.type(o),l==="string"?(m="'{1}'",o=o.replace(/'/g,"''"),p===!0&&(k="tolower("+k+")")):l==="date"?m="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":m="{1}",d.length>3?d!=="substringof"?m="{0}({2},"+m+")":m="{0}("+m+",{2})":m="{2} {0} "+m,d=c.format(m,d,o,k))),f.push(d);d=f.join(" "+g+" "),f.length>1&&(d="("+d+")");return d}var c=window.kendo,d=a.extend,e={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"},f={pageSize:a.noop,page:a.noop,filter:function(a,b){b&&(a.$filter=h(b))},sort:function(b,c){var d=a.map(c,function(a){var b=a.field.replace(/\./g,"/");a.dir==="desc"&&(b+=" desc");return b}).join(",");d&&(b.$orderby=d)},skip:function(a,b){b&&(a.$skip=b)},take:function(a,b){b&&(a.$top=b)}},g={read:{dataType:"jsonp"}};d(!0,c.data,{schemas:{odata:{type:"json",data:function(a){return a.d.results||[a.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(a,b){var d,e,h,i;a=a||{},b=b||"read",i=(this.options||g)[b],i=i?i.dataType:"json";if(b==="read"){d={$inlinecount:"allpages"},i!="json"&&(d.$format="json");for(h in a)f[h]?f[h](d,a[h]):d[h]=a[h]}else{if(i!=="json")throw new Error("Only json dataType can be used for "+b+" operation.");if(b!=="destroy"){for(h in a)e=a[h],typeof e=="number"&&(a[h]=e+"");d=c.stringify(a)}}return d}}}})})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=a.isArray,e=a.isPlainObject,f=a.map,g=a.each,h=a.extend,i=c.getter,j=c.Class,k=j.extend({init:function(a){var b=this,i=a.total,j=a.model,k=a.data;if(j){if(e(j)){j.fields&&g(j.fields,function(a,c){e(c)&&c.field?c=h(c,{field:b.getter(c.field)}):c={field:b.getter(c)},j.fields[a]=c});var l=j.id;if(l){var m={};m[b.xpathToMember(l,!0)]={field:b.getter(l)},j.fields=h(m,j.fields),j.id=b.xpathToMember(l)}j=c.data.Model.define(j)}b.model=j}i&&(i=b.getter(i),b.total=function(a){return parseInt(i(a),10)}),k&&(k=b.xpathToMember(k),b.data=function(a){var c=b.evaluate(a,k),e;c=d(c)?c:[c];if(b.model&&j.fields){e=new b.model;return f(c,function(a){if(a){var b={},c;for(c in j.fields)b[c]=e._parse(c,j.fields[c].field(a));return b}})}return c})},total:function(a){return this.data(a).length},errors:function(a){return a?a.errors:null},parseDOM:function(a){var c={},e,f,g,h,i,j,k=a.attributes,l=k.length,m;for(m=0;m<l;m++)j=k[m],c["@"+j.nodeName]=j.nodeValue;for(f=a.firstChild;f;f=f.nextSibling)g=f.nodeType,g===3||g===4?c["#text"]=f.nodeValue:g===1&&(e=this.parseDOM(f),h=f.nodeName,i=c[h],d(i)?i.push(e):i!==b?i=[i,e]:i=e,c[h]=i);return c},evaluate:function(a,b){var c=b.split("."),e,f,g,h,i;while(e=c.shift()){a=a[e];if(d(a)){f=[],b=c.join(".");for(i=0,g=a.length;i<g;i++)h=this.evaluate(a[i],b),h=d(h)?h:[h],f.push.apply(f,h);return f}}return a},parse:function(b){var c,d,e={};c=b.documentElement||a.parseXML(b).documentElement,d=this.parseDOM(c),e[c.nodeName]=d;return e},xpathToMember:function(a,b){if(!a)return"";a=a.replace(/^\//,"").replace(/\//g,".");if(a.indexOf("@")>=0)return a.replace(/\.?(@.*)/,b?"$1":'["$1"]');if(a.indexOf("text()")>=0)return a.replace(/(\.?text\(\))/,b?"#text":'["#text"]');return a},getter:function(a){return i(this.xpathToMember(a),!0)}});a.extend(!0,c.data,{XmlDataReader:k,readers:{xml:k}})})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function M(a){a.preventDefault()}function L(b){var c=b.parseFormats;E.normalize(b),c=a.isArray(c)?c:[c],c.splice(0,0,b.format),b.parseFormats=c}var c=window.kendo,d=c.ui,e=c.support.touch,f=d.Widget,g=c.parseDate,h=c.keys,i=c.template,j="<div />",k="<span />",l=e?"touchend":"click",m=l+".datepicker",n="open",o="close",p="change",q="navigate",r="dateView",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-selected",w="k-state-disabled",x="k-state-hover",y="mouseenter mouseleave",z=e?"touchstart":"mousedown",A="min",B="max",C="month",D="first",E=c.calendar,F=E.isInRange,G=E.restrictValue,H=E.isEqualDatePart,I=a.extend,J=a.proxy,K=Date,N=function(b){var c=this,e=document.body,f=O.sharedCalendar;f||(f=O.sharedCalendar=new d.Calendar(a(j).hide().appendTo(e)),E.makeUnselectable(f.element)),c.calendar=f,c.options=b=b||{},c.popup=new d.Popup(a(j).addClass("k-calendar-container").appendTo(e),I(b.popup,b,{name:"Popup"})),c._templates(),c.value(b.value)};N.prototype={_calendar:function(){var a=this,b=a.popup,c=a.options,d=a.calendar,f=d.element;f.data(r)!==a&&(f.appendTo(b.element).data(r,a).undelegate(m).delegate("td:has(.k-link)",m,J(a._click,a)).unbind(z).bind(z,M).show(),d.unbind(p).bind(p,c),e||d.unbind(q).bind(q,J(a._navigate,a)),d.month=a.month,d.options.depth=c.depth,d.options.culture=c.culture,d._footer(a.footer),d.min(c.min),d.max(c.max),d.navigate(a._value,c.start),a.value(a._value))},open:function(){var a=this;a._calendar(),a.popup.open()},close:function(){this.popup.close()},min:function(a){this._option(A,a)},max:function(a){this._option(B,a)},toggle:function(){var a=this;a[a.popup.visible()?o:n]()},move:function(a){var b=this,c=b.options,d=new K(b._current),e=b.calendar,f=e._index,g=e._view,i=a.keyCode,j,k,l;if(i==h.ESC)b.close();else{if(a.altKey){i==h.DOWN?(b.open(),k=!0):i==h.UP&&(b.close(),k=!0);return}if(!b.popup.visible()||e._table.parent().data("animating"))return;if(a.ctrlKey)i==h.RIGHT?(e.navigateToFuture(),k=!0):i==h.LEFT?(e.navigateToPast(),k=!0):i==h.UP?(e.navigateUp(),k=!0):i==h.DOWN&&(b._navigateDown(),k=!0);else{i==h.RIGHT?(j=1,k=!0):i==h.LEFT?(j=-1,k=!0):i==h.UP?(j=f===0?-7:-4,k=!0):i==h.DOWN?(j=f===0?7:4,k=!0):i==h.ENTER?(b._navigateDown(),k=!0):i==h.HOME||i==h.END?(l=i==h.HOME?D:"last",d=g[l](d),k=!0):i==h.PAGEUP?(k=!0,e.navigateToPast()):i==h.PAGEDOWN&&(k=!0,e.navigateToFuture());if(j||l)l||g.setDate(d,j),b._current=d=G(d,c.min,c.max),e._focus(d)}k&&a.preventDefault()}},value:function(a){var b=this,c=b.calendar,d=b.options;b._value=a,b._current=new K(G(a,d.min,d.max)),c.element.data(r)===b&&(c._focus(b._current),c.value(a))},_click:function(a){a.currentTarget.className.indexOf(v)!==-1&&this.close()},_navigate:function(){var a=this,b=a.calendar;a._current=new K(b._current),b._focus(b._current)},_navigateDown:function(){var a=this,b=a.calendar,d=b._current,e=b._table.find("."+u),f=e.children(":"+D).attr(c.attr("value")).split("/");f=new K(f[0],f[1],f[2]);!e[0]||e.hasClass(v)?a.close():(b._view.setDate(d,f),b.navigateDown(d))},_option:function(a,b){var c=this,d=c.options,e=c.calendar;d[a]=b,e.element.data(r)===c&&e[a](b)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month||{},f=e.content,g=e.empty;a.month={content:i('<td#=data.cssClass#><a class="k-link" href="\\#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:i("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=i(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}},N.normalize=L,c.DateView=N;var O=f.extend({init:function(a,b){var d=this;f.fn.init.call(d,a,b),a=d.element,b=d.options,L(b),d._wrapper(),d.dateView=new N(I({},b,{anchor:d.wrapper,change:function(){d._change(this.value()),d.close()},close:function(a){d.trigger(o)&&a.preventDefault()},open:function(a){d.trigger(n)&&a.preventDefault()}})),d._icon(),e||(a[0].type="text"),a.addClass("k-input").bind({keydown:J(d._keydown,d),focus:function(a){d._inputWrapper.addClass(u)},blur:J(d._blur,d)}).closest("form").bind("reset",function(){d.value(a[0].defaultValue)}),d.enable(!a.is("[disabled]")),d.value(b.value||d.element.val()),c.notify(d)},events:[n,o,p],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:C,depth:C,animation:{},month:{}},setOptions:function(a){var b=this;f.fn.setOptions.call(b,a),L(b.options),I(b.dateView.options,b.options)},enable:function(a){var b=this,c=b._dateIcon.unbind(l+" "+z),d=b._inputWrapper.unbind(y),e=b.element;a===!1?(d.removeClass(t).addClass(w),e.attr(s,s)):(d.addClass(t).removeClass(w).bind(y,b._toggleHover),e.removeAttr(s),c.bind(l,J(b._click,b)).bind(z,M))},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(a){return this._option(A,a)},max:function(a){return this._option(B,a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(x,b.type==="mouseenter")},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(u)},_click:function(){var a=this,b=a.element;a.dateView.toggle(),!e&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(p),b.element.trigger(p))},_keydown:function(a){var b=this,c=b.dateView;!c.popup.visible()&&a.keyCode==h.ENTER?b._change(b.element.val()):c.move(a)},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').insertAfter(c)),b._dateIcon=d},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=g(c,e.parseFormats,e.culture);!c||(e[a]=new K(c),d.dateView[a](c))},_update:function(a){var b=this,d=b.options,e=d.min,f=d.max,h=g(a,d.parseFormats,d.culture);if(+h===+b._value)return h;h!==null&&H(h,e)?h=G(h,e,f):F(h,e,f)||(h=null),b._value=h,b.dateView.value(h),b.element.val(h?c.toString(h,d.format,d.culture):a);return h},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datepicker"),d[0]||(d=c.wrap(k).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(k).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});d.plugin(O)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function K(a){var b=c.getCulture(a.culture).calendars.standard.patterns;a.format=g(a.format||b.g),a.timeFormat=g(a.timeFormat||b.t),c.DateView.normalize(a),a.parseFormats.splice(1,0,a.timeFormat)}function J(a){a.preventDefault()}var c=window.kendo,d=c.TimeView,e=c.support.touch,f=c.parseDate,g=c._extractFormat,h=c.calendar,i=h.isInRange,j=h.restrictValue,k=h.isEqualDatePart,l=d.getMilliseconds,m=c.ui,n=m.Widget,o="open",p="close",q="change",r=e?"touchend":"click",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-hover",w="k-state-disabled",x="mouseenter mouseleave",y=e?"touchstart":"mousedown",z=r+" "+y,A="month",B="<span/>",C=Date,D=new C(1900,0,1),E=new C(2099,11,31),F={view:"date"},G={view:"time"},H=a.extend,I=n.extend({init:function(b,d){var f=this;n.fn.init.call(f,b,d),b=f.element,d=f.options,K(d),f._wrapper(),f._icons(),f._views(),e||(b[0].type="text"),b.addClass("k-input").bind({keydown:a.proxy(f._keydown,f),focus:function(){f._inputWrapper.addClass(u)},blur:function(){f._inputWrapper.removeClass(u),f._change(b.val()),f.close("date"),f.close("time")}}).closest("form").bind("reset",function(){f.value(b[0].defaultValue)}),f._midnight=l(d.min)+l(d.max)===0,f.enable(!b.is("[disabled]")),f.value(d.value||b.val()),c.notify(f)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new C(D),max:new C(E),interval:30,height:200,footer:"",start:A,depth:A,animation:{},month:{}},events:[o,p,q],setOptions:function(a){var b=this;n.fn.setOptions.call(b,a),K(b.options),H(b.dateView.options,b.options),H(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},enable:function(a){var b=this,c=b._dateIcon.unbind(z),d=b._timeIcon.unbind(z),f=b._inputWrapper.unbind(x),g=b.element;a===!1?(f.removeClass(t).addClass(w),g.attr(s,s)):(f.addClass(t).removeClass(w).bind(x,b._toggleHover),g.removeAttr(s),c.bind({click:function(){b.toggle("date"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}),d.bind({click:function(){b.toggle("time"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}))},close:function(a){a!=="time"&&(a="date"),this[a+"View"].close()},open:function(a){a!=="time"&&(a="date"),this[a+"View"].open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},toggle:function(a){var b="timeView";a!=="time"?a="date":b="dateView",this[a+"View"].toggle(),this[b].close()},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(q),b.element.trigger(q))},_option:function(a,c){var d=this,e=d.options,g=d.timeView,h=g.options,i=d._value||d._old;if(c===b)return e[a];c=f(c,e.parseFormats,e.culture);if(!!c){e[a]=new C(c),d.dateView[a](c),d._midnight=l(e.min)+l(e.max)===0;if(i&&k(c,i)){if(d._midnight&&a=="max"){h[a]=E,g.dataBind([E]);return}h[a]=c}else h.max=E,h.min=D;g.bind()}},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(v,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=d.min,g=d.max,h=b.timeView,l=f(a,d.parseFormats,d.culture),m,n,o,p;if(+l===+b._value)return l;l!==null&&k(l,e)?l=j(l,e,g):i(l,e,g)||(l=null),b._value=l,h.value(l),b.dateView.value(l),l&&(o=b._old,n=h.options,k(l,e)&&(n.min=e,n.max=E,m=!0),k(l,g)&&(b._midnight?(h.dataBind([E]),p=!0):(n.max=g,m||(n.min=D),m=!0)),!p&&(!o&&m||o&&!k(o,l))&&(m||(n.max=E,n.min=D),h.bind())),b.element.val(l?c.toString(l,d.format,d.culture):a);return l},_keydown:function(a){var b=this,d=b.dateView,e=b.timeView,f=d.popup.visible();a.altKey&&a.keyCode===c.keys.DOWN?b.toggle(f?"time":"date"):f?d.move(a):e.popup.visible()?e.move(a):a.keyCode===c.keys.ENTER&&b._change(b.element.val())},_views:function(){var a=this,b=a.options;a.dateView=new c.DateView(H({},b,{anchor:a.wrapper,change:function(){var c=this.value(),d=+c,e=+b.min,f=+b.max,g;if(d===e||d===f)g=new C(a._value),g.setFullYear(c.getFullYear()),g.setMonth(c.getMonth()),g.setDate(c.getDate()),i(g,e,f)&&(c=g);a._change(c),a.close("date")},close:function(b){a.trigger(p,F)&&b.preventDefault()},open:function(b){a.trigger(o,F)&&b.preventDefault()}})),a.timeView=new d({anchor:a.wrapper,animation:b.animation,dates:b.dates,format:b.timeFormat,culture:b.culture,height:b.height,interval:b.interval,min:new C(D),max:new C(E),parseFormats:b.parseFormats,value:b.value,change:function(d,e){d=a.timeView._parse(d),d<b.min?(d=new C(b.min),a.timeView.options.min=d):d>b.max&&(d=new C(b.max),a.timeView.options.max=d),e?(a._timeSelected=!0,a._change(d)):a.element.val(c.toString(d,b.format,b.culture))},close:function(b){a.trigger(p,G)&&b.preventDefault()},open:function(b){a.trigger(o,G)&&b.preventDefault()}})},_icons:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c),d=d.children()),b._dateIcon=d.eq(0),b._timeIcon=d.eq(1)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datetimepicker"),d[0]||(d=c.wrap(B).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(B).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datetimepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});m.plugin(I)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function P(b){b.preventDefault();var c=a(b.target),d=c.closest(".k-widget").parent();d[0]||(d=c.parent()),d.trigger(b.type)}function O(a,b){return a.replace(/ /g,b+" ")}function N(a,b){var c=a.offset(),d=c.left+L(a,"borderLeftWidth")+L(a,"paddingLeft"),e=c.top+L(a,"borderTopWidth")+L(a,"paddingTop"),f=d+a.width()-b.outerWidth(!0),g=e+a.height()-b.outerHeight(!0);return{x:{min:d,max:f},y:{min:e,max:g}}}function M(a,b){return Math.min(Math.max(a,b.min),b.max)}function L(a,b){return parseInt(a.css(b),10)||0}function K(a){return f.elementFromPoint(a.x.client,a.y.client)}function J(b,c){try{return a.contains(b,c)||b==c}catch(d){return!1}}var c=window.kendo,d=c.support,e=d.pointers,f=window.document,g=a(f.documentElement),h=c.Class,i=c.ui.Widget,j=c.Observable,k=a.proxy,l=a.now,m=a.extend,n=c.getOffset,o={},p={},q,r=d.mobileOS&&d.mobileOS.android,s="mousedown",t="mousemove",u="mouseup mouseleave",v="keyup",w="change",x="dragstart",y="drag",z="dragend",A="dragcancel",B="dragenter",C="dragleave",D="drop",E="start",F="move",G="end",H="cancel",I="tap";d.touch&&(s="touchstart",t="touchmove",u="touchend touchcancel"),e&&(s="MSPointerDown",t="MSPointerMove",u="MSPointerUp MSPointerCancel");var Q=h.extend({init:function(a){this.axis=a},start:function(a,b){var c=this,d=a["page"+c.axis];c.startLocation=c.location=d,c.client=a["client"+c.axis],c.velocity=c.delta=0,c.timeStamp=b},move:function(a,b){var c=this,d=a["page"+c.axis];if(!!d||!r)c.delta=d-c.location,c.location=d,c.client=a["client"+c.axis],c.initialDelta=d-c.startLocation,c.velocity=c.delta/(b-c.timeStamp),c.timeStamp=b}}),R=j.extend({init:function(b,f){var h=this,i={},l,n,o="."+c.guid();f=f||{},l=h.filter=f.filter,h.threshold=f.threshold||0,b=a(b),j.fn.init.call(h),i[O(t,o)]=k(h._move,h),i[O(u,o)]=k(h._end,h),m(h,{x:new Q("X"),y:new Q("Y"),element:b,surface:f.global?g:f.surface||b,stopPropagation:f.stopPropagation,pressed:!1,eventMap:i,ns:o}),b.on(s,l,k(h._start,h)).on("dragstart",l,c.preventDefault),e&&b.css("-ms-touch-action","pinch-zoom double-tap-zoom");if(!f.allowSelection){var p=["mousedown selectstart",l,P];l instanceof a&&p.splice(2,0,null),b.on.apply(b,p)}d.eventCapture&&(n=function(a){h.moved&&a.preventDefault()},h.surface[0].addEventListener(d.mouseup,n,!0)),h.bind([I,E,F,G,H],f)},capture:function(){R.captured=!0},cancel:function(){this._cancel(),this.trigger(H)},skip:function(){this._cancel()},_cancel:function(){var a=this;a.moved=a.pressed=!1,a.surface.off(a.ns)},_start:function(b){var c=this,f=c.filter,g=b.originalEvent,h,i=b;if(!c.pressed){f?c.target=a(b.target).is(f)?a(b.target):a(b.target).closest(f):c.target=c.element;if(!c.target.length)return;c.currentTarget=b.currentTarget,c.stopPropagation&&b.stopPropagation(),c.pressed=!0,c.moved=!1,c.startTime=null,d.touch&&(h=g.changedTouches[0],c.touchID=h.identifier,i=h),e&&(c.touchID=g.pointerId,i=g),c._perAxis(E,i,l()),c.surface.off(c.eventMap).on(c.eventMap),R.captured=!1}},_move:function(a){var b=this,c,d,e;!b.pressed||b._withEvent(a,function(f){b._perAxis(F,f,l());if(!b.moved){c=b.x.initialDelta,d=b.y.initialDelta,e=Math.sqrt(c*c+d*d);if(e<=b.threshold)return;if(!R.captured)b.startTime=l(),b._trigger(E,a),b.moved=!0;else return b._cancel()}b.pressed&&b._trigger(F,a)})},_end:function(a){var b=this;!b.pressed||b._withEvent(a,function(){b.moved?(b.endTime=l(),b._trigger(G,a),b.moved=!1):b._trigger(I,a),b._cancel()})},_perAxis:function(a,b,c){this.x[a](b,c),this.y[a](b,c)},_trigger:function(a,b){var c={x:this.x,y:this.y,target:this.target,event:b};this.trigger(a,c)&&b.preventDefault()},_withEvent:function(a,b){var c=this,f=c.touchID,g=a.originalEvent,h,i;if(d.touch){h=g.changedTouches,i=h.length;while(i){i--;if(h[i].identifier===f)return b(h[i])}}else{if(!e)return b(a);if(f===g.pointerId)return b(g)}}}),S=j.extend({init:function(b,c){var d=this,e=b[0];d.capture=!1,e.addEventListener(s,k(d._press,d),!0),a.each(u.split(" "),function(){e.addEventListener(this,k(d._release,d),!0)}),j.fn.init.call(d),d.bind(["press","release"],c||{})},_press:function(a){var b=this;b.trigger("press"),b.capture&&a.preventDefault()},_release:function(a){var b=this;b.trigger("release"),b.capture&&(a.preventDefault(),b.cancelCapture())},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1}}),T=j.extend({init:function(b){var c=this;j.fn.init.call(c),a.extend(c,b),c.max=0,c.horizontal?(c.measure="width",c.scrollSize="scrollWidth",c.axis="x"):(c.measure="height",c.scrollSize="scrollHeight",c.axis="y")},outOfBounds:function(a){return a>this.max||a<this.min},present:function(){return this.max-this.min},getSize:function(){return this.container[this.measure]()},getTotal:function(){return this.element[0][this.scrollSize]},update:function(a){var b=this;b.size=b.getSize(),b.total=b.getTotal(),b.min=Math.min(b.max,b.size-b.total),a||b.trigger(w,b)}}),U=j.extend({init:function(a){var b=this,d=k(b.refresh,b);j.fn.init.call(b),b.x=new T(m({horizontal:!0},a)),b.y=new T(m({horizontal:!1},a)),b.bind(w,a),c.onResize(d)},present:function(){return this.x.present()||this.y.present()},refresh:function(){this.x.update(),this.y.update(),this.trigger(w)}}),V=j.extend({init:function(a){var b=this;m(b,a),j.fn.init.call(b)},dragMove:function(a){var b=this,c=b.dimension,d=b.axis,e=b.movable,f=e[d]+a;if(!!c.present()){if(f<c.min&&a<0||f>c.max&&a>0)a*=b.resistance;e.translateAxis(d,a),b.trigger(w,b)}}}),W=h.extend({init:function(a){var b=this,c,d,e;m(b,{elastic:!0},a),e=b.elastic?.5:0,b.x=c=new V({axis:"x",dimension:b.dimensions.x,resistance:e,movable:b.movable}),b.y=d=new V({axis:"y",dimension:b.dimensions.y,resistance:e,movable:b.movable}),b.drag.bind(["move","end"],{move:function(a){c.dimension.present()||d.dimension.present()?(c.dragMove(a.x.delta),d.dragMove(a.y.delta),a.preventDefault()):b.drag.skip()},end:function(a){a.preventDefault()}})}}),X=d.transitions.prefix+"Transform",Y=Math.round,Z;d.hasHW3D?Z=function(a,b){return"translate3d("+Y(a)+"px,"+Y(b)+"px,0)"}:Z=function(a,b){return"translate("+Y(a)+"px,"+Y(b)+"px)"};var $=j.extend({init:function(b){var c=this;j.fn.init.call(c),c.element=a(b),c.x=0,c.y=0,c._saveCoordinates(Z(c.x,c.y))},translateAxis:function(a,b){this[a]+=b,this.refresh()},translate:function(a){this.x+=a.x,this.y+=a.y,this.refresh()},moveAxis:function(a,b){this[a]=b,this.refresh()},moveTo:function(a){m(this,a),this.refresh()},refresh:function(){var a=this,b=Z(a.x,a.y);b!=a.coordinates&&(a.element[0].style[X]=b,a._saveCoordinates(b),a.trigger(w))},_saveCoordinates:function(a){this.coordinates=a}}),_=i.extend({init:function(a,b){var c=this;i.fn.init.call(c,a,b);var d=c.options.group;d in p?p[d].push(c):p[d]=[c]},events:[B,C,D],options:{name:"DropTarget",group:"default"},_trigger:function(a,b){var c=this,d=o[c.options.group];if(d)return c.trigger(a,m({},b.event,{draggable:d}))},_over:function(a){this._trigger(B,a)},_out:function(a){this._trigger(C,a)},_drop:function(a){var b=this,c=o[b.options.group];c&&(c.dropped=!b._trigger(D,a))}}),ba=i.extend({init:function(a,b){var d=this;i.fn.init.call(d,a,b),d.drag=new R(d.element,{global:!0,stopPropagation:!0,filter:d.options.filter,threshold:d.options.distance,start:k(d._start,d),move:k(d._drag,d),end:k(d._end,d),cancel:k(d._cancel,d)}),d.destroy=k(d._destroy,d),d.captureEscape=function(a){a.keyCode===c.keys.ESC&&(d._trigger(A,{event:a}),d.drag.cancel())}},events:[x,y,z,A],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,axis:null,container:null,dropped:!1},_start:function(b){var c=this,d=c.options,e=d.container,g=d.hint;c.currentTarget=c.drag.target,c.currentTargetOffset=n(c.currentTarget);if(g){c.hint=a.isFunction(g)?a(g(c.currentTarget)):g;var h=n(c.currentTarget);c.hintOffset=h,c.hint.css({position:"absolute",zIndex:2e4,left:h.left,top:h.top}).appendTo(f.body)}o[d.group]=c,c.dropped=!1,e&&(c.boundaries=N(e,c.hint)),c._trigger(x,b)&&(c.drag.cancel(),c.destroy()),a(f).on(v,c.captureEscape)},updateHint:function(b){var c=this,d,e=c.options,f=c.boundaries,g=e.axis,h=c.options.cursorOffset;h?d={left:b.x.location+h.left,top:b.y.location+h.top}:(c.hintOffset.left+=b.x.delta,c.hintOffset.top+=b.y.delta,d=a.extend({},c.hintOffset)),f&&(d.top=M(d.top,f.y),d.left=M(d.left,f.x)),g==="x"?delete d.top:g==="y"&&delete d.left,c.hint.css(d)},_drag:function(a){var b=this;a.preventDefault(),b._withDropTarget(a,function(b){if(!b)q&&(q._trigger(C,a),q=null);else{if(q){if(b.element[0]===q.element[0])return;q._trigger(C,a)}b._trigger(B,a),q=b}}),b._trigger(y,a),b.hint&&b.updateHint(a)},_end:function(a){var b=this;b._withDropTarget(a,function(b){b&&(b._drop(a),q=null)}),b._trigger(z,a),b._cancel(a.event)},_cancel:function(a){var b=this;b.hint&&!b.dropped?b.hint.animate(b.currentTargetOffset,"fast",b.destroy):b.destroy()},_trigger:function(a,b){var c=this;return c.trigger(a,m({},b.event,{x:b.x,y:b.y,currentTarget:c.currentTarget}))},_withDropTarget:function(a,b){var c=this,d,e,f,g=c.options,h=p[g.group],i=0,j=h&&h.length;if(j){d=K(a),c.hint&&J(c.hint,d)&&(c.hint.hide(),d=K(a),c.hint.show());outer:while(d){for(i=0;i<j;i++){e=h[i];if(e.element[0]===d){f=e;break outer}}d=d.parentNode}b(f)}},_destroy:function(){var b=this;b.hint&&b.hint.remove(),delete o[b.options.group],b.trigger("destroy"),a(f).off(v,b.captureEscape)}});c.ui.plugin(_),c.ui.plugin(ba),c.Drag=R,c.Tap=S,c.containerBoundaries=N,m(c.ui,{Pane:W,PaneDimensions:U,Movable:$})})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function r(a,b,c){var d=0,e=b.length-1,f;for(;d<e;++d)f=b[d],f in a||(a[f]={}),a=a[f];a[b[e]]=c}var c=window.kendo,d=c.ui,e=d.Select,f=c.support.mobileOS,g="disabled",h="change",i="select",j="k-state-focused",k="k-state-default",l="k-state-disabled",m="k-state-selected",n="tabIndex",o="mouseenter mouseleave",p=a.proxy,q=e.extend({init:function(d,f){var g=this,h=f&&f.index,j,k,l;f=a.isArray(f)?{dataSource:f}:f,e.fn.init.call(g,d,f),f=g.options,d=g.element.focus(function(){g.wrapper.focus()}),g._reset(),g._word="",g._wrapper(),g._span(),g._popup(),g._mobile(),g._accessors(),g._dataSource(),g._enable(),g._cascade(),g.selectedIndex=-1,h!==b&&(f.index=h),f.autoBind?g._selectItem():(l=f.text,l||(j=g._optionLabelText(f.optionLabel),k=j&&f.index===0,d.is(i)?k?l=j:l=d.children(":selected").text():!d[0].value&&k&&(l=j)),g.text(l)),c.notify(g)},options:{name:"DropDownList",enable:!0,index:0,autoBind:!0,text:"",template:"",delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",ignoreCase:!0,animation:{}},events:["open","close",h,"select","dataBinding","dataBound"],setOptions:function(a){e.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper.unbind(".dropdownlist"),e=b._inputWrapper.unbind(o);a===!1?(c.attr(g,g),e.removeClass(k).addClass(l)):(c.removeAttr(g,g),e.addClass(k).removeClass(l).bind(o,b._toggleHover),d.bind({"click.dropdownlist":function(a){a.preventDefault(),b.toggle()},"keydown.dropdownlist":p(b._keydown,b),"keypress.dropdownlist":p(b._keypress,b),"focusin.dropdownlist":function(){e.addClass(j)},"focusout.dropdownlist":function(a){b._blur(),e.removeClass(j)}}))},open:function(){var a=this;a.ul[0].firstChild?(a.popup.open(),a._scroll(a._current)):(a._open=!0,a._selectItem())},toggle:function(a){this._toggle(a)},refresh:function(){var a=this,b=a._data(),d=b.length,e=a.options.optionLabel;a.trigger("dataBinding"),a._current&&a.current(null),a.ul[0].innerHTML=c.render(a.template,b),a._height(d),a.element.is(i)&&(e&&d&&(e=a._optionLabelText(e),e='<option value="">'+e+"</option>"),a._options(b,e)),a._open&&(a._open=!1,a.toggle(!!d)),a._hideBusy(),a._makeUnselectable(),a.trigger("dataBound")},search:function(a){if(a){var c=this,d=c.options.ignoreCase;d&&(a=a.toLowerCase()),c._select(function(e){var f=c._text(e);if(f!==b){f=f+"",d&&(f=f.toLowerCase());return f.indexOf(a)===0}})}},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},text:function(a){var c=this.span;if(a!==b)c.text(a);else return c.text()},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),c.select(d>-1?d:0)},_selectItem:function(){var a=this;a.dataSource.one(h,function(){var b=a.options.value||a.value();b?a.value(b):a.select(a.options.index),a.trigger("selected")}).fetch()},_accept:function(a){this._focus(a)},_optionLabelText:function(){var a=this.options,b=a.dataTextField,c=a.optionLabel;if(c&&b&&typeof c=="object")return this._text(c);return c},_data:function(){var a=this,b=a.options,d=b.optionLabel,e=b.dataTextField,f=b.dataValueField,g=a.dataSource.view(),h=g.length,i=d,j=0;if(d&&h){typeof d=="object"?i=d:e&&(i={},e=e.split("."),f=f.split("."),r(i,f,""),r(i,e,d)),i=new c.data.ObservableArray([i]);for(;j<h;j++)i.push(g[j]);g=i}return g},_keydown:function(a){var b=this,d=a.keyCode,e=c.keys,f=b.ul[0];b._move(a),d===e.HOME?(a.preventDefault(),b._select(f.firstChild)):d===e.END&&(a.preventDefault(),b._select(f.lastChild))},_keypress:function(a){var b=this;setTimeout(function(){b._word+=String.fromCharCode(a.keyCode||a.charCode),b._search()})},_popup:function(){e.fn._popup.call(this),this.popup.one("open",function(){this.wrapper=c.wrap(this.element).addClass("km-popup")})},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._word=""},a.options.delay),a.search(a._word)},_select:function(a){var c=this,e=c._current,f=c._data(),g,h,i;a=c._get(a),a&&a[0]&&!a.hasClass(m)&&(e&&e.removeClass(m),i=d.List.inArray(a[0],c.ul[0]),i>-1&&(f=f[i],h=c._text(f),g=c._value(f),c.selectedIndex=i,c.text(h),c._accessor(g!==b?g:h,i),c.current(a.addClass(m))))},_mobile:function(){var a=this,b=a.popup,c=b.element.parents(".km-root").eq(0);c.length&&f&&(b.options.animation.open.effects=f.android||f.meego?"fadeIn":f.ios?"slideIn:up":b.options.animation.open.effects)},_span:function(){var b=this,c=b.wrapper,d=".k-input",e;e=c.find(d),e[0]||(c.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input"> </span><span class="k-select"><span class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),e=c.find(d)),b.span=e,b._inputWrapper=a(c[0].firstChild),b._arrow=c.find(".k-icon").mousedown(function(a){a.preventDefault()})},_wrapper:function(){var a=this,b=a.element,c=b[0],d=b.attr(n),e;e=b.parent(),e.is("span.k-widget")||(e=b.wrap("<span />").parent()),e.attr(n,d||0),e[0].style.cssText=c.style.cssText,b.hide(),a._focused=a.wrapper=e.attr("unselectable","on").addClass("k-widget k-dropdown k-header").addClass(c.className)}});d.plugin(q)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function p(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function o(a){var b=(a.model.fields||a.model)[a.field],d=m(b),e=b?b.validation:{},f,j=c.attr("type"),k=c.attr("bind"),n,o={name:a.field};for(f in e)n=e[f],i(f,l)>=0?o[j]=f:g(n)||(o[f]=h(n)?n.value||f:n),o[c.attr(f+"-msg")]=n.message;i(d,l)>=0&&(o[j]=d),o[k]=(d==="boolean"?"checked:":"value:")+a.field;return o}function n(b){b.find(":input:not(:button, ["+c.attr("role")+"=upload], ["+c.attr("skip")+"]), select").each(function(){var b=c.attr("bind"),d=this.getAttribute(b)||"",e=this.type==="checkbox"?"checked:":"value:",f=this.name;d.indexOf(e)===-1&&f&&(d+=(d.length?",":"")+e+f,a(this).attr(b,d))})}function m(b){b=b!=null?b:"";return b.type||a.type(b)||"string"}var c=window.kendo,d=c.ui,e=d.Widget,f=a.extend,g=a.isFunction,h=a.isPlainObject,i=a.inArray,j='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>${message}<div class="k-callout k-callout-n"></div></div>',k="change",l=["url","email","number","date","boolean"],q={number:function(b,d){var e=o(d);a('<input type="text"/>').attr(e).appendTo(b).kendoNumericTextBox({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},date:function(b,d){var e=o(d);e[c.attr("format")]=d.format,a('<input type="text"/>').attr(e).appendTo(b).kendoDatePicker({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},string:function(b,c){var d=o(c);a('<input type="text" class="k-input k-textbox"/>').attr(d).appendTo(b)},"boolean":function(b,c){var d=o(c);a('<input type="checkbox" />').attr(d).appendTo(b)},values:function(b,d){var e=o(d);a("<select "+c.attr("text-field")+'="text"'+c.attr("value-field")+'="value"'+c.attr("source")+"='"+c.stringify(p(d.values))+"'"+c.attr("role")+'="dropdownlist"/>').attr(e).appendTo(b),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)}},r=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._validateProxy=a.proxy(d._validate,d),d.refresh()},events:[k],options:{name:"Editable",editors:q,clearContainer:!0,errorTemplate:j},editor:function(a,b){var c=this,d=c.options.editors,e=h(a),g=e?a.field:a,i=c.options.model||{},j=e&&a.values,k=j?"values":m(b),l=e&&a.editor,n=l?a.editor:d[k],o=c.element.find("[data-container-for="+g+"]");n=n?n:d.string,l&&typeof a.editor=="string"&&(n=function(b){b.append(a.editor)}),o=o.length?o:c.element,n(o,f(!0,{},e?a:{field:g},{model:i}))},_validate:function(b){var d=this,e=typeof b.value=="boolean",f,g=d._validationEventInProgress,h={};h[b.field]=b.value,f=a(":input["+c.attr("bind")+'="'+(e?"checked:":"value:")+b.field+'"]',d.element);try{d._validationEventInProgress=!0,(!d.validatable.validateInput(f)||!g&&d.trigger(k,{values:h}))&&b.preventDefault()}finally{d._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){this.options.model.unbind("set",this._validateProxy),c.unbind(this.element),this.element.removeData("kendoValidator").removeData("kendoEditable")},refresh:function(){var d=this,e,f,i=d.options.fields||[],j=d.options.clearContainer?d.element.empty():d.element,k=d.options.model||{},l={};a.isArray(i)||(i=[i]);for(e=0,f=i.length;e<f;e++){var m=i[e],o=h(m),p=o?m.field:m,q=(k.fields||k)[p],r=q?q.validation||{}:{};for(var s in r)g(r[s])&&(l[s]=r[s]);d.editor(m,q)}n(j),c.bind(j,d.options.model),d.options.model.bind("set",d._validateProxy),d.validatable=j.kendoValidator({validateOnBlur:!1,errorTemplate:d.options.errorTemplate||b,rules:l}).data("kendoValidator"),j.find(":input:visible:first").focus()}});d.plugin(r)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=c.Class,e=c.ui.Widget,f=c.support.mobileOS,g=a.extend,h=c.deepExtend,i=c.keys,j=d.extend({init:function(a){var b=this;b.options=a},getHtml:function(){var a=this.options;return c.template(a.template)({cssClass:a.cssClass,tooltip:a.title,initialValue:a.initialValue})}}),k={select:function(a){a.trigger("select",{})},editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header"><tbody><tr><td class="k-editor-toolbar-wrap"><ul class="k-editor-toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'<li class="k-editor-button"><a href="" class="k-tool-icon #= cssClass #" unselectable="on" title="#= tooltip #">#= tooltip #</a></li>',colorPickerTemplate:'<li class="k-editor-colorpicker"><div class="k-widget k-colorpicker k-header #= cssClass #"><span class="k-tool-icon"><span class="k-selected-color"></span></span><span class="k-icon k-i-arrow-s"></span></div></li>',comboBoxTemplate:'<li class="k-editor-combobox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',dropDownListTemplate:'<li class="k-editor-selectbox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',focusable:".k-colorpicker,a.k-tool-icon:not(.k-state-disabled),.k-selectbox, .k-combobox .k-input",wrapTextarea:function(b){var c=b.width(),d=b.height(),e=k.editorWrapperTemplate,f=a(e).insertBefore(b).width(c).height(d),g=f.find(".k-editable-area");b.appendTo(g).addClass("k-content k-raw-content").hide();return b.closest(".k-editor")},renderTools:function(b,d){var e={},f,h,i,j=b._nativeTools,l,m,n=a(b.element).closest(".k-editor").find(".k-editor-toolbar");if(d)for(i=0;i<d.length;i++){f=d[i],a.isPlainObject(f)?f.name&&b.tools[f.name]?(a.extend(b.tools[f.name].options,f),e[f.name]=b.tools[f.name],m=e[f.name].options):(m=g({cssClass:"k-i-custom",type:"button",tooltip:""},f),m.name&&(m.cssClass="k-"+(m.name=="custom"?"i-custom":m.name)),m.template||m.type=="button"&&(m.template=k.buttonTemplate)):b.tools[f]&&(e[f]=b.tools[f],m=e[f].options);if(!m)continue;l=m.template,l&&(l.getHtml?l=l.getHtml():(a.isFunction(l)||(l=c.template(l)),l=l(m)),l.indexOf("<li")!==0&&(l="<li class='k-editor-template'>"+l+"</li>"),h=a(l).appendTo(n),m.type=="button"&&m.exec&&h.find(".k-tool-icon").click(a.proxy(m.exec,b.element[0])))}for(i=0;i<j.length;i++)e[j[i]]||(e[j[i]]=b.tools[j[i]]);b.options.tools=e},decorateStyleToolItems:function(b){var d=b.data.closest(".k-editor").find(".k-style").data("kendoSelectBox");if(!!d){var e=d.dataSource.view();d.list.find(".k-item").each(function(d,f){var g=a(f),h=g.text(),i=c.ui.editor.Dom.inlineStyle(b.data.data("kendoEditor").document,"span",{className:e[d].value});g.html('<span unselectable="on" style="display:block;'+i+'">'+h+"</span>")})}},createContentElement:function(b,c){var d,e,f,g=b.closest(".k-rtl").length?"direction:rtl;":"";b.hide(),d=a("<iframe />",{src:'javascript:"<html></html>"',frameBorder:"0"}).css("display","").addClass("k-content").insertBefore(b)[0],e=d.contentWindow||d,c.length>0&&a(d).one("load",b,k.decorateStyleToolItems),f=e.document||d.contentDocument,f.designMode="On",f.open(),f.write("<!DOCTYPE html><html><head><meta charset='utf-8' /><style>html,body{padding:0;margin:0;font-family:Verdana,Geneva,sans-serif;background:#fff;}html{font-size:100%}body{font-size:.75em;line-height:1.5;padding-top:1px;margin-top:-1px;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+g+"}"+"h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}"+"p{margin:0 0 1em;padding:0 .2em}.k-marker{display:none;}.k-paste-container{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}"+"ul,ol{padding-left:2.5em}"+"a{color:#00a}"+"code{font-size:1.23em}"+"</style>"+a.map(c,function(a){return"<link rel='stylesheet' href='"+a+"'>"}).join("")+"</head><body></body></html>"),f.close();return e},initializeContentElement:function(b){var c=!0;b.window=k.createContentElement(a(b.textarea),b.options.stylesheets),b.document=b.window.contentDocument||b.window.document,b.body=b.document.body,a(b.document).bind({keydown:function(a){if(a.keyCode===i.F10)setTimeout(function(){var a="tabIndex",c=b.wrapper,d=c.attr(a);c.attr(a,d||0).focus().find("li:has("+m+")").first().focus(),!d&&d!==0&&c.removeAttr(a)},100),a.preventDefault();else{var d=b.keyboard.toolFromShortcut(b.options.tools,a);if(d){a.preventDefault(),/undo|redo/.test(d)||b.keyboard.endTyping(!0),b.exec(d);return!1}if(b.keyboard.isTypingKey(a)&&b.pendingFormats.hasPending())if(c)c=!1;else{var e=b.getRange();b.pendingFormats.apply(e),b.selectRange(e)}b.keyboard.clearTimeout(),b.keyboard.keydown(a)}},keyup:function(d){var e=[8,9,33,34,35,36,37,38,39,40,40,45,46];if(a.inArray(d.keyCode,e)>-1||d.keyCode==65&&d.ctrlKey&&!d.altKey&&!d.shiftKey)b.pendingFormats.clear(),l(b);if(b.keyboard.isTypingKey(d)){if(b.pendingFormats.hasPending()){var f=b.getRange();b.pendingFormats.apply(f),b.selectRange(f)}}else c=!0;b.keyboard.keyup(d)},mousedown:function(c){b.pendingFormats.clear();var d=a(c.target);!a.browser.gecko&&c.which==2&&d.is("a[href]")&&window.open(d.attr("href"),"_new")},mouseup:function(){l(b)}}),a(b.window).bind("blur",function(){var a=b.textarea.value,c=b.encodedValue();b.update(),c!=a&&b.trigger("change")}),a(b.body).bind("cut paste",function(a){b.clipboard["on"+a.type](a)})},formatByName:function(b,c){for(var d=0;d<c.length;d++)if(a.inArray(b,c[d].tags)>=0)return c[d]},registerTool:function(a,b){var c=s.fn._tools;c[a]=b,c[a].options&&c[a].options.template&&(c[a].options.template.options.cssClass="k-"+a)},registerFormat:function(a,b){c.ui.Editor.fn.options.formats[a]=b}},l=k.select,m=k.focusable,n=k.wrapTextarea,o=k.renderTools,p=k.initializeContentElement,q={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."},r=!f||f.ios&&f.flatVersion>=500||!f.ios&&typeof document.documentElement.contentEditable!="undefined",s=e.extend({init:function(b,d){function t(a,b){if(!b.key)return a;var c=a+" (";b.ctrl&&(c+="Ctrl + "),b.shift&&(c+="Shift + "),b.alt&&(c+="Alt + "),c+=b.key+")";return c}function s(b){var c=a.grep(b.className.split(" "),function(a){return!/^k-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(a)});return c[0]?c[0].substring(c[0].lastIndexOf("-")+1):"custom"}if(!!r){var f=this,g,j,k=c.ui.editor;e.fn.init.call(f,b,d),f.tools=h({},c.ui.Editor.fn._tools),f.options=h({},f.options,d),b=a(b),b.closest("form").bind("submit",function(){f.update()});for(var l in f.tools)f.tools[l].name=l.toLowerCase();f.textarea=b.attr("autocomplete","off")[0],g=f.wrapper=n(b),o(f,f.options.tools),p(f),f.keyboard=new k.Keyboard([new k.TypingHandler(f),new k.SystemHandler(f)]),f.clipboard=new k.Clipboard(this),f.pendingFormats=new k.PendingFormats(this),f.undoRedoStack=new k.UndoRedoStack,d&&d.value?j=d.value:j=b.val().replace(/[\r\n\v\f\t ]+/ig," "),f.value(j);var u=".k-editor-toolbar > li > *, .k-editor-toolbar > li select",v=".k-editor-button .k-tool-icon",w=v+":not(.k-state-disabled)",x=v+".k-state-disabled";g.find(".k-combobox .k-input").keydown(function(b){var c=a(this).closest(".k-combobox").data("kendoComboBox"),d=b.keyCode;d==i.RIGHT||d==i.LEFT?c.close():d==i.DOWN&&(c.dropDown.isOpened()||(b.stopImmediatePropagation(),c.open()))}),g.delegate(w,"mouseenter",function(){a(this).addClass("k-state-hover")}).delegate(w,"mouseleave",function(){a(this).removeClass("k-state-hover")}).delegate(v,"mousedown",!1).delegate(m,"keydown",function(b){var c=a(this).closest("li"),d="li:has("+m+")",e,g=b.keyCode;if(g==i.RIGHT)e=c.nextAll(d).first().find(m);else if(g==i.LEFT)e=c.prevAll(d).last().find(m);else if(g==i.ESC)e=f;else if(g==i.TAB&&!b.ctrlKey&&!b.altKey)if(b.shiftKey){e=c.prevAll(d).last().find(m);if(e.length)b.preventDefault();else return}else b.preventDefault(),e=c.nextAll(d).first().find(m),e.length||(e=f);e&&e.focus()}).delegate(w,"click",function(a){a.preventDefault(),a.stopPropagation(),f.exec(s(this))}).delegate(x,"click",function(a){a.preventDefault()}).find(u).each(function(){var b=s(this),c=f.options,d=c.tools[b],e=c.messages[b],g=a(this);if(!!d){if(b=="fontSize"||b=="fontName"){var h=c.messages[b+"Inherit"]||q[b+"Inherit"];g.find("input").val(h).end().find("span.k-input").text(h).end()}d.initialize(g,{title:t(e,d),editor:f})}}),f.bind("select",function(){var b=f.getRange(),c=k.RangeUtils.textNodes(b);c.length||(c=[b.startContainer]),g.find(u).each(function(){var b=f.options.tools[s(this)];b&&b.update(a(this),c,f.pendingFormats)})}),a(document).bind("DOMNodeInserted",function(b){var c=f.wrapper;if(a.contains(b.target,c[0])||c[0]==b.target)f.textarea.value=f.value(),c.find("iframe").remove(),p(f)}).bind("mousedown",function(a){try{f.keyboard.isTypingInProgress()&&f.keyboard.endTyping(!0),f.selectionRestorePoint||(f.selectionRestorePoint=new k.RestorePoint(f.getRange()))}catch(a){}}),c.notify(f)}},events:["select","change","execute","error","paste"],options:{name:"Editor",messages:q,formats:{},encoded:!0,stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},fontName:[{text:"Arial",value:"Arial,Helvetica,sans-serif"},{text:"Courier New",value:"'Courier New',Courier,monospace"},{text:"Georgia",value:"Georgia,serif"},{text:"Impact",value:"Impact,Charcoal,sans-serif"},{text:"Lucida Console",value:"'Lucida Console',Monaco,monospace"},{text:"Tahoma",value:"Tahoma,Geneva,sans-serif"},{text:"Times New Roman",value:"'Times New Roman',Times,serif"},{text:"Trebuchet MS",value:"'Trebuchet MS',Helvetica,sans-serif"},{text:"Verdana",value:"Verdana,Geneva,sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:["bold","italic","underline","strikethrough","fontName","fontSize","foreColor","backColor","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","formatBlock","createLink","unlink","insertImage"]},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","insertHtml"],_tools:{undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},tools:{},value:function(d){var e=this.body,f=c.ui.editor.Dom;if(d===b)return c.ui.editor.Serializer.domToXhtml(e);this.pendingFormats.clear(),d=(d||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->").replace(/<script([^>]*)>(.*)?<\/script>/ig,"<telerik:script $1>$2</telerik:script>").replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1"),a.browser.msie||(d=d.replace(/<p([^>]*)>(\s*)?<\/p>/ig,'<p $1><br _moz_dirty="" /></p>'));if(a.browser.msie&&parseInt(a.browser.version,10)<9){d="<br/>"+d;var g="originalsrc",h="originalhref";d=d.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,h+'="$1"'),d=d.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,g+'="$1"'),e.innerHTML=d,f.remove(e.firstChild),a(e).find("telerik\\:script,script,link,img,a").each(function(){var a=this;a[h]&&(a.setAttribute("href",a[h]),a.removeAttribute(h)),a[g]&&(a.setAttribute("src",a[g]),a.removeAttribute(g))})}else e.innerHTML=d,a.browser.msie&&f.normalize(e);this.selectionRestorePoint=null,this.update()},focus:function(){this.window.focus()},update:function(a){this.textarea.value=a||this.options.encoded?this.encodedValue():this.value()},encodedValue:function(){return c.ui.editor.Dom.encode(this.value())},createRange:function(a){return c.ui.editor.RangeUtils.createRange(a||this.document)},getSelection:function(){return c.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(a){this.focus();var b=this.getSelection();b.removeAllRanges(),b.addRange(a)},getRange:function(){var a=this.getSelection(),b=a.rangeCount>0?a.getRangeAt(0):this.createRange(),c=this.document;b.startContainer==c&&b.endContainer==c&&!b.startOffset&&!b.endOffset&&(b.setStart(this.body,0),b.collapse(!0));return b},selectedHtml:function(){return c.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(a){this.clipboard.paste(a)},exec:function(b,c){var d=this,e,f,h,i="",j;b=b.toLowerCase(),d.keyboard.isTypingInProgress()||(d.focus(),e=d.getRange(),f=d.document.body);for(h in d.options.tools)if(h.toLowerCase()==b){i=d.options.tools[h];break}if(i){e=d.getRange();if(!/undo|redo/i.test(b)&&i.willDelayExecution(e)){j=a.extend({},i),a.extend(j.options,{params:c}),d.pendingFormats.toggle(j),l(d);return}var k=i.command?i.command(g({range:e},c)):null;d.trigger("execute",{name:b,command:k});if(/undo|redo/i.test(b))d.undoRedoStack[b]();else if(k){k.managesUndoRedo||d.undoRedoStack.push(k),k.editor=d,k.exec();if(k.async){k.change=a.proxy(function(){l(d)},d);return}}l(d)}}});c.ui.plugin(s);var t=d.extend({init:function(a){this.options=a},initialize:function(a,b){a.attr({unselectable:"on",title:b.title})},command:function(a){return new this.options.command(a)},update:function(){},willDelayExecution:function(){return!1}});t.exec=function(a,b,c){a.exec(b,{value:c})};var u=t.extend({init:function(a){t.fn.init.call(this,a)},command:function(a){var b=this;return new c.ui.editor.FormatCommand(g(a,{formatter:b.options.formatter}))},update:function(a,b,c){var d=c.isPending(this.name),e=this.options.finder.isFormatted(b),f=d?!e:e;a.toggleClass("k-state-active",f)}});g(c.ui,{editor:{ToolTemplate:j,EditorUtils:k,Tool:t,FormatTool:u}})})(jQuery),function(a){function k(a){var b={},c,d;for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var b=window.kendo,c=a.map,d=a.extend,e="style",f="float",g="cssFloat",h="styleFloat",i="class",j="k-marker",l=k("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),m="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(","),n=k(m),o="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var".split(","),p=k(o),q=k("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),r=function(a){a.nodeType==1&&a.normalize()};a.browser.msie&&parseInt(a.browser.version,10)>=8&&(r=function(a){if(a.nodeType==1&&a.firstChild){var b=a.firstChild,c=b;for(;;){c=c.nextSibling;if(!c)break;c.nodeType==3&&b.nodeType==3&&(c.nodeValue=b.nodeValue+c.nodeValue,A.remove(b)),b=c}}});var s=/^\s+$/,t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,u=/&/g,v=/</g,w=/>/g,x=/\u00a0/g,y=/\ufeff/g,z="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),A={findNodeIndex:function(a){var b=0;for(;;){a=a.previousSibling;if(!a)break;b++}return b},isDataNode:function(a){return a&&a.nodeValue!==null&&a.data!==null},isAncestorOf:function(b,c){try{return!A.isDataNode(b)&&(a.contains(b,A.isDataNode(c)?c.parentNode:c)||c.parentNode==b)}catch(d){return!1}},isAncestorOrSelf:function(a,b){return A.isAncestorOf(a,b)||a==b},findClosestAncestor:function(a,b){if(A.isAncestorOf(a,b))while(b&&b.parentNode!=a)b=b.parentNode;return b},getNodeLength:function(a){return A.isDataNode(a)?a.length:a.childNodes.length},splitDataNode:function(a,b){var c=a.cloneNode(!1);a.deleteData(b,a.length),c.deleteData(0,b),A.insertAfter(c,a)},attrEquals:function(b,c){for(var d in c){var e=b[d];d==f&&(e=b[a.support.cssFloat?g:h]);if(typeof e=="object"){if(!A.attrEquals(e,c[d]))return!1}else if(e!=c[d])return!1}return!0},blockParentOrBody:function(a){return A.parentOfType(a,m)||a.ownerDocument.body},blockParents:function(b){var c=[],d,e;for(d=0,e=b.length;d<e;d++){var f=A.parentOfType(b[d],A.blockElements);f&&a.inArray(f,c)<0&&c.push(f)}return c},windowFromDocument:function(a){return a.defaultView||a.parentWindow},normalize:r,blockElements:m,inlineElements:o,empty:l,fillAttrs:q,toHex:function(a){var b=t.exec(a);if(!b)return a;return"#"+c(b.slice(1),function(a){a=parseInt(a,10).toString(16);return a.length>1?a:"0"+a}).join("")},encode:function(a){return a.replace(u,"&").replace(v,"<").replace(w,">").replace(x," ")},name:function(a){return a.nodeName.toLowerCase()},significantChildNodes:function(b){return a.grep(b.childNodes,function(a){return a.nodeType!=3||!A.isWhitespace(a)})},lastTextNode:function(a){var b=null;if(a.nodeType==3)return a;for(var c=a.lastChild;c;c=c.previousSibling){b=A.lastTextNode(c);if(b)return b}return b},is:function(a,b){return A.name(a)==b},isMarker:function(a){return a.className==j},isWhitespace:function(a){return s.test(a.nodeValue)},isBlock:function(a){return n[A.name(a)]},isEmpty:function(a){return l[A.name(a)]},isInline:function(a){return p[A.name(a)]},scrollTo:function(b){b.ownerDocument.body.scrollTop=a(A.isDataNode(b)?b.parentNode:b).offset().top},insertAt:function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},insertBefore:function(a,b){return b.parentNode?b.parentNode.insertBefore(a,b):b},insertAfter:function(a,b){return b.parentNode.insertBefore(a,b.nextSibling)},remove:function(a){a.parentNode.removeChild(a)},trim:function(a){for(var b=a.childNodes.length-1;b>=0;b--){var c=a.childNodes[b];A.isDataNode(c)?(c.nodeValue.replace(y,"").length||A.remove(c),A.isWhitespace(c)&&A.insertBefore(c,a)):c.className!=j&&(A.trim(c),!c.childNodes.length&&!A.isEmpty(c)&&A.remove(c))}return a},parentOfType:function(a,b){do a=a.parentNode;while(a&&!A.ofType(a,b));return a},ofType:function(b,c){return a.inArray(A.name(b),c)>=0},changeTag:function(a,b){var c=A.create(a.ownerDocument,b),d=a.attributes,f,g,h,j,k;for(f=0,g=d.length;f<g;f++)k=d[f],k.specified&&(h=k.nodeName,j=k.nodeValue,h==i?c.className=j:h==e?c.style.cssText=a.style.cssText:c.setAttribute(h,j));while(a.firstChild)c.appendChild(a.firstChild);A.insertBefore(c,a),A.remove(a);return c},wrap:function(a,b){A.insertBefore(b,a),b.appendChild(a);return b},unwrap:function(a){var b=a.parentNode;while(a.firstChild)b.insertBefore(a.firstChild,a);b.removeChild(a)},create:function(a,b,c){return A.attr(a.createElement(b),c)},attr:function(a,b){b=d({},b),b&&e in b&&(A.style(a,b.style),delete b.style);return d(a,b)},style:function(b,c){a(b).css(c||{})},unstyle:function(b,c){for(var d in c)d==f&&(d=a.support.cssFloat?g:h),b.style[d]="";b.style.cssText===""&&b.removeAttribute(e)},inlineStyle:function(b,d,e){var f=a(A.create(b,d,e)),g;b.body.appendChild(f[0]),g=c(z,function(b){return a.browser.msie&&b=="line-height"&&f.css(b)=="1px"?"line-height:1.5":b+":"+f.css(b)}).join(";"),f.remove();return g},removeClass:function(b,c){var d=" "+b.className+" ",e=c.split(" "),f,g;for(f=0,g=e.length;f<g;f++)d=d.replace(" "+e[f]+" "," ");d=a.trim(d),d.length?b.className=d:b.removeAttribute(i)},commonAncestor:function(){var a=arguments.length,b=[],c=Infinity,d=null,e,f,g,h,i;if(!a)return null;if(a==1)return arguments[0];for(e=0;e<a;e++){f=[],g=arguments[e];while(g)f.push(g),g=g.parentNode;b.push(f.reverse()),c=Math.min(c,f.length)}if(a==1)return b[0][0];for(e=0;e<c;e++){h=b[0][e];for(i=1;i<a;i++)if(h!=b[i][e])return d;d=h}return d}};b.ui.editor.Dom=A}(jQuery),function(a,b){var c=window.kendo,d=c.ui.editor,e=d.Dom,f=a.extend,g="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),h=/"/g,i=/<br[^>]*>/i,j=/<p><\/p>/i,k={domToXhtml:function(c){function m(b,c){var g=b.nodeType,h,i,j,m,n;if(g==1){h=e.name(b);if(!h||b.attributes._moz_dirty&&e.is(b,"br"))return;i=f[h];if(i){i.start(b),l(b),i.end(b);return}d.push("<"),d.push(h),k(b),e.empty[h]?d.push(" />"):(d.push(">"),l(b,c||e.is(b,"pre")),d.push("</"),d.push(h),d.push(">"))}else if(g==3){m=b.nodeValue;if(!c&&a.support.leadingWhitespace){j=b.parentNode,n=b.previousSibling,n||(n=(e.isInline(j)?j:b).previousSibling);if(!n||n.innerHTML===""||e.isBlock(n))m=m.replace(/^[\r\n\v\f\t ]+/,"");m=m.replace(/ +/," ")}d.push(e.encode(m))}else g==4?(d.push("<![CDATA["),d.push(b.data),d.push("]]>")):g==8&&(b.data.indexOf("[CDATA[")<0?(d.push("<!--"),d.push(b.data),d.push("-->")):(d.push("<!"),d.push(b.data),d.push(">")))}function l(a,b){for(var c=a.firstChild;c;c=c.nextSibling)m(c,b)}function k(c){var f=[],g=c.attributes,i,j,k,l=a.trim;if(e.is(c,"img")){var m=c.style.width,n=c.style.height,o=a(c);m&&(o.attr("width",parseInt(m,10)),e.unstyle(c,{width:b})),n&&(o.attr("height",parseInt(n,10)),e.unstyle(c,{height:b}))}for(j=0,k=g.length;j<k;j++){i=g[j];var p=i.nodeName;(i.specified||p=="value"&&!c.value||p=="type"&&i.nodeValue=="text")&&p.indexOf("_moz")<0&&p!="complete"&&p!="altHtml"&&f.push(i)}if(!!f.length){f.sort(function(a,b){return a.nodeName>b.nodeName?1:a.nodeName<b.nodeName?-1:0});for(j=0,k=f.length;j<k;j++){i=f[j];var q=i.nodeName,r=i.nodeValue;d.push(" "),d.push(q),d.push('="');if(q=="style"){var s=l(r||c.style.cssText).split(";");for(var t=0,u=s.length;t<u;t++){var v=s[t];if(v.length){var w=v.split(":"),x=l(w[0].toLowerCase()),y=l(w[1]);if(x=="font-size-adjust"||x=="font-stretch")continue;x.indexOf("color")>=0&&(y=e.toHex(y)),x.indexOf("font")>=0&&(y=y.replace(h,"'")),d.push(x),d.push(":"),d.push(y),d.push(";")}}}else q=="src"||q=="href"?d.push(c.getAttribute(q,2)):d.push(e.fillAttrs[q]?q:r);d.push('"')}}}var d=[],f={"telerik:script":{start:function(a){d.push("<script"),k(a),d.push(">")},end:function(){d.push("</script>")}},b:{start:function(){d.push("<strong>")},end:function(){d.push("</strong>")}},i:{start:function(){d.push("<em>")},end:function(){d.push("</em>")}},u:{start:function(){d.push('<span style="text-decoration:underline;">')},end:function(){d.push("</span>")}},iframe:{start:function(a){d.push("<iframe"),k(a),d.push(">")},end:function(){d.push("</iframe>")}},font:{start:function(a){d.push('<span style="');var b=a.getAttribute("color"),c=g[a.getAttribute("size")],f=a.getAttribute("face");b&&(d.push("color:"),d.push(e.toHex(b)),d.push(";")),f&&(d.push("font-face:"),d.push(f),d.push(";")),c&&(d.push("font-size:"),d.push(c),d.push(";")),d.push('">')},end:function(a){d.push("</span>")}}};l(c),d=d.join("");if(d.replace(i,"").replace(j,"")==="")return"";return d}};f(d,{Serializer:k})}(jQuery),function(a){function t(a,b,c){var d=f.create(b.ownerDocument,"a"),e=a.duplicate();e.collapse(c);var g=e.parentElement();do g.insertBefore(d,d.previousSibling),e.moveToElementText(d);while(e.compareEndPoints(c?"StartToStart":"StartToEnd",a)>0&&d.previousSibling);e.setEndPoint(c?"EndToStart":"EndToEnd",a);var i=d.nextSibling;i?(f.remove(d),h(i)?b[c?"setStart":"setEnd"](i,e.text.length):b[c?"setStartBefore":"setEndBefore"](i)):(i=d.previousSibling,i&&h(i)?(b.setEnd(i,i.nodeValue.length),f.remove(d)):(b.selectNodeContents(g),f.remove(d),b.endOffset-=1))}function s(a,b,c){var d=b[c?"startContainer":"endContainer"],e=b[c?"startOffset":"endOffset"],g=0,i=h(d)?d:d.childNodes[e]||null,j=h(d)?d.parentNode:d;if(d.nodeType==3||d.nodeType==4)g=e;var k=j.insertBefore(f.create(b.ownerDocument,"a"),i),l=b.ownerDocument.body.createTextRange();l.moveToElementText(k),f.remove(k),l[c?"moveStart":"moveEnd"]("character",g),l.collapse(!1),a.setEndPoint(c?"StartToStart":"EndToStart",l)}function p(a){a.collapsed=a.startContainer==a.endContainer&&a.startOffset==a.endOffset;var b=a.startContainer;while(b&&b!=a.endContainer&&!f.isAncestorOf(b,a.endContainer))b=b.parentNode;a.commonAncestorContainer=b}function o(a,b){function c(a){try{return n(a.startContainer,a.endContainer,a.startOffset,a.endOffset)<0}catch(b){return!0}}c(a)&&(b?(a.commonAncestorContainer=a.endContainer=a.startContainer,a.endOffset=a.startOffset):(a.commonAncestorContainer=a.startContainer=a.endContainer,a.startOffset=a.endOffset),a.collapsed=!0)}function n(a,b,c,d){if(a==b)return d-c;var e=b;while(e&&e.parentNode!=a)e=e.parentNode;if(e)return g(e)-c;e=a;while(e&&e.parentNode!=b)e=e.parentNode;if(e)return d-g(e)-1;var h=f.commonAncestor(a,b),i=a;while(i&&i.parentNode!=h)i=i.parentNode;i||(i=h);var j=b;while(j&&j.parentNode!=h)j=j.parentNode;j||(j=h);if(i==j)return 0;return g(j)-g(i)}var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=f.findNodeIndex,h=f.isDataNode,i=f.findClosestAncestor,j=f.getNodeLength,k=f.normalize,l={selectionFromWindow:function(b){if(a.browser.msie&&a.browser.version<9)return new r(b.document);return b.getSelection()},selectionFromRange:function(a){var b=y.documentFromRange(a);return l.selectionFromDocument(b)},selectionFromDocument:function(a){return l.selectionFromWindow(f.windowFromDocument(a))}},m=c.extend({init:function(b){a.extend(this,{ownerDocument:b,startContainer:b,endContainer:b,commonAncestorContainer:b,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(a,b){this.startContainer=a,this.startOffset=b,p(this),o(this,!0)},setEnd:function(a,b){this.endContainer=a,this.endOffset=b,p(this),o(this,!1)},setStartBefore:function(a){this.setStart(a.parentNode,g(a))},setStartAfter:function(a){this.setStart(a.parentNode,g(a)+1)},setEndBefore:function(a){this.setEnd(a.parentNode,g(a))},setEndAfter:function(a){this.setEnd(a.parentNode,g(a)+1)},selectNode:function(a){this.setStartBefore(a),this.setEndAfter(a)},selectNodeContents:function(a){this.setStart(a,0),this.setEnd(a,a[a.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a){var b=this;a?b.setEnd(b.startContainer,b.startOffset):b.setStart(b.endContainer,b.endOffset)},deleteContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0),function c(a){while(a.next())a.hasPartialSubtree()?c(a.getSubtreeIterator()):a.remove()}(new q(b))},cloneContents:function(){var a=y.documentFromRange(this);return function b(c){var d,e=a.createDocumentFragment();while(d=c.next())d=d.cloneNode(!c.hasPartialSubtree()),c.hasPartialSubtree()&&d.appendChild(b(c.getSubtreeIterator())),e.appendChild(d);return e}(new q(this))},extractContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0);var c=y.documentFromRange(a);return function d(b){var e,f=c.createDocumentFragment();while(e=b.next())b.hasPartialSubtree()?(e=e.cloneNode(!1),e.appendChild(d(b.getSubtreeIterator()))):b.remove(a.originalRange),f.appendChild(e);return f}(new q(b))},insertNode:function(a){var b=this;h(b.startContainer)?(b.startOffset!=b.startContainer.nodeValue.length&&f.splitDataNode(b.startContainer,b.startOffset),f.insertAfter(a,b.startContainer)):f.insertAt(b.startContainer,a,b.startOffset),b.setStart(b.startContainer,b.startOffset)},cloneRange:function(){return a.extend(new m(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a=this.startContainer.nodeName,b=this.endContainer.nodeName;return[a=="#text"?this.startContainer.nodeValue:a,"(",this.startOffset,") : ",b=="#text"?this.endContainer.nodeValue:b,"(",this.endOffset,")"].join("")}}),q=c.extend({init:function(b){a.extend(this,{range:b,_current:null,_next:null,_end:null});if(!b.collapsed){var c=b.commonAncestorContainer;this._next=b.startContainer==c&&!h(b.startContainer)?b.startContainer.childNodes[b.startOffset]:i(c,b.startContainer),this._end=b.endContainer==c&&!h(b.endContainer)?b.endContainer.childNodes[b.endOffset]:i(c,b.endContainer).nextSibling}},hasNext:function(){return!!this._next},next:function(){var a=this,b=a._current=a._next;a._next=a._current&&a._current.nextSibling!=a._end?a._current.nextSibling:null,h(a._current)&&(a.range.endContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(a.range.endOffset,b.length-a.range.endOffset)),a.range.startContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(0,a.range.startOffset)));return b},traverse:function(a){function d(){b._current=b._next,b._next=b._current&&b._current.nextSibling!=b._end?b._current.nextSibling:null;return b._current}var b=this,c;while(c=d())b.hasPartialSubtree()?b.getSubtreeIterator().traverse(a):a(c);return c},remove:function(a){var b=this,c=b.range.startContainer==b._current,d=b.range.endContainer==b._current,e,i,j;if(h(b._current)&&(c||d))e=c?b.range.startOffset:0,i=d?b.range.endOffset:b._current.length,j=i-e,a&&(c||d)&&(b._current==a.startContainer&&e<=a.startOffset&&(a.startOffset-=j),b._current==a.endContainer&&i<=a.endOffset&&(a.endOffset-=j)),b._current.deleteData(e,j);else{var k=b._current.parentNode;if(a&&(b.range.startContainer==k||b.range.endContainer==k)){var l=g(b._current);k==a.startContainer&&l<=a.startOffset&&(a.startOffset-=1),k==a.endContainer&&l<a.endOffset&&(a.endOffset-=1)}f.remove(b._current)}},hasPartialSubtree:function(){return!h(this._current)&&(f.isAncestorOrSelf(this._current,this.range.startContainer)||f.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){var a=this,b=a.range.cloneRange();b.selectNodeContents(a._current),f.isAncestorOrSelf(a._current,a.range.startContainer)&&b.setStart(a.range.startContainer,a.range.startOffset),f.isAncestorOrSelf(a._current,a.range.endContainer)&&b.setEnd(a.range.endContainer,a.range.endOffset);return new q(b)}}),r=c.extend({init:function(a){this.ownerDocument=a,this.rangeCount=1},addRange:function(a){var b=this.ownerDocument.body.createTextRange();s(b,a,!1),s(b,a,!0),b.select()},removeAllRanges:function(){this.ownerDocument.selection.empty()},getRangeAt:function(){var a,b=new m(this.ownerDocument),c=this.ownerDocument.selection,d;try{a=c.createRange(),d=a.item?a.item(0):a.parentElement();if(d.ownerDocument!=this.ownerDocument)return b}catch(e){return b}if(c.type=="Control")b.selectNode(a.item(0));else{t(a,b,!0),t(a,b,!1),b.startContainer.nodeType==9&&b.setStart(b.endContainer,b.startOffset),b.endContainer.nodeType==9&&b.setEnd(b.startContainer,b.endOffset),a.compareEndPoints("StartToEnd",a)===0&&b.collapse(!1);var f=b.startContainer,i=b.endContainer,k=this.ownerDocument.body;if(!b.collapsed&&b.startOffset===0&&b.endOffset==j(b.endContainer)&&(f!=i||!h(f)||f.parentNode!=k)){var l=!1,n=!1;while(g(f)===0&&f==f.parentNode.firstChild&&f!=k)f=f.parentNode,l=!0;while(g(i)==j(i.parentNode)-1&&i==i.parentNode.lastChild&&i!=k)i=i.parentNode,n=!0;f==k&&i==k&&l&&n&&(b.setStart(f,0),b.setEnd(i,j(k)))}}return b}}),u=c.extend({init:function(a){this.enumerate=function(){function c(a){if(f.is(a,"img")||a.nodeType==3&&!f.isWhitespace(a))b.push(a);else{a=a.firstChild;while(a)c(a),a=a.nextSibling}}var b=[];(new q(a)).traverse(c);return b}}}),v=c.extend({init:function(a){var b=this;b.range=a,b.rootNode=y.documentFromRange(a),b.body=b.rootNode.body,b.html=b.body.innerHTML,b.startContainer=b.nodeToPath(a.startContainer),b.endContainer=b.nodeToPath(a.endContainer),b.startOffset=b.offset(a.startContainer,a.startOffset),b.endOffset=b.offset(a.endContainer,a.endOffset)},index:function(a){var b=0,c=a.nodeType;while(a=a.previousSibling){var d=a.nodeType;(d!=3||c!=d)&&b++,c=d}return b},offset:function(a,b){if(a.nodeType==3)while((a=a.previousSibling)&&a.nodeType==3)b+=a.nodeValue.length;return b},nodeToPath:function(a){var b=[];while(a!=this.rootNode)b.push(this.index(a)),a=a.parentNode;return b},toRangePoint:function(a,b,c,d){var e=this.rootNode,f=c.length,g=d;while(f--)e=e.childNodes[c[f]];while(e.nodeType==3&&e.nodeValue.length<g)g-=e.nodeValue.length,e=e.nextSibling;a[b?"setStart":"setEnd"](e,g)},toRange:function(){var a=this,b=a.range.cloneRange();a.toRangePoint(b,!0,a.startContainer,a.startOffset),a.toRangePoint(b,!1,a.endContainer,a.endOffset);return b}}),w=c.extend({init:function(){this.caret=null},addCaret:function(a){var b=this;b.caret=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),a.insertNode(b.caret),a.selectNode(b.caret);return b.caret},removeCaret:function(b){var c=this,d=c.caret.previousSibling,e=0;d&&(e=h(d)?d.nodeValue.length:g(d));var i=c.caret.parentNode,j=d?g(d):0;f.remove(c.caret),k(i);var l=i.childNodes[j];if(h(l))b.setStart(l,e);else if(l){var m=f.lastTextNode(l);m?b.setStart(m,m.nodeValue.length):b[d?"setStartAfter":"setStartBefore"](l)}else!a.browser.msie&&!i.innerHTML&&(i.innerHTML='<br _moz_dirty="" />'),b.selectNodeContents(i);b.collapse(!0)},add:function(a,b){var c=this;b&&a.collapsed&&(c.addCaret(a),a=y.expand(a));var d=a.cloneRange();d.collapse(!1),c.end=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),d.insertNode(c.end),d=a.cloneRange(),d.collapse(!0),c.start=c.end.cloneNode(!0),d.insertNode(c.start),a.setStartBefore(c.start),a.setEndAfter(c.end),k(a.commonAncestorContainer);return a},remove:function(a){var b=this,c=b.start,d=b.end,e,i,j;k(a.commonAncestorContainer);while(!c.nextSibling&&c.parentNode)c=c.parentNode;while(!d.previousSibling&&d.parentNode)d=d.parentNode;e=c.previousSibling&&c.previousSibling.nodeType==3&&c.nextSibling&&c.nextSibling.nodeType==3,i=d.previousSibling&&d.previousSibling.nodeType==3&&d.nextSibling&&d.nextSibling.nodeType==3,j=e&&i,c=c.nextSibling,d=d.previousSibling;var l=!1,m=!1;c==b.end&&(m=!!b.start.previousSibling,c=d=b.start.previousSibling||b.end.nextSibling,l=!0),f.remove(b.start),f.remove(b.end);if(!c||!d)a.selectNodeContents(a.commonAncestorContainer),a.collapse(!0);else{var n=l?h(c)?c.nodeValue.length:c.childNodes.length:0,o=h(d)?d.nodeValue.length:d.childNodes.length;if(c.nodeType==3)while(c.previousSibling&&c.previousSibling.nodeType==3)c=c.previousSibling,n+=c.nodeValue.length;if(d.nodeType==3)while(d.previousSibling&&d.previousSibling.nodeType==3)d=d.previousSibling,o+=d.nodeValue.length;var p=g(c),q=c.parentNode,r=g(d),s=d.parentNode;for(var t=c;t.previousSibling;t=t.previousSibling)t.nodeType==3&&t.previousSibling.nodeType==3&&p--;for(var u=d;u.previousSibling;u=u.previousSibling)u.nodeType==3&&u.previousSibling.nodeType==3&&r--;k(q),c.nodeType==3&&(c=q.childNodes[p]),k(s),d.nodeType==3&&(d=s.childNodes[r]),l?(c.nodeType==3?a.setStart(c,n):a[m?"setStartAfter":"setStartBefore"](c),a.collapse(!0)):(c.nodeType==3?a.setStart(c,n):a.setStartBefore(c),d.nodeType==3?a.setEnd(d,o):a.setEndAfter(d)),b.caret&&b.removeCaret(a)}}}),x=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,y={nodes:function(a){var b=y.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=y.textNodes(a),b.length||(b=f.significantChildNodes(a.commonAncestorContainer)));return b},textNodes:function(a){return(new u(a)).enumerate()},documentFromRange:function(a){var b=a.startContainer;return b.nodeType==9?b:b.ownerDocument},createRange:function(b){if(a.browser.msie&&a.browser.version<9)return new m(b);return b.createRange()},selectRange:function(a){var b=y.image(a);b&&(a.setStartAfter(b),a.setEndAfter(b));var c=l.selectionFromRange(a);c.removeAllRanges(),c.addRange(a)},split:function(a,b,c){function d(d){var e=a.cloneRange();e.collapse(d),e[d?"setStartBefore":"setEndAfter"](b);var g=e.extractContents();c&&(g=f.trim(g)),f[d?"insertBefore":"insertAfter"](g,b)}d(!0),d(!1)},getMarkers:function(a){var b=[];(new q(a)).traverse(function(a){a.className=="k-marker"&&b.push(a)});return b},image:function(a){var b=[];(new q(a)).traverse(function(a){f.is(a,"img")&&b.push(a)});if(b.length==1)return b[0]},expand:function(a){var b=a.cloneRange(),c=b.startContainer.childNodes[b.startOffset===0?0:b.startOffset-1],d=b.endContainer.childNodes[b.endOffset];if(!h(c)||!h(d))return b;var e=c.nodeValue,f=d.nodeValue;if(!e||!f)return b;var g=e.split("").reverse().join("").search(x),i=f.search(x);if(!g||!i)return b;i=i==-1?f.length:i,g=g==-1?0:e.length-g,b.setStart(c,g),b.setEnd(d,i);return b},isExpandable:function(a){var b=a.startContainer,c=y.documentFromRange(a);if(b==c||b==c.body)return!1;var d=a.cloneRange(),e=b.nodeValue;if(!e)return!1;var f=e.substring(0,d.startOffset),g=e.substring(d.startOffset),h=0,i=0;f&&(h=f.split("").reverse().join("").search(x)),g&&(i=g.search(x));return h&&i}};d(e,{SelectionUtils:l,W3CRange:m,RangeIterator:q,W3CSelection:r,RangeEnumerator:u,RestorePoint:v,Marker:w,RangeUtils:y})}(jQuery),function(a){var b=window.kendo,c=b.Class,d=b.ui.editor,e=d.EditorUtils,f=e.registerTool,g=d.Dom,h=d.RangeUtils,i=h.selectRange,j=d.Tool,k=d.ToolTemplate,l=d.RestorePoint,m=d.Marker,n=a.extend,o=c.extend({init:function(a){var b=this;b.options=a,b.restorePoint=new l(a.range),b.marker=new m,b.formatter=a.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(a){return this.marker.add(this.getRange(),a)},releaseRange:function(a){this.marker.remove(a),i(a)},undo:function(){var a=this.restorePoint;a.body.innerHTML=a.html,i(a.toRange())},redo:function(){this.exec()},exec:function(){var a=this,b=a.lockRange(!0);a.formatter.editor=a.editor,a.formatter.toggle(b),a.releaseRange(b)}}),p=c.extend({init:function(a,b){this.body=a.body,this.startRestorePoint=a,this.endRestorePoint=b},redo:function(){this.body.innerHTML=this.endRestorePoint.html,i(this.endRestorePoint.toRange())},undo:function(){this.body.innerHTML=this.startRestorePoint.html,i(this.startRestorePoint.toRange())}}),q=o.extend({init:function(a){o.fn.init.call(this,a),this.managesUndoRedo=!0},exec:function(){var a=this.editor,b=a.getRange(),c=new l(b);a.clipboard.paste(this.options.value||""),a.undoRedoStack.push(new p(c,new l(a.getRange()))),a.focus()}}),r=j.extend({initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataSource:c.options.insertHtml||[],dataTextField:"text",dataValueField:"value",change:function(a){j.exec(c,"insertHtml",this.value())},title:c.options.messages.insertHtml,highlightFirst:!1})},command:function(a){return new q(a)},update:function(a,b){var c=a.data("kendoSelectBox")||a.find("select").data("kendoSelectBox");c.close(),c.value(c.options.title)}}),s=c.extend({init:function(){this.stack=[],this.currentCommandIndex=-1},push:function(a){var b=this;b.stack=b.stack.slice(0,b.currentCommandIndex+1),b.currentCommandIndex=b.stack.push(a)-1},undo:function(){this.canUndo()&&this.stack[this.currentCommandIndex--].undo()},redo:function(){this.canRedo()&&this.stack[++this.currentCommandIndex].redo()},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}}),t=c.extend({init:function(a){this.editor=a},keydown:function(a){var b=this,c=b.editor,d=c.keyboard,e=d.isTypingKey(a);if(e&&!d.isTypingInProgress()){var f=c.getRange();b.startRestorePoint=new l(f),d.startTyping(function(){c.selectionRestorePoint=b.endRestorePoint=new l(c.getRange()),c.undoRedoStack.push(new p(b.startRestorePoint,b.endRestorePoint))});return!0}return!1},keyup:function(a){var b=this.editor.keyboard;if(b.isTypingInProgress()){b.endTyping();return!0}return!1}}),u=c.extend({init:function(a){this.editor=a,this.systemCommandIsInProgress=!1},createUndoCommand:function(){var a=this;a.endRestorePoint=new l(a.editor.getRange()),a.editor.undoRedoStack.push(new p(a.startRestorePoint,a.endRestorePoint)),a.startRestorePoint=a.endRestorePoint},changed:function(){if(this.startRestorePoint)return this.startRestorePoint.html!=this.editor.body.innerHTML;return!1},keydown:function(a){var b=this,c=b.editor,d=c.keyboard;if(d.isModifierKey(a)){d.isTypingInProgress()&&d.endTyping(!0),b.startRestorePoint=new l(c.getRange());return!0}if(d.isSystem(a)){b.systemCommandIsInProgress=!0,b.changed()&&(b.systemCommandIsInProgress=!1,b.createUndoCommand());return!0}return!1},keyup:function(a){var b=this;if(b.systemCommandIsInProgress&&b.changed()){b.systemCommandIsInProgress=!1,b.createUndoCommand(a);return!0}return!1}}),v=c.extend({init:function(a){this.handlers=a,this.typingInProgress=!1},isCharacter:function(a){return a>=48&&a<=90||a>=96&&a<=111||a>=186&&a<=192||a>=219&&a<=222},toolFromShortcut:function(b,c){var d=String.fromCharCode(c.keyCode),e,f;for(e in b){f=a.extend({ctrl:!1,alt:!1,shift:!1},b[e].options);if((f.key==d||f.key==c.keyCode)&&f.ctrl==c.ctrlKey&&f.alt==c.altKey&&f.shift==c.shiftKey)return e}},isTypingKey:function(a){var b=a.keyCode;return this.isCharacter(b)&&!a.ctrlKey&&!a.altKey||b==32||b==13||b==8||b==46&&!a.shiftKey&&!a.ctrlKey&&!a.altKey},isModifierKey:function(a){var b=a.keyCode;return b==17&&!a.shiftKey&&!a.altKey||b==16&&!a.ctrlKey&&!a.altKey||b==18&&!a.ctrlKey&&!a.shiftKey},isSystem:function(a){return a.keyCode==46&&a.ctrlKey&&!a.altKey&&!a.shiftKey},startTyping:function(a){this.onEndTyping=a,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress=!1,this.onEndTyping&&this.onEndTyping()},endTyping:function(b){var c=this;c.clearTimeout(),b?c.stopTyping():c.timeout=window.setTimeout(a.proxy(c.stopTyping,c),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(a,b){var c,d=this.handlers;for(c=0;c<d.length;c++)if(d[c][b](a))break},keydown:function(a){this.notify(a,"keydown")},keyup:function(a){this.notify(a,"keyup")}}),w=c.extend({init:function(a){this.editor=a,this.cleaners=[new x]},htmlToFragment:function(a){var b=this.editor,c=b.document,d=g.create(c,"div"),e=c.createDocumentFragment();d.innerHTML=a;while(d.firstChild)e.appendChild(d.firstChild);return e},isBlock:function(a){return/<(div|p|ul|ol|table|h[1-6])/i.test(a)},oncut:function(a){var b=this.editor,c=new l(b.getRange());setTimeout(function(){b.undoRedoStack.push(new p(c,new l(b.getRange())))})},onpaste:function(b){var c=this.editor,e=c.getRange(),f="",h=new l(e),j=g.create(c.document,"div",{className:"k-paste-container",innerHTML:f});c.body.appendChild(j);if(c.body.createTextRange){b.preventDefault();var k=c.createRange();k.selectNodeContents(j),c.selectRange(k);var m=c.body.createTextRange();m.moveToElementText(j),a(c.body).unbind("paste"),m.execCommand("Paste"),a(c.body).bind("paste",a.proxy(arguments.callee,this))}else{var n=c.createRange();n.selectNodeContents(j),i(n)}setTimeout(function(){var a,b={html:""};i(e),g.remove(j),j.lastChild&&g.is(j.lastChild,"br")&&g.remove(j.lastChild),a=j.innerHTML,a!=f&&(b.html=a),c.trigger("paste",b),c.clipboard.paste(b.html,!0),c.undoRedoStack.push(new p(h,new l(c.getRange()))),d.EditorUtils.select(c)})},splittableParent:function(a,b){var c,d;if(a)return g.parentOfType(b,["p","ul","ol"])||b.parentNode;c=b.parentNode,d=b.ownerDocument.body;if(g.isInline(c))while(c.parentNode!=d&&!g.isBlock(c.parentNode))c=c.parentNode;return c},paste:function(a,b){var c=this.editor,d,e;for(d=0,e=this.cleaners.length;d<e;d++)this.cleaners[d].applicable(a)&&(a=this.cleaners[d].clean(a));b&&(a=a.replace(/(<br>(\s| )*)+(<\/?(div|p|li|col|t))/ig,"$3"),a=a.replace(/<(a|span)[^>]*><\/\1>/ig,"")),a=a.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var f=this.isBlock(a),j=c.getRange();j.deleteContents(),j.startContainer==c.document&&j.selectNodeContents(c.body);var k=new m,l=k.addCaret(j),n=this.splittableParent(f,l),o=!1;!/body|td/.test(g.name(n))&&(f||g.isInline(n))&&(j.selectNode(l),h.split(j,n,!0),o=!0);var p=this.htmlToFragment(a);if(p.firstChild&&p.firstChild.className==="k-paste-container"){var q=[];for(d=0,e=p.childNodes.length;d<e;d++)q.push(p.childNodes[d].innerHTML);p=this.htmlToFragment(q.join("<br />"))}j.insertNode(p),n=this.splittableParent(f,l);if(o){while(l.parentNode!=n)g.unwrap(l.parentNode);g.unwrap(l.parentNode)}g.normalize(j.commonAncestorContainer),l.style.display="inline",g.scrollTo(l),k.removeCaret(j),i(j)}}),x=c.extend({init:function(){this.replacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/"/g,"'",/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>/g," ",/<table([^>]*)>(\s| )+<t/gi,"<table$1><t",/<tr[^>]*>(\s| )*<\/tr>/gi,"",/<tbody[^>]*>(\s| )*<\/tbody>/gi,"",/<table[^>]*>(\s| )*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*( )+/gi,"",/( |<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/ig,"",/<(\/?)b(\s[^>]*)?>/ig,"<$1strong$2>",/<(\/?)i(\s[^>]*)?>/ig,"<$1em$2>",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/ig,"",/style=(["|'])\s*\1/g,""]},applicable:function(a){return/class="?Mso|style="[^"]*mso-/i.test(a)},listType:function(a){if(/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(a))return"ul";if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a))return"ol"},lists:function(b){var c=g.create(document,"div",{innerHTML:b}),d=a(g.blockElements.join(","),c),e=-1,f,h={ul:{},ol:{}},i=c;for(var j=0;j<d.length;j++){var k=d[j];b=k.innerHTML.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," ");var l=this.listType(b);if(!l||g.name(k)!="p"){k.innerHTML?(h={ul:{},ol:{}},i=c,e=-1):g.remove(k);continue}var m=parseFloat(k.style.marginLeft||0),n=h[l][m];if(m>e||!n)n=g.create(document,l),i==c?g.insertBefore(n,k):i.appendChild(n),h[l][m]=n;if(f!=l)for(var o in h)for(var p in h[o])a.contains(n,h[o][p])&&delete h[o][p];g.remove(k.firstChild),i=g.create(document,"li",{innerHTML:k.innerHTML}),n.appendChild(i),g.remove(k),e=m,f=l}return c.innerHTML},stripEmptyAnchors:function(a){return a.replace(/<a([^>]*)>\s*<\/a>/ig,function(a,b){if(!b||b.indexOf("href")<0)return"";return a})},clean:function(a){var b=this,c=b.replacements,d,e;for(d=0,e=c.length;d<e;d+=2)a=a.replace(c[d],c[d+1]);a=b.stripEmptyAnchors(a),a=b.lists(a),a=a.replace(/\s+class="?[^"\s>]*"?/ig,"");return a}});n(d,{Command:o,GenericCommand:p,InsertHtmlCommand:q,InsertHtmlTool:r,UndoRedoStack:s,TypingHandler:t,SystemHandler:u,Keyboard:v,Clipboard:w,MSWordFormatCleaner:x}),f("insertHtml",new r({template:new k({template:e.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(jQuery),function(a){function t(a){return a.collapsed&&!k.isExpandable(a)}var b=window.kendo,c=b.Class,d=b.ui.editor,e=b.ui.Editor.fn.options.formats,f=d.EditorUtils,g=d.Tool,h=d.ToolTemplate,i=d.FormatTool,j=d.Dom,k=d.RangeUtils,l=a.extend,m=d.EditorUtils.registerTool,n=d.EditorUtils.registerFormat,o="k-marker",p=c.extend({init:function(a){this.format=a},numberOfSiblings:function(a){var b=0,c=0,d=0,e=a.parentNode,f;for(f=e.firstChild;f;f=f.nextSibling)f!=a&&(f.className==o?d++:f.nodeType==3?b++:c++);return d>1&&e.firstChild.className==o&&e.lastChild.className==o?0:c+b},findSuitable:function(a,b){if(!b&&this.numberOfSiblings(a)>0)return null;return j.parentOfType(a,this.format[0].tags)},findFormat:function(a){var b=this.format,c=j.attrEquals,d,e,f,g,h;for(d=0,e=b.length;d<e;d++){f=a,g=b[d].tags,h=b[d].attr;if(f&&j.ofType(f,g)&&c(f,h))return f;while(f){f=j.parentOfType(f,g);if(f&&c(f,h))return f}}return null},isFormatted:function(a){var b,c;for(b=0,c=a.length;b<c;b++)if(this.findFormat(a[b]))return!0;return!1}}),q=c.extend({init:function(a,b){var c=this;c.finder=new p(a),c.attributes=l({},a[0].attr,b),c.tag=a[0].tags[0]},wrap:function(a){return j.wrap(a,j.create(a.ownerDocument,this.tag,this.attributes))},activate:function(a,b){var c=this;c.finder.isFormatted(b)?(c.split(a),c.remove(b)):c.apply(b)},toggle:function(a){var b=k.textNodes(a);b.length>0&&this.activate(a,b)},apply:function(a){var b=this,c=[],d,e,f,g;for(d=0,e=a.length;d<e;d++)f=a[d],g=b.finder.findSuitable(f),g?j.attr(g,b.attributes):g=b.wrap(f),c.push(g);b.consolidate(c)},remove:function(a){var b=this,c,d,e;for(c=0,d=a.length;c<d;c++)e=b.finder.findFormat(a[c]),e&&(b.attributes&&b.attributes.style?(j.unstyle(e,b.attributes.style),e.style.cssText||j.unwrap(e)):j.unwrap(e))},split:function(a){var b=k.textNodes(a),c=b.length,d,e;if(c>0)for(d=0;d<c;d++)e=this.finder.findFormat(b[d]),e&&k.split(a,e,!0)},consolidate:function(a){var b,c;while(a.length>1){b=a.pop(),c=a[a.length-1],b.previousSibling&&b.previousSibling.className==o&&c.appendChild(b.previousSibling);if(b.tagName==c.tagName&&b.previousSibling==c&&b.style.cssText==c.style.cssText){while(b.firstChild)c.appendChild(b.firstChild);j.remove(b)}}}}),r=p.extend({init:function(a,b){var c=this;c.format=a,c.greedyProperty=b,p.fn.init.call(c,a)},getInlineCssValue:function(b){var c=b.attributes,d=a.trim,e,f,g,h,i,k,l,m,n,o,p,q;if(!!c){for(e=0,f=c.length;e<f;e++){g=c[e],h=g.nodeName,i=g.nodeValue;if(g.specified&&h=="style"){k=d(i||b.style.cssText).split(";");for(m=0,n=k.length;m<n;m++){l=k[m];if(l.length){o=l.split(":"),p=d(o[0].toLowerCase()),q=d(o[1]);if(p!=this.greedyProperty)continue;return p.indexOf("color")>=0?j.toHex(q):q}}}}return}},getFormatInner:function(b){var c=a(j.isDataNode(b)?b.parentNode:b),d=c.parents().andSelf(),e,f,g;for(e=0,f=d.length;e<f;e++){g=this.greedyProperty=="className"?d[e].className:this.getInlineCssValue(d[e]);if(g)return g}return"inherit"},getFormat:function(a){var b=this.getFormatInner(a[0]),c,d;for(c=1,d=a.length;c<d;c++)if(b!=this.getFormatInner(a[c]))return"";return b},isFormatted:function(a){return this.getFormat(a)!==""}}),s=q.extend({init:function(a,b,c){var d=this;q.fn.init.call(d,a,b),d.greedyProperty=c,d.values=b,d.finder=new r(a,c)},activate:function(a,b){var c=this,d,e=c.greedyProperty,f="apply";c.split(a),e&&(d=e.replace(/-([a-z])/,function(a,b){return b.toUpperCase()}),c.values.style[d]=="inherit"&&(f="remove")),c[f](b)}}),u=i.extend({init:function(a){i.fn.init.call(this,l(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}})),this.willDelayExecution=t}}),v=g.extend({init:function(c){var d=this;g.fn.init.call(d,c),d.type=a.browser.msie||b.support.touch?"kendoDropDownList":"kendoComboBox",d.format=[{tags:["span"]}],d.finder=new r(d.format,c.cssAttr)},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,update:function(a,b,c){var d=this,e=a.data(d.type),f=c.getPending(d.name),g=f&&f.params?f.params.value:d.finder.getFormat(b);e.close(),e.value(g)},initialize:function(a,b){var c=b.editor,d=this.options,e=d.name,f,h=[];d.defaultValue&&(h=[{text:c.options.messages[d.defaultValue[0].text],value:d.defaultValue[0].value}]),f=h.concat(d.items?d.items:c.options[e]),a[this.type]({dataTextField:"text",dataValueField:"value",dataSource:f,change:function(a){g.exec(c,e,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+e).find("*").andSelf().attr("unselectable","on"),a.data(this.type).value("inherit")}}),w=g.extend({init:function(a){g.fn.init.call(this,a),this.options=a,this.format=[{tags:["span"]}]},update:function(a){a.data("kendoColorPicker").close()},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,initialize:function(a,b){var c=b.editor,e=this.name;new d.ColorPicker(a,{value:"#000000",change:function(a){g.exec(c,e,a.value)}})}}),x=g.extend({init:function(a){var b=this;g.fn.init.call(b,a),b.format=[{tags:["span"]}],b.finder=new r(b.format,"className")},command:function(a){var b=this.format;return new d.FormatCommand(l(a,{formatter:function(){return new s(b,{className:a.value})}}))},update:function(a,b){var c=a.data("kendoSelectBox");c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:c.options.style,title:c.options.messages.style,change:function(a){g.exec(c,"style",this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+this.name).find("*").andSelf().attr("unselectable","on")}});l(d,{InlineFormatFinder:p,InlineFormatter:q,GreedyInlineFormatFinder:r,GreedyInlineFormatter:s,InlineFormatTool:u,FontTool:v,ColorTool:w,StyleTool:x}),m("style",new d.StyleTool({template:new h({template:f.dropDownListTemplate,title:"Styles"})})),n("bold",[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),m("bold",new u({key:"B",ctrl:!0,format:e.bold,template:new h({template:f.buttonTemplate,title:"Bold"})})),n("italic",[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),m("italic",new u({key:"I",ctrl:!0,format:e.italic,template:new h({template:f.buttonTemplate,title:"Italic"})})),n("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}}]),m("underline",new u({key:"U",ctrl:!0,format:e.underline,template:new h({template:f.buttonTemplate,title:"Underline"})})),n("strikethrough",[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),m("strikethrough",new u({format:e.strikethrough,template:new h({template:f.buttonTemplate,title:"Strikethrough"})})),n("superscript",[{tags:["sup"]}]),m("superscript",new u({format:e.superscript,template:new h({template:f.buttonTemplate,title:"Superscript"})})),n("subscript",[{tags:["sub"]}]),m("subscript",new u({format:e.subscript,template:new h({template:f.buttonTemplate,title:"Subscript"})})),m("foreColor",new w({cssAttr:"color",domAttr:"color",name:"foreColor",template:new h({template:f.colorPickerTemplate,title:"Color"})})),m("backColor",new w({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new h({template:f.colorPickerTemplate,title:"Background Color"})})),m("fontName",new v({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Name"})})),m("fontSize",new v({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Size"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=b.ui.Editor.fn.options.formats,g=e.Dom,h=e.Command,i=e.Tool,j=e.ToolTemplate,k=e.FormatTool,l=e.EditorUtils,m=l.registerTool,n=l.registerFormat,o=e.RangeUtils,p=c.extend({init:function(a){this.format=a},contains:function(a,b){var c,d,e;for(c=0,d=b.length;c<d;c++){e=b[c];if(!e||!g.isAncestorOrSelf(a,e))return!1}return!0},findSuitable:function(b){var c=this.format,d=[],e,f,h;for(e=0,f=b.length;e<f;e++){h=g.ofType(b[e],c[0].tags)?b[e]:g.parentOfType(b[e],c[0].tags);if(!h)return[];a.inArray(h,d)<0&&d.push(h)}for(e=0,f=d.length;e<f;e++)if(this.contains(d[e],d))return[d[e]];return d},findFormat:function(a){var b=this.format,c,d,e,f,h;for(c=0,d=b.length;c<d;c++){e=a,f=b[c].tags,h=b[c].attr;while(e){if(g.ofType(e,f)&&g.attrEquals(e,h))return e;e=e.parentNode}}return null},getFormat:function(a){var b=this,c=function(a){return b.findFormat(g.isDataNode(a)?a.parentNode:a)},d=c(a[0]),e,f;if(!d)return"";for(e=1,f=a.length;e<f;e++)if(d!=c(a[e]))return"";return d.nodeName.toLowerCase()},isFormatted:function(a){for(var b=0,c=a.length;b<c;b++)if(!this.findFormat(a[b]))return!1;return!0}}),q=c.extend({init:function(a,b){this.format=a,this.values=b,this.finder=new p(a)},wrap:function(a,b,c){var d=c.length==1?g.blockParentOrBody(c[0]):g.commonAncestor.apply(null,c);g.isInline(d)&&(d=g.blockParentOrBody(d));var e=g.significantChildNodes(d),f=g.findNodeIndex(e[0]),h=g.create(d.ownerDocument,a,b),i,j;for(i=0;i<e.length;i++){j=e[i];if(g.isBlock(j)){g.attr(j,b),h.childNodes.length&&(g.insertBefore(h,j),h=h.cloneNode(!1)),f=g.findNodeIndex(j)+1;continue}h.appendChild(j)}h.firstChild&&g.insertAt(d,h,f)},apply:function(a){var b=this,c=g.is(a[0],"img")?[a[0]]:b.finder.findSuitable(a),e=c.length?l.formatByName(g.name(c[0]),b.format):b.format[0],f=e.tags[0],h=d({},e.attr,b.values),i,j;if(c.length)for(i=0,j=c.length;i<j;i++)g.attr(c[i],h);else b.wrap(f,h,a)},remove:function(a){var b,c,d,e;for(b=0,c=a.length;b<c;b++)d=this.finder.findFormat(a[b]),d&&(g.ofType(d,["p","img","li"])?(e=l.formatByName(g.name(d),this.format),e.attr.style&&g.unstyle(d,e.attr.style),e.attr.className&&g.removeClass(d,e.attr.className)):g.unwrap(d))},toggle:function(a){var b=this,c=o.nodes(a);b.finder.isFormatted(c)?b.remove(c):b.apply(c)}}),r=c.extend({init:function(a,b){var c=this;c.format=a,c.values=b,c.finder=new p(a)},apply:function(a){var b=this.format,c=g.blockParents(a),d=b[0].tags[0],f,h,i,j,k;if(c.length)for(f=0,h=c.length;f<h;f++)g.is(c[f],"li")?(i=c[f].parentNode,j=new e.ListFormatter(i.nodeName.toLowerCase(),d),k=this.editor.createRange(),k.selectNode(c[f]),j.toggle(k)):g.changeTag(c[f],d);else(new q(b,this.values)).apply(a)},toggle:function(a){var b=o.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=o.textNodes(a),b.length||(b=g.significantChildNodes(a.commonAncestorContainer))),this.apply(b)}}),s=h.extend({init:function(a){a.formatter=a.formatter(),h.fn.init.call(this,a)}}),t=k.extend({init:function(a){k.fn.init.call(this,d(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}}))}}),u=i.extend({init:function(a){i.fn.init.call(this,a),this.finder=new p([{tags:g.blockElements}])},command:function(a){return new s(d(a,{formatter:function(){return new r([{tags:[a.value]}],{})}}))},update:function(a,b){var c;a.is("select")?c=a.data("kendoSelectBox"):c=a.find("select").data("kendoSelectBox"),c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor,d="formatBlock";new e.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:this.options.items?this.options.items:c.options.formatBlock,title:c.options.messages.formatBlock,change:function(a){i.exec(c,d,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+d).find("*").andSelf().attr("unselectable","on")}});d(e,{BlockFormatFinder:p,BlockFormatter:q,GreedyBlockFormatter:r,FormatCommand:s,BlockFormatTool:t,FormatBlockTool:u}),m("formatBlock",new u({template:new j({template:l.dropDownListTemplate})})),n("justifyLeft",[{tags:g.blockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}]),m("justifyLeft",new t({format:f.justifyLeft,template:new j({template:l.buttonTemplate,title:"Justify Left"})})),n("justifyCenter",[{tags:g.blockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}]),m("justifyCenter",new t({format:f.justifyCenter,template:new j({template:l.buttonTemplate,title:"Justify Center"})})),n("justifyRight",[{tags:g.blockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}]),m("justifyRight",new t({format:f.justifyRight,template:new j({template:l.buttonTemplate,title:"Justify Right"})})),n("justifyFull",[{tags:g.blockElements,attr:{style:{textAlign:"justify"}}}]),m("justifyFull",new t({format:f.justifyFull,template:new j({template:l.buttonTemplate,title:"Justify Full"})}))}(jQuery),function(a){var b=window.kendo,c=a.extend,d=b.ui.editor,e=d.Dom,f=d.Command,g=d.Tool,h=d.BlockFormatter,i=e.normalize,j=d.RangeUtils,k=d.EditorUtils.registerTool,l=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){function v(a){a.firstChild&&e.is(a.firstChild,"br")&&e.remove(a.firstChild),e.isDataNode(a)&&!a.nodeValue&&(a=a.parentNode);if(a&&!e.is(a,"img")){while(a.firstChild&&a.firstChild.nodeType==1)a=a.firstChild;a.innerHTML||(a.innerHTML=l)}}var b=this.getRange(),c=j.documentFromRange(b),d,f,g,k,l=a.browser.msie?"":'<br _moz_dirty="" />',m,n,o,p,q,r="p,h1,h2,h3,h4,h5,h6".split(","),s=e.parentOfType(b.startContainer,r),t=e.parentOfType(b.endContainer,r),u=s&&!t||!s&&t;b.deleteContents(),n=e.create(c,"a"),b.insertNode(n),n.parentNode||(k=b.commonAncestorContainer,k.innerHTML="",k.appendChild(n)),i(n.parentNode),o=e.parentOfType(n,["li"]),p=e.parentOfType(n,"h1,h2,h3,h4,h5,h6".split(",")),o?(q=b.cloneRange(),q.selectNode(o),j.textNodes(q).length||(m=e.create(c,"p"),o.nextSibling&&j.split(q,o.parentNode),e.insertAfter(m,o.parentNode),e.remove(o.parentNode.childNodes.length==1?o.parentNode:o),m.innerHTML=l,g=m)):p&&!n.nextSibling&&(m=e.create(c,"p"),e.insertAfter(m,p),m.innerHTML=l,e.remove(n),g=m),g||(!o&&!p&&(new h([{tags:["p"]}])).apply([n]),b.selectNode(n),d=e.parentOfType(n,[o?"li":p?e.name(p):"p"]),j.split(b,d,u),f=d.previousSibling,e.is(f,"li")&&f.firstChild&&!e.is(f.firstChild,"br")&&(f=f.firstChild),g=d.nextSibling,e.is(g,"li")&&g.firstChild&&!e.is(g.firstChild,"br")&&(g=g.firstChild),e.remove(d),v(f),v(g),i(f)),i(g);if(e.is(g,"img"))b.setStartBefore(g);else{b.selectNodeContents(g);var w=j.textNodes(b)[0];w&&b.selectNodeContents(w)}b.collapse(!0),e.scrollTo(g),j.selectRange(b)}}),m=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){var b=this.getRange();b.deleteContents();var c=e.create(j.documentFromRange(b),"br");b.insertNode(c),i(c.parentNode);if(!a.browser.msie&&(!c.nextSibling||e.isWhitespace(c.nextSibling))){var d=c.cloneNode(!0);d.setAttribute("_moz_dirty",""),e.insertAfter(d,c)}b.setStartAfter(c),b.collapse(!0),j.selectRange(b)}});c(d,{ParagraphCommand:l,NewLineCommand:m}),k("insertLineBreak",new g({key:13,shift:!0,command:m})),k("insertParagraph",new g({key:13,command:l}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.ToolTemplate,k=e.FormatTool,l=e.BlockFormatFinder,m=g.textNodes,n=e.EditorUtils.registerTool,o=l.extend({init:function(a){this.tag=a;var b=this.tags=[a=="ul"?"ol":"ul",a];l.fn.init.call(this,[{tags:b}])},isFormatted:function(a){var b=[],c;for(var d=0;d<a.length;d++)(c=this.findFormat(a[d]))&&f.name(c)==this.tag&&b.push(c);if(b.length<1)return!1;if(b.length!=a.length)return!1;for(d=0;d<b.length;d++){if(b[d].parentNode!=c.parentNode)break;if(b[d]!=c)return!1}return!0},findSuitable:function(a){var b=f.parentOfType(a[0],this.tags);if(b&&f.name(b)==this.tag)return b;return null}}),p=c.extend({init:function(a,b){var c=this;c.finder=new o(a),c.tag=a,c.unwrapTag=b},wrap:function(a,b){var c=f.create(a.ownerDocument,"li"),d,e;for(d=0;d<b.length;d++){e=b[d];if(f.is(e,"li")){a.appendChild(e);continue}if(f.is(e,"ul")||f.is(e,"ol")){while(e.firstChild)a.appendChild(e.firstChild);continue}if(f.is(e,"td")){while(e.firstChild)c.appendChild(e.firstChild);a.appendChild(c),e.appendChild(a),a=a.cloneNode(!1),c=c.cloneNode(!1);continue}c.appendChild(e),f.isBlock(e)&&(a.appendChild(c),f.unwrap(e),c=c.cloneNode(!1))}c.firstChild&&a.appendChild(c)},containsAny:function(a,b){for(var c=0;c<b.length;c++)if(f.isAncestorOrSelf(a,b[c]))return!0;return!1},suitable:function(a,b){if(a.className=="k-marker"){var c=a.nextSibling;if(c&&f.isBlock(c))return!1;c=a.previousSibling;if(c&&f.isBlock(c))return!1}return this.containsAny(a,b)||f.isInline(a)||a.nodeType==3},split:function(b){var c=m(b),d,e;if(c.length){d=f.parentOfType(c[0],["li"]),e=f.parentOfType(c[c.length-1],["li"]),b.setStartBefore(d),b.setEndAfter(e);for(var h=0,i=c.length;h<i;h++){var j=this.finder.findFormat(c[h]);if(j){var k=a(j).parents("ul,ol");k[0]?g.split(b,k.last()[0],!0):g.split(b,j,!0)}}}},merge:function(a,b){var c=b.previousSibling,d;while(c&&(c.className=="k-marker"||c.nodeType==3&&f.isWhitespace(c)))c=c.previousSibling;if(c&&f.name(c)==a){while(b.firstChild)c.appendChild(b.firstChild);f.remove(b),b=c}d=b.nextSibling;while(d&&(d.className=="k-marker"||d.nodeType==3&&f.isWhitespace(d)))d=d.nextSibling;if(d&&f.name(d)==a){while(b.lastChild)d.insertBefore(b.lastChild,d.firstChild);f.remove(b)}},applyOnSection:function(b,c){function j(){g.push(this)}var d=this.tag,e;c.length==1?e=f.parentOfType(c[0],["ul","ol"]):e=f.commonAncestor.apply(null,c),e||(e=f.parentOfType(c[0],["td"])||c[0].ownerDocument.body),f.isInline(e)&&(e=f.blockParentOrBody(e));var g=[],h=this.finder.findSuitable(c);h||(h=(new o(d=="ul"?"ol":"ul")).findSuitable(c));var i=f.significantChildNodes(e);i.length||(i=c),/table|tbody/.test(f.name(e))&&(i=a.map(c,function(a){return f.parentOfType(a,["td"])}));for(var k=0;k<i.length;k++){var l=i[k],m=f.name(l);this.suitable(l,c)&&(!h||!f.isAncestorOrSelf(h,l))&&(!h||m!="ul"&&m!="ol"?g.push(l):(a.each(l.childNodes,j),f.remove(l)))}g.length==i.length&&e!=c[0].ownerDocument.body&&!/table|tbody|tr|td/.test(f.name(e))&&(g=[e]),h||(h=f.create(e.ownerDocument,d),f.insertBefore(h,g[0])),this.wrap(h,g),f.is(h,d)||f.changeTag(h,d),this.merge(d,h)},apply:function(a){var b=0,c=[],d,e,g;do g=f.parentOfType(a[b],["td","body"]),!d||g!=d?(d&&c.push({section:d,nodes:e}),e=[a[b]],d=g):e.push(a[b]),b++;while(b<a.length);c.push({section:d,nodes:e});for(b=0;b<c.length;b++)this.applyOnSection(c[b].section,c[b].nodes)},unwrap:function(b){var c=b.ownerDocument.createDocumentFragment(),d=this.unwrapTag,e,g,h,i;for(g=b.firstChild;g;g=g.nextSibling){h=f.create(b.ownerDocument,d||"p");while(g.firstChild)i=g.firstChild,f.isBlock(i)?(h.firstChild&&(c.appendChild(h),h=f.create(b.ownerDocument,d||"p")),c.appendChild(i)):h.appendChild(i);h.firstChild&&c.appendChild(h)}e=a(b).parents("ul,ol"),e[0]?(f.insertAfter(c,e.last()[0]),e.last().remove()):f.insertAfter(c,b),f.remove(b)},remove:function(a){var b;for(var c=0,d=a.length;c<d;c++)b=this.finder.findFormat(a[c]),b&&this.unwrap(b)},toggle:function(a){var b=this,c=m(a),d=a.commonAncestorContainer;if(!c.length){a.selectNodeContents(d),c=m(a);if(!c.length){var e=d.ownerDocument.createTextNode("");a.startContainer.appendChild(e),c=[e],a.selectNode(e.parentNode)}}b.finder.isFormatted(c)?(b.split(a),b.remove(c)):b.apply(c)}}),q=i.extend({init:function(a){a.formatter=new p(a.tag),i.fn.init.call(this,a)}}),r=k.extend({init:function(a){this.options=a,k.fn.init.call(this,d(a,{finder:new o(a.tag)}))},command:function(a){return new q(d(a,{tag:this.options.tag}))}});d(e,{ListFormatFinder:o,ListFormatter:p,ListCommand:q,ListTool:r}),n("insertUnorderedList",new r({tag:"ul",template:new j({template:h.buttonTemplate,title:"Remove Link"})})),n("insertOrderedList",new r({tag:"ol",template:new j({template:h.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.RangeUtils,i=f.EditorUtils,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.InlineFormatter,n=f.InlineFormatFinder,o=h.textNodes,p=f.EditorUtils.registerTool,q=d.extend({findSuitable:function(a){return g.parentOfType(a,["a"])}}),r=d.extend({init:function(){this.finder=new q},apply:function(a,b){var c=o(a);if(b.innerHTML){var d=h.getMarkers(a),e=h.documentFromRange(a);a.deleteContents();var f=g.create(e,"a",b);a.insertNode(f),d.length>1&&(g.insertAfter(d[d.length-1],f),g.insertAfter(d[1],f),g[c.length>0?"insertBefore":"insertAfter"](d[0],f))}else{var i=new m([{tags:["a"]}],b);i.finder=this.finder,i.apply(c)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new m([{tags:["a"]}])).remove(o(a))}},this.options=a,j.fn.init.call(this,a)}}),t=j.extend({init:function(a){var b=this;b.options=a,j.fn.init.call(b,a),b.attributes=null,b.async=!0,b.formatter=new r},exec:function(){function j(a){a.preventDefault(),n.destroy(),g.windowFromDocument(h.documentFromRange(b)).focus(),f.releaseRange(b)}function i(c){var d=a("#k-editor-link-url",n.element).val();if(d&&d!="http://"){f.attributes={href:d};var g=a("#k-editor-link-title",n.element).val();g&&(f.attributes.title=g);var h=a("#k-editor-link-text",n.element).val();h!==e&&(f.attributes.innerHTML=h||d);var i=a("#k-editor-link-target",n.element).is(":checked");i&&(f.attributes.target="_blank"),f.formatter.apply(b,f.attributes)}j(c),f.change&&f.change()}var b=this.getRange(),c=b.collapsed;b=this.lockRange(!0);var d=o(b),e=null,f=this,k=d.length?f.formatter.finder.findSuitable(d[0]):null,l=d.length<=1||d.length==2&&c,m='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-link-url">Web address</label><input type="text" class="k-input" id="k-editor-link-url"/></li>'+(l?'<li class="k-form-text-row"><label for="k-editor-link-text">Text</label><input type="text" class="k-input" id="k-editor-link-text"/></li>':"")+'<li class="k-form-text-row"><label for="k-editor-link-title">Tooltip</label><input type="text" class="k-input" id="k-editor-link-title"/></li>'+'<li class="k-form-checkbox-row"><input type="checkbox" id="k-editor-link-target"/><label for="k-editor-link-target">Open link in new window</label></li>'+"</ol>"+'<div class="k-button-wrapper">'+'<button class="k-dialog-insert k-button">Insert</button>'+" or "+'<a href="#" class="k-dialog-close k-link">Close</a>'+"</div>"+"</div>",n=a(m).appendTo(document.body).kendoWindow(a.extend({},this.editor.options.dialogOptions,{title:"Insert link",close:j})).hide().find(".k-dialog-insert").click(i).end().find(".k-dialog-close").click(j).end().find(".k-form-text-row input").keydown(function(a){a.keyCode==13?i(a):a.keyCode==27&&j(a)}).end().find("#k-editor-link-url").val(k?k.getAttribute("href",2):"http://").end().find("#k-editor-link-text").val(d.length>0?d.length==1?d[0].nodeValue:d[0].nodeValue+d[1].nodeValue:"").end().find("#k-editor-link-title").val(k?k.title:"").end().find("#k-editor-link-target").attr("checked",k?k.target=="_blank":!1).end().show().data("kendoWindow").center();l&&d.length>0&&(e=a("#k-editor-link-text",n.element).val()),a("#k-editor-link-url",n.element).focus().select()},redo:function(){var a=this,b=a.lockRange(!0);a.formatter.apply(b,a.attributes),a.releaseRange(b)}}),u=k.extend({init:function(b){this.options=b,this.finder=new n([{tags:["a"]}]),k.fn.init.call(this,a.extend(b,{command:s}))},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(a,b){a.toggleClass("k-state-disabled",!this.finder.isFormatted(b)).removeClass("k-state-hover")}});e(c.ui.editor,{LinkFormatFinder:q,LinkFormatter:r,UnlinkCommand:s,LinkCommand:t,UnlinkTool:u}),p("createLink",new k({key:"K",ctrl:!0,command:t,template:new l({template:i.buttonTemplate,title:"Create Link"})})),p("unlink",new u({key:"K",ctrl:!0,shift:!0,template:new l({template:i.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.EditorUtils,g=e.Dom,h=f.registerTool,i=e.ToolTemplate,j=e.RangeUtils,k=e.Command,l=c.keys,m="Insert Image",n="#k-editor-image-url",o="#k-editor-image-title",p=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.async=!0,b.attributes={}},insertImage:function(a,b){var c=this.attributes;if(c.src&&c.src!="http://"){if(!a){a=g.create(j.documentFromRange(b),"img",c),a.onload=a.onerror=function(){a.removeAttribute("complete"),a.removeAttribute("width"),a.removeAttribute("height")},b.deleteContents(),b.insertNode(a),b.setStartAfter(a),b.setEndAfter(a),j.selectRange(b);return!0}g.attr(a,c)}return!1},redo:function(){var a=this,b=a.lockRange();a.insertImage(j.image(b),b)||a.releaseRange(b)},exec:function(){function q(a){a.keyCode==l.ENTER?k(a):a.keyCode==l.ESC&&p(a)}function p(a){a.preventDefault(),i.destroy(),g.windowFromDocument(j.documentFromRange(c)).focus(),e||b.releaseRange(c)}function k(d){b.attributes={src:a(n,i.element).val(),alt:a(o,i.element).val()},e=b.insertImage(f,c),p(d),b.change&&b.change()}var b=this,c=b.lockRange(),e=!1,f=j.image(c),h,i;h='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-image-url">Web address</label><input type="text" class="k-input" id="k-editor-image-url"/></li><li class="k-form-text-row"><label for="k-editor-image-title">Tooltip</label><input type="text" class="k-input" id="k-editor-image-title"/></li></ol><div class="k-button-wrapper"><button class="k-dialog-insert k-button">Insert</button> or <a href="#" class="k-dialog-close k-link">Close</a></div></div>',i=a(h).appendTo(document.body).kendoWindow(d({},b.editor.options.dialogOptions,{title:m,close:p,activate:function(){}})).hide().find(".k-dialog-insert").click(k).end().find(".k-dialog-close").click(p).end().find(".k-form-text-row input").keydown(q).end().find(n).val(f?f.getAttribute("src",2):"http://").end().find(o).val(f?f.alt:"").end().show().data("kendoWindow").center(),a(n,i.element).focus().select()}});c.ui.editor.ImageCommand=p,h("insertImage",new e.Tool({command:p,template:new i({template:f.buttonTemplate,title:m})}))}(jQuery),function(a,b){var c=window.kendo,d=c.ui.Widget,e=c.ui.DropDownList,f=c.ui.editor,g=f.Dom,h="change",i="k-state-selected",j="."+i,k=".k-selected-color",l="unselectable",m="background-color",n=c.keys,o=c.template('<div class="k-colorpicker-popup"><ul class="k-reset"># for(var i = 0; i < colors.length; i++) { #<li class="k-item #= colors[i] == value ? "k-state-selected" : "" #"><div style="background-color:\\##= colors[i] #"></div></li># } #</ul></div>'),p=d.extend({init:function(b,c){var e=this;d.fn.init.call(e,b,c),b=e.element,c=e.options,e._value=c.value,e.popup=a(o({colors:c.colors,value:c.value.substring(1)})).kendoPopup({anchor:b,toggleTarget:b.find(".k-icon")}).delegate(".k-item","click",function(b){e.select(a(b.currentTarget).find("div").css(m))}).find("*").attr(l,"on").end().data("kendoPopup"),b.attr("tabIndex",0).keydown(function(a){e.keydown(a)}).focus(function(){b.css("outline","1px dotted #000")}).blur(function(){b.css("outline","")}).delegate(".k-tool-icon","click",function(){e.select()}).find("*").attr(l,"on"),e._value&&b.find(k).css(m,e._value)},options:{name:"ColorPicker",colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),value:null},events:[h],select:function(a){var b=this;a?(a=g.toHex(a),b.trigger(h,{value:a})||(b.value(a),b.close())):b.trigger(h,{value:b._value})},open:function(){this.popup.open()},close:function(){this.popup.close()},toggle:function(){this.popup.toggle()},keydown:function(a){var b=this,c=b.popup.element,d=b.popup.visible(),e,f,g,h=!1,k=a.keyCode;k==n.DOWN?(d?(e=c.find(j),e[0]?f=e.next():f=c.find("li:first"),f[0]&&(e.removeClass(i),f.addClass(i))):b.open(),h=!0):k==n.UP?(d&&(e=c.find(j),g=e.prev(),g[0]&&(e.removeClass(i),g.addClass(i))),h=!0):k==n.TAB||k==n.RIGHT||k==n.LEFT?b.close():k==n.ENTER&&(c.find(j).click(),h=!0),h&&a.preventDefault()},value:function(a){var c=this;if(a===b)return c._value;a=g.toHex(a),c._value=a,c.element.find(k).css(m,a)}}),q=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.value(c.options.title)},options:{name:"SelectBox"},value:function(a){var c=this,d=e.fn.value.call(c,a);if(a===b)return d;a!==e.fn.value.call(c)&&(c.text(c.options.title),c._current.removeClass("k-state-selected"),c.current(null),c._oldIndex=c.selectedIndex=-1)}});c.ui.editor.ColorPicker=p,c.ui.editor.SelectBox=q}(jQuery),function(a,b){function q(a,c){var d=g.name(a)!="td"?"marginLeft":"paddingLeft";if(c===b)return a.style[d]||0;c>0?a.style[d]=c+"px":(a.style[d]="",a.style.cssText||a.removeAttribute("style"))}var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.EditorUtils,i=h.registerTool,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.RangeUtils,n=g.blockElements,o=f.BlockFormatFinder,p=f.BlockFormatter,r=d.extend({init:function(){this.finder=new o([{tags:g.blockElements}])},apply:function(b){var c=this.finder.findSuitable(b),d=[],e,f,h,i,j;if(c.length){for(e=0,f=c.length;e<f;e++)g.is(c[e],"li")?a(c[e]).index()?a.inArray(c[e].parentNode,d)<0&&d.push(c[e]):d.push(c[e].parentNode):d.push(c[e]);while(d.length){h=d.shift();if(g.is(h,"li")){i=h.parentNode,j=a(h).prev("li");var k=j.find("ul,ol").last(),l=a(h).children("ul,ol")[0];if(l&&j[0])k[0]?(k.append(h),k.append(a(l).children()),g.remove(l)):(j.append(l),l.insertBefore(h,l.firstChild));else{l=j.children("ul,ol")[0],l||(l=g.create(h.ownerDocument,g.name(i)),j.append(l));while(h&&h.parentNode==i)l.appendChild(h),h=d.shift()}}else{var m=parseInt(q(h),10)+30;q(h,m);for(var n=0;n<d.length;n++)a.contains(h,d[n])&&d.splice(n,1)}}}else{var o=new p([{tags:"p"}],{style:{marginLeft:30}});o.apply(b)}},remove:function(b){var c=this.finder.findSuitable(b),d,e,f,g,h,i,j,k;for(e=0,f=c.length;e<f;e++){j=a(c[e]);if(j.is("li")){g=j.parent(),h=g.parent();if(h.is("li,ul,ol")&&!q(g[0])){if(d&&a.contains(d,h[0]))continue;i=j.nextAll("li"),i.length&&a(g[0].cloneNode(!1)).appendTo(j).append(i),h.is("li")?j.insertAfter(h):j.appendTo(h),g.children("li").length||g.remove();continue}if(d==g[0])continue;d=g[0]}else d=c[e];k=parseInt(q(d),10)-30,q(d,k)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).apply(m.nodes(a))}},j.fn.init.call(this,a)}}),t=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).remove(m.nodes(a))}},j.fn.init.call(this,a)}}),u=k.extend({init:function(a){k.fn.init.call(this,e(a,{command:t})),this.finder=new o([{tags:n}])},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(b,c){var d=this.finder.findSuitable(c),e,f,h,i;for(h=0,i=d.length;h<i;h++){e=q(d[h]),e||(f=a(d[h]).parents("ul,ol").length,e=g.is(d[h],"li")&&(f>1||q(d[h].parentNode))||g.ofType(d[h],["ul","ol"])&&f>0);if(e){b.removeClass("k-state-disabled");return}}b.addClass("k-state-disabled").removeClass("k-state-hover")}});e(f,{IndentFormatter:r,IndentCommand:s,OutdentCommand:t,OutdentTool:u}),i("indent",new k({command:s,template:new l({template:h.buttonTemplate,title:"Indent"})})),i("outdent",new u({template:new l({template:h.buttonTemplate,title:"Outdent"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.Tool,k=e.ToolTemplate,l=i.extend({init:function(a){var b=this;b.options=a,i.fn.init.call(b,a),b.attributes=null,b.async=!0},exec:function(){function m(a){a.preventDefault(),h.data("kendoWindow").destroy(),f.windowFromDocument(g.documentFromRange(e)).focus()}function k(a){c.value(h.find(j).val()),m(a),b.change&&b.change()}var b=this,c=b.editor,e=c.getRange(),h=a(l.template).appendTo(document.body),i=l.indent(c.value()),j=".k-editor-textarea";h.kendoWindow(d({},c.options.dialogOptions,{title:"View HTML",close:m})).hide().find(j).val(i).end().find(".k-dialog-update").click(k).end().find(".k-dialog-close").click(m).end().show().data("kendoWindow").center(),h.find(j).focus()}});d(l,{template:"<div class='k-editor-dialog'><textarea class='k-editor-textarea k-input'></textarea><div class='k-button-wrapper'><button class='k-dialog-update k-button'>Update</button> or <a href='#' class='k-dialog-close k-link'>Close</a></div></div>",indent:function(a){return a.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/ig,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/ig,"<$1$2>\n<li").replace(/<br \/>/ig,"<br />\n").replace(/\n$/,"")}}),c.ui.editor.ViewHtmlCommand=l,e.EditorUtils.registerTool("viewHtml",new j({command:l,template:new k({template:h.buttonTemplate,title:"View HTML"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.RangeUtils,g=e.Marker,h=c.extend({init:function(a){this.editor=a,this.formats=[]},apply:function(a){if(!!this.hasPending()){var b=new g;b.addCaret(a);var c=a.startContainer.childNodes[a.startOffset],e=c.previousSibling;e.nodeValue||(e=e.previousSibling),a.setStart(e,e.nodeValue.length-1),b.add(a);if(!f.textNodes(a).length){b.remove(a),a.collapse(!0),this.editor.selectRange(a);return}var h=b.end.previousSibling.previousSibling,i,j=this.formats;for(var k=0;k<j.length;k++){i=j[k];var l=i.command(d({range:a},i.options.params));l.editor=this.editor,l.exec(),a.selectNode(h)}b.remove(a),h.parentNode&&(a.setStart(h,1),a.collapse(!0)),this.clear(),this.editor.selectRange(a)}},hasPending:function(){return this.formats.length>0},isPending:function(a){return!!this.getPending(a)},getPending:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a)return b[c];return},toggle:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a.name){b[c].params&&b[c].params.value!=a.params.value?b[c].params.value=a.params.value:b.splice(c,1);return}b.push(a)},clear:function(){this.formats=[]}});d(e,{PendingFormats:h})}(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function o(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function n(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){n(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e="kendoNumericTextBox",f="kendoDatePicker",g=a.proxy,h="kendoPopup",i="Is equal to",j="Is not equal to",k=d.Widget,l='<div><div class="k-filter-help-text">#=messages.info#</div><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>#=messages.isTrue#</label><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>#=messages.isFalse#</label><button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',m='<div><div class="k-filter-help-text">#=messages.info#</div><select data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##if(extra){#<select class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist"><option value="and">#=messages.and#</option><option value="or">#=messages.or#</option></select><select data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##}#<button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',p=k.extend({init:function(b,d){var i=this,j="string",n,p,q;k.fn.init.call(i,b,d),q=d.operators||{},b=i.element,d=i.options,d.appendToElement?i.link=a():(n=b.addClass("k-filterable").find(".k-grid-filter"),n[0]||(n=b.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter")),i._clickHandler=g(i._click,i),n.click(i._clickHandler)),i.dataSource=d.dataSource.bind("change",g(i.refresh,i)),i.field=d.field||b.attr(c.attr("field")),i.model=i.dataSource.reader.model,i._parse=function(a){return a+""},i.model&&i.model.fields&&(p=i.model.fields[i.field],p&&(j=p.type||"string",i._parse=g(p.parse,p))),d.values&&(j="enums"),q=q[j]||d.operators[j],i.form=a('<form class="k-filter-menu"/>'),i.form.html(c.template(j==="boolean"?l:m)({field:i.field,ns:c.ns,messages:d.messages,extra:d.extra,operators:q,type:j,values:o(d.values)})),d.appendToElement?(b.append(i.form),i.popup=i.element.closest(".k-popup").data(h)):(i.popup=i.form[h]({anchor:n,open:g(i._open,i)}).data(h),i.link=n),i.form.bind({submit:g(i._submit,i),reset:g(i._reset,i)}).find("["+c.attr("type")+"=number]").removeClass("k-textbox")[e]().end().find("["+c.attr("type")+"=date]").removeClass("k-textbox")[f](),i.refresh()},refresh:function(){var a=this,b=a.dataSource.filter()||{filters:[],logic:"and"};a.filterModel=c.observable({logic:"and",filters:[{field:a.field,operator:"eq",value:""},{field:a.field,operator:"eq",value:""}]}),c.bind(a.form,a.filterModel),a._bind(b)?a.link.addClass("k-state-active"):a.link.removeClass("k-state-active")},destroy:function(){c.unbind(this.form),this.form.remove(),this.form.removeData(h),this.link.unbind("click",this._clickHandler),this.element.removeData("kendoFilterMenu")},_bind:function(a){var b=this,c=a.filters,d,e,f=!1,g=0,h=b.filterModel,i,j;for(d=0,e=c.length;d<e;d++)j=c[d],j.field==b.field?(h.set("logic",a.logic),i=h.filters[g],i.set("value",b._parse(j.value)),i.set("operator",j.operator),g++,f=!0):j.filters&&(f=f||b._bind(j));return f},_merge:function(b){var c=this,d=b.logic||"and",e=b.filters,f,g=c.dataSource.filter()||{filters:[],logic:"and"},h,i;n(g,c.field),e=a.grep(e,function(a){return a.value!==""});for(h=0,i=e.length;h<i;h++)f=e[h],f.value=c._parse(f.value);e.length&&(g.filters.length?(b.filters=e,g.logic!=="and"&&(g.filters=[{logic:g.logic,filters:g.filters}],g.logic="and"),e.length>1?g.filters.push(b):g.filters.push(e[0])):(g.filters=e,g.logic=d));return g},filter:function(a){a=this._merge(a),a.filters.length&&this.dataSource.filter(a)},clear:function(){var b=this,c=b.dataSource.filter()||{filters:[]};c.filters=a.grep(c.filters,function(c){if(c.filters){c.filters=a.grep(c.filters,function(a){return a.field!=b.field});return c.filters.length}return c.field!=b.field}),c.filters.length||(c=null),b.dataSource.filter(c)},_submit:function(a){var b=this;a.preventDefault(),b.filter(b.filterModel.toJSON()),b.popup.close()},_reset:function(a){this.clear(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){var b;a(".k-filter-menu").not(this.form).each(function(){b=a(this).data(h),b&&b.close()})},options:{name:"FilterMenu",extra:!0,appendToElement:!1,type:"string",operators:{string:{eq:i,neq:j,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with"},number:{eq:i,neq:j,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"},date:{eq:i,neq:j,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before"},enums:{eq:i,neq:j}},messages:{info:"Show items with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",and:"And",or:"Or",selectValue:"-Select value-"}}});d.plugin(p)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function ba(a,b,d){var e=c.directions[b],f=d?c.directions[e.reverse]:e;return{direction:f,offset:-f.modifier*(f.vertical?a.outerHeight():a.outerWidth())}}function _(a,b){if(k){var c=a.css(M);if(c==C)return b=="scale"?1:0;var d=c.match(new RegExp(b+"\\s*\\(([\\d\\w\\.]+)")),e=0;d?e=Q(d[1]):(d=c.match(p)||[0,0,0,0,0],b=b.toLowerCase(),r.test(b)?e=parseFloat(d[3]/d[2]):b=="translatey"?e=parseFloat(d[4]/d[2]):b=="scale"?e=parseFloat(d[2]):b=="rotate"&&(e=parseFloat(Math.atan2(d[2],d[1]))));return e}return parseFloat(a.css(b))}function $(c,d,e){var f=[],g={},h,i,l,m,n;for(i in d)h=i.toLowerCase(),n=k&&v.indexOf(h)!=-1,!j.hasHW3D&&n&&w.indexOf(h)==-1?delete d[i]:(m=!1,a.isFunction(d[i])?(l=d[i](c,e),l!==b&&(m=l)):m=d[i],m!==!1&&(n?f.push(i+"("+m+")"):g[i]=m));f.length&&(g[M]=f.join(" "));return g}function Z(c,d,e){var f,g;for(f in d)a.isFunction(d[f])&&(g=d[f](c,e),g!==b?d[f]=g:delete d[f]);return d}function Y(a){for(var b in a)v.indexOf(b)!=-1&&w.indexOf(b)==-1&&delete a[b];return a}function X(a){var b=a.object,c=0;!a||(b.css(a.setup).css(L),b.css(a.CSS).css(M),i.mozilla&&(b.one(l.event,function(){W(b,a)}),c=50),b.data(I,setTimeout(W,a.duration+c,b,a)))}function W(a,b){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I)),a.css(L,"").css(L),a.dequeue(),b.complete.call(a)}function V(a){var b=[];for(var c in a)b.push(c);return b}function U(b){var d=b.effects,e;d==="zoom"&&(d="zoomIn fadeIn"),d==="slide"&&(d="slide:left"),d==="fade"&&(d="fadeIn"),d==="overlay"&&(d="slideIn:left"),/^overlay:(.+)$/.test(d)&&(d="slideIn:"+RegExp.$1),e=b.reverse&&/^(slide:)/.test(d),e&&delete b.reverse,b.effects=a.extend(c.parseEffects(d,e),{show:!0});return b}function T(a){a.effects.slideIn=a.effects.slide,delete a.effects.slide,delete a.complete;return a}function S(a,b){var c={};if(b){if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(a,"");e(b,function(a,b){c[b]=d.getPropertyValue(b)})}else if(a.currentStyle){var f=a.currentStyle;e(b,function(a,b){c[b]=f[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})]})}}else c=document.defaultView.getComputedStyle(a,"");return c}function R(a,b){return Q(a.css(b))}function Q(a){return parseInt(a,10)}var c=window.kendo,d=c.fx,e=a.each,f=a.extend,g=a.proxy,h=c.size,i=a.browser,j=c.support,k=j.transforms,l=j.transitions,m={scale:0,scalex:0,scaley:0,scale3d:0},n={translate:0,translatex:0,translatey:0,translate3d:0},o=typeof document.documentElement.style.zoom!="undefined"&&!k,p=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,q=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,r=/translatex?$/i,s=/(zoom|fade|expand)(\w+)/,t=/(zoom|fade|expand)/,u=/[xy]$/i,v=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],w=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],x={rotate:"deg",scale:"",skew:"px",translate:"px"},y=k.css,z=Math.round,A="",B="px",C="none",D="auto",E="width",F="height",G="hidden",H="origin",I="abortId",J="overflow",K="translate",L=y+"transition",M=y+"transform",N=y+"perspective",O=y+"backface-visibility";c.directions={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1}},f(a.fn,{kendoStop:function(a,b){return l?c.fx.stopQueue(this,a||!1,b||!1):this.stop(a,b)}});if(k&&!l){e(w,function(b,c){a.fn[c]=function(b){if(typeof b=="undefined")return _(this,c);var d=a(this)[0],e=c+"("+b+x[c.replace(u,"")]+")";d.style.cssText.indexOf(M)==-1?a(this).css(M,e):d.style.cssText=d.style.cssText.replace(new RegExp(c+"\\(.*?\\)","i"),e);return this},a.fx.step[c]=function(b){a(b.elem)[c](b.now)}});var P=a.fx.prototype.cur;a.fx.prototype.cur=function(){if(w.indexOf(this.prop)!=-1)return parseFloat(a(this.elem)[this.prop]());return P.apply(this,arguments)}}c.toggleClass=function(a,b,c,d){b&&(b=b.split(" "),l&&(c=f({exclusive:"all",duration:400,ease:"ease-out"},c),a.css(L,c.exclusive+" "+c.duration+"ms "+c.ease),setTimeout(function(){a.css(L,"").css(F)},c.duration)),e(b,function(b,c){a.toggleClass(c,d)}));return a},c.parseEffects=function(a,b){var d={};typeof a=="string"?e(a.split(" "),function(a,e){var f=!t.test(e),g=e.replace(s,function(a,b,c){return b+":"+c.toLowerCase()}),h=g.split(":"),i=h[1],j={};h.length>1&&(j.direction=b&&f?c.directions[i].reverse:i),d[h[0]]=j}):e(a,function(a){var e=this.direction;e&&b&&!t.test(a)&&(this.direction=c.directions[e].reverse),d[a]=this});return d},l&&f(c.fx,{transition:function(b,c,d){d=f({duration:200,ease:"ease-out",complete:null,exclusive:"all"},d),d.duration=a.fx?a.fx.speeds[d.duration]||d.duration:d.duration;var e=$(b,c,d),g={keys:V(e),CSS:e,object:b,setup:{},duration:d.duration,complete:d.complete};g.setup[L]=d.exclusive+" "+d.duration+"ms "+d.ease;var h=b.data("keys")||[];a.merge(h,g.keys),b.data("keys",a.unique(h)),X(g)},stopQueue:function(a,b,c){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I));var d=this,e,f=a.data("keys"),g=c===!1&&f;g&&(e=S(a[0],f)),a.css(L,"").css(L),g&&a.css(e),a.removeData("keys"),d.complete&&d.complete.call(a),a.stop(b);return a}}),c.fx.promise=function(b,d){var g=[],i;i=c.parseEffects(d.effects),d.effects=i,b.data("animating",!0);var j={keep:[],restore:[]},m={},n,p={setup:[],teardown:[]},q={},r=a.Deferred(function(g){if(h(i)){var o=f({},d,{complete:g.resolve});e(i,function(b,g){var h=c.fx[b];if(h){var i=c.directions[g.direction];g.direction&&i&&(g.direction=d.reverse?i.reverse:g.direction),o=f(!0,o,g),e(p,function(a){h[a]&&p[a].push(h[a])}),e(j,function(b){h[b]&&a.merge(j[b],h[b])}),h.css&&(m=f(m,h.css))}});if(p.setup.length){e(a.unique(j.keep),function(a,c){b.data(c)||b.data(c,b.css(c))}),d.show&&(m=f(m,{display:b.data("olddisplay")||"block"})),k&&!d.reset&&(m=Z(b,m,o),n=b.data("targetTransform"),n&&(m=f(n,m))),m=$(b,m,o),k&&!l&&(m=Y(m)),b.css(m).css(M),e(p.setup,function(){q=f(q,this(b,o))}),c.fx.animate&&(d.init(),b.data("targetTransform",q),c.fx.animate(b,q,o));return}}else d.show&&(b.css({display:b.data("olddisplay")||"block"}).css("display"),d.init());g.resolve()}).promise();g.push(r),a.when.apply(null,g).then(function(){b.removeData("animating").dequeue(),d.hide&&b.data("olddisplay",b.css("display")).hide();if(h(i)){var c=function(){e(a.unique(j.restore),function(a,c){b.css(c,b.data(c))})};c(),o&&!k&&setTimeout(c,0),e(p.teardown,function(){this(b,d)})}d.completeCallback&&d.completeCallback(b)})},c.fx.transitionPromise=function(a,b,d){c.fx.animateTo(a,b,d);return a},f(c.fx,{animate:function(c,g,h){var j=h.transition!==!1;delete h.transition,l&&"transition"in d&&j?d.transition(c,g,h):k?c.animate(Y(g),{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete}):c.each(function(){var c=a(this),d={};e(v,function(a,e){var h,i=g?g[e]+" ":null;if(i){var j=g;if(e in m&&g[e]!==b){h=i.match(q);if(o){var l=(1-h[1])/2;f(j,{zoom:+h[1],marginLeft:c.width()*l,marginTop:c.height()*l})}else k&&f(j,{scale:+h[0]})}else if(e in n&&g[e]!==b){var p=c.css("position"),r=p=="absolute"||p=="fixed";c.data(K)||(r?c.data(K,{top:R(c,"top")||0,left:R(c,"left")||0,bottom:R(c,"bottom"),right:R(c,"right")}):c.data(K,{top:R(c,"marginTop")||0,left:R(c,"marginLeft")||0}));var s=c.data(K);h=i.match(q);if(h){var t=e==K+"y"?+null:+h[1],u=e==K+"y"?+h[1]:+h[2];r?(isNaN(s.right)?isNaN(t)||f(j,{left:s.left+t}):isNaN(t)||f(j,{right:s.right-t}),isNaN(s.bottom)?isNaN(u)||f(j,{top:s.top+u}):isNaN(u)||f(j,{bottom:s.bottom-u})):(isNaN(t)||f(j,{marginLeft:s.left+t}),isNaN(u)||f(j,{marginTop:s.top+u}))}}!k&&e!="scale"&&e in j&&delete j[e],j&&f(d,j)}}),i.msie&&delete d.scale,c.animate(d,{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete})})},animateTo:function(b,c,d){function h(a){c[0].style.cssText="",b[0].style.cssText="",j.mobileOS.android||f.css(J,g),d.completeCallback&&d.completeCallback.call(b,a)}var e,f=b.parents().filter(c.parents()).first(),g;d=U(d),j.mobileOS.android||(g=f.css(J),f.css(J,"hidden")),a.each(d.effects,function(a,b){e=e||b.direction}),d.complete=i.msie?function(){setTimeout(h,0)}:h,d.reset=!0,"slide"in d.effects?(b.kendoAnimate(d),c.kendoAnimate(T(d))):(d.reverse?b:c).kendoAnimate(d)},fade:{keep:["opacity"],css:{opacity:function(a,b){var c=a[0].style.opacity;return b.effects.fade.direction=="in"&&(!c||c==1)?0:1}},restore:["opacity"],setup:function(a,b){return f({opacity:b.effects.fade.direction=="out"?0:1},b.properties)}},zoom:{css:{scale:function(a,b){var c=_(a,"scale");return b.effects.zoom.direction=="in"?c!=1?c:"0.01":1},zoom:function(a,c){var d=a[0].style.zoom;return c.effects.zoom.direction=="in"&&o?d?d:"0.01":b}},setup:function(a,b){var c=b.effects.zoom.direction=="out";if(o){var d=i.version,e=a[0].currentStyle,g=e.width.indexOf("%")!=-1?a.parent().width():a.width(),h=e.height.indexOf("%")!=-1?a.parent().height():Q(e.height),j=d<9&&b.effects.fade?0:(1-Q(a.css("zoom"))/100)/2;a.css({marginLeft:g*(d<8?0:j),marginTop:h*j})}return f({scale:c?.01:1},b.properties)}},slide:{setup:function(a,b){var c=b.reverse,d={},e=ba(a,b.effects.slide.direction,c),g=k&&b.transition!==!1?e.direction.transition:e.direction.property;e.offset/=-(b.divisor||1);if(!c){var h=a.data(H);!h&&h!==0&&a.data(H,_(a,g))}d[g]=c?a.data(H)||0:(a.data(H)||0)+e.offset+B;return f(d,b.properties)}},slideMargin:{setup:function(a,b){var c=a.data(H),d=b.offset,e,g={},h=b.reverse;!h&&!c&&c!==0&&a.data(H,parseFloat(a.css("margin-"+b.axis))),e=a.data(H)||0,g["margin-"+b.axis]=h?e:e+d;return f(g,b.properties)}},slideTo:{setup:function(a,b){var c=(b.offset+"").split(","),d={},e=b.reverse;k&&b.transition!==!1?(d.translatex=e?0:c[0],d.translatey=e?0:c[1]):(d.left=e?0:c[0],d.top=e?0:c[1]),a.css("left");return f(d,b.properties)}},slideIn:{css:{translatex:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatex"?(c.reverse?0:d.offset)+B:b},translatey:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatey"?(c.reverse?0:d.offset)+B:b}},setup:function(a,b){var c=b.reverse,d=ba(a,b.effects.slideIn.direction,c),e={};k&&b.transition!==!1?e[d.direction.transition]=(c?d.offset:0)+B:(c||a.css(d.direction.property,d.offset+B),e[d.direction.property]=(c?d.offset:0)+B,a.css(d.direction.property));return f(e,b.properties)}},expand:{keep:[J],css:{overflow:G},restore:[J],setup:function(a,c){var d=c.reverse,e=c.effects.expand.direction,g=(e?e=="vertical":!0)?F:E,h=a[0].style[g],i=a.data(g),j=parseFloat(i||h)||z(a.css(g,D)[g]()),k={};k[g]=(d?0:j)+B,a.css(g,d?j:0).css(g),i===b&&a.data(g,h);return f(k,c.properties)},teardown:function(a,b){var c=b.effects.expand.direction,d=(c?c=="vertical":!0)?F:E,e=a.data(d);(e==D||e===A)&&setTimeout(function(){a.css(d,D).css(d)},0)}},flip:{css:{rotatex:function(a,c){return c.effects.flip.direction=="vertical"?c.reverse?"180deg":"0deg":b},rotatey:function(a,c){return c.effects.flip.direction=="horizontal"?c.reverse?"180deg":"0deg":b}},setup:function(a,b){var d=b.effects.flip.direction=="horizontal"?"rotatey":"rotatex",e=b.reverse,g=a.parent(),h=b.degree,i=b.face,k=b.back,l=d+(e?"(180deg)":"(0deg)"),m=d+(e?"(0deg)":"(180deg)"),n={};j.hasHW3D?(g.css(N)==C&&g.css(N,500),a.css(y+"transform-style","preserve-3d"),i.css(O,G).css(M,l).css("z-index",e?0:-1),k.css(O,G).css(M,m).css("z-index",e?-1:0),n[d]=(e?"-":"")+(h?h:180)+"deg"):c.size(b.effects)==1&&(b.duration=0),i.show(),k.show();return f(n,b.properties)},teardown:function(b,c){c[c.reverse?"back":"face"].hide(),j.hasHW3D&&a().add(c.face).add(c.back).add(b).css(O,"")}},simple:{setup:function(a,b){return b.properties}}}),c.fx.expandVertical=c.fx.expand;var bb=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},bc=c.Class.extend({init:function(){var a=this;a._tickProxy=g(a._tick,a),a._started=!1},tick:a.noop,done:a.noop,onEnd:a.noop,onCancel:a.noop,start:function(){this._started=!0,bb(this._tickProxy)},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var a=this;!a._started||(a.tick(),a.done()?(a._started=!1,a.onEnd()):bb(a._tickProxy))}}),bd=bc.extend({init:function(a){var b=this;f(b,a),bc.fn.init.call(b)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,+(new Date)-this.startDate)},moveTo:function(a){var b=this,c=b.movable;b.initial=c[b.axis],b.delta=a.location-b.initial,b.duration=a.duration||300,b.tick=b._easeProxy(a.ease),b.startDate=+(new Date),b.start()},_easeProxy:function(a){var b=this;return function(){b.movable.moveAxis(b.axis,a(b.timePassed(),b.initial,b.delta,b.duration))}}});f(bd,{easeOutExpo:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeOutBack:function(a,b,c,d,e){e=1.70158;return c*((a=a/d-1)*a*((e+1)*a+e)+1)+b}}),d.Animation=bc,d.Transition=bd})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function bm(a,b){var c,d,e;if(typeof a===U&&a===b)return a;if(j(a)&&a.name===b)return a;if(n(a))for(c=0,d=a.length;c<d;c++){e=a[c];if(typeof e===U&&e===b||e.name===b)return e}return null}function bk(b,d,e,f){var g=b.find(">colgroup"),h,i=l(d,function(a){h=a.width;if(h&&parseInt(h,10)!==0)return c.format('<col style="width:{0}"/>',typeof h===U?h:h+"px");return"<col />"});(e||g.find(".k-hierarchy-col").length)&&i.splice(0,0,'<col class="k-hierarchy-col" />'),g.length&&g.remove(),g=a("<colgroup/>").append(a(Array(f+1).join('<col class="k-group-col">')+i.join(""))),b.prepend(g)}function bj(a){a=a||{};var b=a.style;b&&(a.style=b.replace(/((.*)?)(display\s*:\s*none)\s*;?/i,"$1"));return a}function bi(a){a=a||{};var b=a.style;b?(b=b.replace(/((.*)?display)(.*)?:([^;]*)/i,"$1:none"),b===a.style&&(b=b.replace(/(.*)?/i,"display:none;$1"))):b="display:none";return k({},a,{style:b})}function bh(a){return m(a,function(a){return!a.hidden})}function bg(a,b,c){var d,e,f,g;c=n(c)?c:[c];for(d=0,e=c.length;d<e;d++)f=c[d],j(f)&&f.click&&(g=f.name||f.text,b.on(Q,"a.k-grid-"+g,{commandName:g},p(f.click,a)))}function bf(a,b,c){var d=a.eq(b),e=a.eq(c);d[b>c?"insertBefore":"insertAfter"](e)}function be(a){var b,c,d={},e={};if(!r(a)){n(a)||(a=[a]);for(b=0,c=a.length;b<c;b++)d[a[b].aggregate]=0,e[a[b].field]=d}return e}function bd(b,c){a("th, th .k-grid-filter, th .k-link",b).add(document.body).css("cursor",c)}function bc(b){var c=0;a("> .k-grouping-header, > .k-grid-toolbar",b).each(function(){c+=this.offsetHeight});return c}function ba(a){var b,c=" ";if(a){if(typeof a===U)return a;for(b in a)c+=b+'="'+a[b]+'"'}return c}function _(a){return Array(a+1).join('<td class="k-group-cell"> </td>')}var c=window.kendo,d=c.ui,e=c.data.DataSource,f=d.Groupable,g=c.support.tbodyInnerHtml,h=d.Widget,i=c.keys,j=a.isPlainObject,k=a.extend,l=a.map,m=a.grep,n=a.isArray,o=a.inArray,p=a.proxy,q=a.isFunction,r=a.isEmptyObject,s=Math,t="requestStart",u="error",v="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer):visible",w=":not(.k-group-cell,.k-hierarchy-cell):visible",x="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer) > td:not(.k-group-cell,.k-hierarchy-cell)",y=v+">td"+w,z=y+":first",A="edit",B="save",C="remove",D="detailInit",E="change",F="columnHide",G="columnShow",H="saveChanges",I="dataBound",J="detailExpand",K="detailCollapse",L="k-state-focused",M="k-focusable",N="k-state-selected",O="columnResize",P="columnReorder",Q="click",R="height",S="tabIndex",T="function",U="string",V="Are you sure you want to delete this record?",W=/(\}|\#)/ig,X=3,Y=/#/ig,Z='<a class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',$=h.extend({init:function(a,b){var c=this;h.fn.init.call(c,a,b),c._refreshHandler=p(c.refresh,c),c.setDataSource(b.dataSource),c.wrap()},setDataSource:function(a){var b=this;b.dataSource&&b.dataSource.unbind(E,b._refreshHandler),b.dataSource=a,b.dataSource.bind(E,b._refreshHandler)},options:{name:"VirtualScrollable",itemHeight:a.noop},wrap:function(){var b=this,d=c.support.scrollbar()+1,e=b.element;e.css({width:"auto",paddingRight:d,overflow:"hidden"}),b.content=e.children().first(),b.wrapper=b.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll",p(b._wheelScroll,b)).bind("mousewheel",p(b._wheelScroll,b)),c.support.touch&&(b.drag=new c.Drag(b.wrapper,{global:!0,move:function(a){b.verticalScrollbar.scrollTop(b.verticalScrollbar.scrollTop()-a.y.delta),a.preventDefault()}})),b.verticalScrollbar=a('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:d}).appendTo(e).bind("scroll",p(b._scroll,b))},_wheelScroll:function(b){var c=this,d=c.verticalScrollbar.scrollTop(),e=b.originalEvent,f;b.preventDefault(),e.wheelDelta?f=e.wheelDelta:e.detail?f=-e.detail*10:a.browser.opera&&(f=-e.wheelDelta),c.verticalScrollbar.scrollTop(d+ -f)},_scroll:function(a){var b=this,c=a.currentTarget.scrollTop,d=b.dataSource,e=b.itemHeight,f=d.skip()||0,g=b._rangeStart||f,h=b.element.innerHeight(),i=!!(b._scrollbarTop&&b._scrollbarTop>c),j=s.max(s.floor(c/e),0),k=s.max(j+s.floor(h/e),0);b._scrollTop=c-g*e,b._scrollbarTop=c,b._fetch(j,k,i)||(b.wrapper[0].scrollTop=b._scrollTop)},_fetch:function(a,b,c){var d=this,e=d.dataSource,f=d.itemHeight,g=e.take(),h=d._rangeStart||e.skip()||0,i=s.floor(a/g)*g,j=!1,k=.33;a<h?(j=!0,h=s.max(0,b-g),d._scrollTop=(a-h)*f,d._page(h,g)):b>=h+g&&!c?(j=!0,h=a,d._scrollTop=f,d._page(h,g)):d._fetching||(a<i+g-g*k&&a>g&&e.prefetch(i-g,g),b>i+g*k&&e.prefetch(i+g,g));return j},_page:function(a,b){var d=this,e=d.dataSource;clearTimeout(d._timeout),d._fetching=!0,d._rangeStart=a,e.inRange(a,b)?e.range(a,b):(c.ui.progress(d.wrapper.parent(),!0),d._timeout=setTimeout(function(){e.range(a,b)},100))},refresh:function(){var a=this,b="",d=25e4,e=a.dataSource,f=a._rangeStart,g=c.support.scrollbar(),h=a.wrapper[0],i,j,k;c.ui.progress(a.wrapper.parent(),!1),clearTimeout(a._timeout),k=a.itemHeight=a.options.itemHeight()||0;var l=h.scrollWidth>h.offsetWidth?g:0;i=e.total()*k+l;for(j=0;j<s.floor(i/d);j++)b+='<div style="width:1px;height:'+d+'px"></div>';i%d&&(b+='<div style="width:1px;height:'+i%d+'px"></div>'),a.verticalScrollbar.html(b),h.scrollTop=a._scrollTop,a.drag&&a.drag.cancel(),f&&!a._fetching&&(a._rangeStart=e.skip()),a._fetching=!1}}),bb={create:{text:"Add new record",imageClass:"k-add",className:"k-grid-add",iconClass:"k-icon"},cancel:{text:"Cancel changes",imageClass:"k-cancel",className:"k-grid-cancel-changes",iconClass:"k-icon"},save:{text:"Save changes",imageClass:"k-update",className:"k-grid-save-changes",iconClass:"k-icon"},destroy:{text:"Delete",imageClass:"k-delete",className:"k-grid-delete",iconClass:"k-icon"},edit:{text:"Edit",imageClass:"k-edit",className:"k-grid-edit",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-update",className:"k-grid-update",iconClass:"k-icon"},canceledit:{text:"Cancel",imageClass:"k-cancel",className:"k-grid-cancel",iconClass:"k-icon"}},bl=h.extend({init:function(a,b){var d=this;b=n(b)?{dataSource:b}:b,h.fn.init.call(d,a,b),d._element(),d._columns(d.options.columns),d._dataSource(),d._tbody(),d._pageable(),d._thead(),d._groupable(),d._toolbar(),d._setContentHeight(),d._templates(),d._navigatable(),d._selectable(),d._details(),d._editable(),d._attachCustomCommandsEvent(),d.options.autoBind&&d.dataSource.fetch(),c.notify(d)},events:[E,"dataBinding",I,J,K,D,A,B,C,H,O,P,G,F],setDataSource:function(a){var b=this;b.options.dataSource=a,b._dataSource(),b._pageable(),b.options.groupable&&b._groupable(),b._thead(),b.virtualScrollable&&b.virtualScrollable.setDataSource(b.options.dataSource),b.options.autoBind&&a.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,filterable:!1,scrollable:!0,sortable:!1,selectable:!1,navigatable:!1,pageable:!1,editable:!1,groupable:!1,rowTemplate:"",altRowTemplate:"",dataSource:{},height:null,resizable:!1,reorderable:!1,columnMenu:!1},setOptions:function(a){var b=this;h.fn.setOptions.call(this,a),b._templates()},items:function(){return this.tbody.children(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")},_attachCustomCommandsEvent:function(){var a=this,b=a.columns||[],c,d,e;for(d=0,e=b.length;d<e;d++)c=b[d].command,c&&bg(a,a.wrapper,c)},_element:function(){var b=this,c=b.element;c.is("table")||(b.options.scrollable?c=b.element.find("> .k-grid-content > table"):c=b.element.children("table"),c.length||(c=a("<table />").appendTo(b.element))),b.table=c.attr("cellspacing",0),b._wrapper()},_positionColumnResizeHandle:function(b){var c=this,d=c.options.scrollable,e=c.resizeHandle,f;c.thead.on("mousemove","th:not(.k-group-cell,.k-hierarchy-cell)",function(g){var h=a(this),i=h.offset().left+this.offsetWidth;g.clientX>i-X&&g.clientX<i+X?(bd(c.wrapper,h.css("cursor")),e||(e=c.resizeHandle=a('<div class="k-resize-handle"/>'),b.append(e)),f=this.offsetWidth,h.prevAll().each(function(){f+=this.offsetWidth}),e.css({top:d?0:bc(c.wrapper),left:f-X,height:h.outerHeight(),width:X*3}).data("th",h).show()):(bd(c.wrapper,""),e&&e.hide())})},_resizable:function(){var b=this,c=b.options,d,e,f,g,h;c.resizable&&(d=c.scrollable?b.wrapper.find(".k-grid-header-wrap"):b.wrapper,b._positionColumnResizeHandle(d),d.kendoResizable({handle:".k-resize-handle",hint:function(c){return a('<div class="k-grid-resize-indicator" />').css({height:c.data("th").outerHeight()+b.tbody.attr("clientHeight")})},start:function(d){var i=a(d.currentTarget).data("th"),j=a.inArray(i[0],i.parent().children(":visible")),k=b.tbody.parent(),l=b.footer||a();bd(b.wrapper,i.css("cursor")),c.scrollable?h=b.thead.parent().find("col:eq("+j+")").add(k.children("colgroup").find("col:eq("+j+")")).add(l.find("colgroup").find("col:eq("+j+")")):h=k.children("colgroup").find("col:eq("+j+")"),e=d.x.location,f=i.outerWidth(),g=b.tbody.outerWidth()},resize:function(d){var i=f+d.x.location-e,j=b.footer||a();i>10&&(h.css("width",i),c.scrollable&&(b._footerWidth=g+d.x.location-e,b.tbody.parent().add(b.thead.parent()).add(j.find("table")).css("width",b._footerWidth)))},resizeend:function(c){var d=a(c.currentTarget).data("th"),e=d.outerWidth(),g;bd(b.wrapper,""),f!=e&&(g=b.columns[d.parent().find("th:not(.k-group-cell,.k-hierarchy-cell)").index(d)],g.width=e,b.trigger(O,{column:g,oldWidth:f,newWidth:e})),b.resizeHandle.hide()}}))},_draggable:function(){var b=this;b.options.reorderable&&(b._draggableInstance=b.thead.kendoDraggable({group:c.guid(),filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",hint:function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')}}).data("kendoDraggable"))},_reorderable:function(){var a=this;a.options.reorderable&&a.thead.kendoReorderable({draggable:a._draggableInstance,change:function(b){var c=bh(a.columns)[b.oldIndex];a.trigger(P,{newIndex:b.newIndex,oldIndex:b.oldIndex,column:c}),a.reorderColumn(b.newIndex,c)}})},reorderColumn:function(b,c){var d=this,e=a.inArray(c,d.columns),f=a.inArray(c,bh(d.columns)),g,h,i,j=d.footer||d.wrapper.find(".k-grid-footer");if(e!==b){d.columns.splice(e,1),d.columns.splice(b,0,c),d._templates(),bf(d.thead.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),d.options.scrollable&&bf(d.tbody.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(d.thead.find(".k-header:not(.k-group-cell,.k-hierarchy-cell)"),e,b),j&&j.length&&(bf(j.find(".k-grid-footer-wrap>table>colgroup>col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(j.find(".k-footer-template>td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)),g=d.tbody.children(":not(.k-grouping-row,.k-detail-row)");for(h=0,i=g.length;h<i;h+=1)bf(g.eq(h).find(">td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)}},cellIndex:function(b){return a(b).parent().find("td:not(.k-group-cell,.k-hierarchy-cell)").index(b)},_modelForContainer:function(b){b=a(b),!b.is("tr")&&this._editMode()!=="popup"&&(b=b.closest("tr"));var d=b.attr(c.attr("uid"));return this.dataSource.getByUid(d)},_editable:function(){var b=this,c=b.options.editable,d=function(){var c=document.activeElement,d=b._editContainer;d&&!a.contains(d[0],c)&&d[0]!==c&&!a(c).closest(".k-animation-container").length&&b.editable.end()&&b.closeCell()};if(c){var e=b._editMode();e==="incell"?c.update!==!1&&(b.wrapper.delegate("tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete))",Q,function(c){var d=a(this);d.closest("tbody")[0]===b.tbody[0]&&!a(c.target).is(":input")&&(b.editable?b.editable.end()&&(b.closeCell(),b.editCell(d)):b.editCell(d))}),b.wrapper.bind("focusin",function(a){clearTimeout(b.timer),b.timer=null}),b.wrapper.bind("focusout",function(a){b.timer=setTimeout(d,1)})):c.update!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",Q,function(c){c.preventDefault(),b.editRow(a(this).closest("tr"))}),c.destroy!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-delete",Q,function(c){c.preventDefault(),b.removeRow(a(this).closest("tr"))})}},editCell:function(a){var b=this,c=b.columns[b.cellIndex(a)],d=b._modelForContainer(a);d&&(!d.editable||d.editable(c.field))&&!c.command&&c.field&&(b._attachModelChange(d),b._editContainer=a,b.editable=a.addClass("k-edit-cell").kendoEditable({fields:{field:c.field,format:c.format,editor:c.editor,values:c.values},model:d,change:function(c){b.trigger(B,{values:c.values,container:a,model:d})&&c.preventDefault()}}).data("kendoEditable"),a.parent().addClass("k-grid-edit-row"),b.trigger(A,{container:a,model:d}))},_destroyEditable:function(){var a=this;a.editable&&(a._detachModelChange(),a.editable.destroy(),delete a.editable,a._editMode()==="popup"&&a._editContainer.data("kendoWindow").close(),a._editContainer=null)},_attachModelChange:function(a){var b=this;b._modelChangeHandler=function(a){b._modelChange({field:a.field,model:this})},a.bind("change",b._modelChangeHandler)},_detachModelChange:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b);c&&c.unbind(E,a._modelChangeHandler)},closeCell:function(){var b=this,d=b._editContainer.removeClass("k-edit-cell"),e=d.closest("tr").attr(c.attr("uid")),f=b.columns[b.cellIndex(d)],g=b.dataSource.getByUid(e);d.parent().removeClass("k-grid-edit-row"),b._destroyEditable(),b._displayCell(d,f,g),d.hasClass("k-dirty-cell")&&a('<span class="k-dirty"/>').prependTo(d)},_displayCell:function(a,b,d){var e=this,f={storage:{},count:0},g=k({},c.Template,e.options.templateSettings),h=c.template(e._cellTmpl(b,f),g);f.count>0&&(h=p(h,f.storage)),a.empty().html(h(d))},removeRow:function(b){var c=this,d,e;!c._confirmation()||(b=a(b).hide(),d=c._modelForContainer(b),d&&!c.trigger(C,{row:b,model:d})&&(c.dataSource.remove(d),e=c._editMode(),(e==="inline"||e==="popup")&&c.dataSource.sync()))},_editMode:function(){var a="incell",b=this.options.editable;b!==!0&&(typeof b=="string"?a=b:a=b.mode||a);return a},editRow:function(b){var c=this,d=c._modelForContainer(b),e=c._editMode(),f;c.cancelRow(),d&&(c._attachModelChange(d),e==="popup"?c._createPopupEditor(d):e==="inline"?c._createInlineEditor(b,d):e==="incell"&&a(b).children(w).each(function(){var b=a(this),e=c.columns[b.index()];d=c._modelForContainer(b);if(d&&(!d.editable||d.editable(e.field))&&e.field){c.editCell(b);return!1}}),f=c._editContainer,f.delegate("a.k-grid-cancel",Q,function(a){a.preventDefault(),c.cancelRow()}),f.delegate("a.k-grid-update",Q,function(a){a.preventDefault(),c.saveRow()}))},_createPopupEditor:function(b){var d=this,e="<div "+c.attr("uid")+'="'+b.uid+'"><div class="k-edit-form-container">',f,g,h=[],i,l,m,n,o,q,r=d.options.editable,s=j(r)?r.window:{},t=k({},c.Template,d.options.templateSettings);if(r.template){e+=c.template(window.unescape(r.template),t)(b);for(i=0,l=d.columns.length;i<l;i++)f=d.columns[i],f.command&&(g=bm(f.command,"edit"))}else for(i=0,l=d.columns.length;i<l;i++){f=d.columns[i];if(!f.command){e+='<div class="k-edit-label"><label for="'+f.field+'">'+(f.title||f.field||"")+"</label></div>";if((!b.editable||b.editable(f.field))&&f.field)h.push({field:f.field,format:f.format,editor:f.editor,values:f.values}),e+="<div "+c.attr("container-for")+'="'+f.field+'" class="k-edit-field"></div>';else{var u={storage:{},count:0};m=c.template(d._cellTmpl(f,u),t),u.count>0&&(m=p(m,u.storage)),e+='<div class="k-edit-field">'+m(b)+"</div>"}}else f.command&&(g=bm(f.command,"edit"))}g&&j(g)&&(g.text&&j(g.text)&&(n=g.text.update,o=g.text.cancel),g.attr&&(q=g.attr)),e+=d._createButton({name:"update",text:n,attr:q})+d._createButton({name:"canceledit",text:o,attr:q}),e+="</div></div>";var v=d._editContainer=a(e).appendTo(d.wrapper).eq(0).kendoWindow(k({modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1},s)),w=v.data("kendoWindow");w.wrapper.delegate(".k-i-close","click",function(){d.cancelRow()}),d.editable=d._editContainer.kendoEditable({fields:h,model:b,clearContainer:!1}).data("kendoEditable"),w.center().open(),d.trigger(A,{container:v,model:b})},_createInlineEditor:function(b,c){var d=this,e,f,g,h=[];b.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){f=a(this),e=d.columns[d.cellIndex(f)];if(!e.command&&e.field&&(!c.editable||c.editable(e.field)))h.push({field:e.field,format:e.format,editor:e.editor,values:e.values}),f.attr("data-container-for",e.field),f.empty();else if(e.command){g=bm(e.command,"edit");if(g){f.empty();var b,i,k;j(g)&&(g.text&&j(g.text)&&(b=g.text.update,i=g.text.cancel),g.attr&&(k=g.attr)),a(d._createButton({name:"update",text:b,attr:k})+d._createButton({name:"canceledit",text:i,attr:k})).appendTo(f)}}}),d._editContainer=b,d.editable=b.addClass("k-grid-edit-row").kendoEditable({fields:h,model:c,clearContainer:!1}).data("kendoEditable"),d.trigger(A,{container:b,model:c})},cancelRow:function(){var a=this,b=a._editContainer,d;b&&(d=a._modelForContainer(b),a.dataSource.cancelChanges(d),a._editMode()!=="popup"?a._displayRow(b):a._displayRow(a.items().filter("["+c.attr("uid")+"="+d.uid+"]")),a._destroyEditable())},saveRow:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b),d=a.editable;b&&d&&d.end()&&!a.trigger(B,{container:b,model:c})&&(a._editMode()!=="popup"&&a._displayRow(b),a._destroyEditable(),a.dataSource.sync())},_displayRow:function(b){var c=this,d=c._modelForContainer(b);d&&b.replaceWith(a((b.hasClass("k-alt")?c.altRowTemplate:c.rowTemplate)(d)))},_showMessage:function(a){return window.confirm(a)},_confirmation:function(){var a=this,b=a.options.editable,c=b===!0||typeof b===U?V:b.confirmation;return c!==!1&&c!=null?a._showMessage(c):!0},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var a=this;(a.editable&&a.editable.end()||!a.editable)&&!a.trigger(H)&&a.dataSource.sync()},addRow:function(){var a=this,b,d=a.dataSource,e=a._editMode(),f=a.options.editable.createAt||"",g=d.pageSize(),h=d.view()||[];if(a.editable&&a.editable.end()||!a.editable){e!="incell"&&a.cancelRow(),b=d.indexOf(h[0]),f.toLowerCase()=="bottom"&&(b+=h.length,g&&!d.options.serverPaging&&g<=h.length&&(b-=1)),b<0&&(b=0);var i=d.insert(b,{}),j=i.uid,k=a.table.find("tr["+c.attr("uid")+"="+j+"]"),l=k.children("td:not(.k-group-cell,.k-hierarchy-cell)").first();e!=="inline"&&e!=="popup"||!k.length?l.length&&a.editCell(l):a.editRow(k)}},_toolbar:function(){var b=this,d=b.wrapper,e=b.options.toolbar,f=b.options.editable,g,h;e&&(g=b.wrapper.find(".k-grid-toolbar"),g.length||(e=q(e)?e({}):typeof e===U?e:b._toolbarTmpl(e).replace(Y,"\\#"),h=p(c.template(e),b),g=a('<div class="k-toolbar k-grid-toolbar" />').html(h({})).prependTo(d)),f&&f.create!==!1&&g.delegate(".k-grid-add",Q,function(a){a.preventDefault(),b.addRow()}).delegate(".k-grid-cancel-changes",Q,function(a){a.preventDefault(),b.cancelChanges()}).delegate(".k-grid-save-changes",Q,function(a){a.preventDefault(),b.saveChanges()}))},_toolbarTmpl:function(a){var b=this,c,d,e="";if(n(a))for(c=0,d=a.length;c<d;c++)e+=b._createButton(a[c]);return e},_createButton:function(a){var b=a.template||Z,d=typeof a===U?a:a.name||a.text,e={className:"k-grid-"+d,text:d,imageClass:"",attr:"",iconClass:""};if(!d&&(!j(a)||!a.template))throw new Error("Custom commands should have name specified");j(a)?(a.className&&(a.className+=" "+e.className),d==="edit"&&j(a.text)&&(a=k(!0,{},a),a.text=a.text.edit),a.attr&&j(a.attr)&&(a.attr=ba(a.attr)),e=k(!0,e,bb[d],a)):e=k(!0,e,bb[d]);return c.template(b)(e)},_groupable:function(){var b=this,d=b.wrapper,e=b.options.groupable;b.groupable||b.table.delegate(".k-grouping-row .k-i-collapse, .k-grouping-row .k-i-expand",Q,function(c){var d=a(this),e=d.closest("tr");d.hasClass("k-i-collapse")?b.collapseGroup(e):b.expandGroup(e),c.preventDefault(),c.stopPropagation()}),e&&(d.has("div.k-grouping-header")[0]||a("<div />").addClass("k-grouping-header").html(" ").prependTo(d),b.groupable&&b.groupable.destroy(),b.groupable=new f(d,k({},e,{draggable:b._draggableInstance,groupContainer:">div.k-grouping-header",dataSource:b.dataSource,filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",allowDrag:b.options.reorderable})))},_selectable:function(){var a=this,b,d,e=a.options.selectable;e&&(b=typeof e===U&&e.toLowerCase().indexOf("multiple")>-1,d=typeof e===U&&e.toLowerCase().indexOf("cell")>-1,a.selectable=new c.ui.Selectable(a.table,{filter:">"+(d?x:"tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)"),multiple:b,change:function(){a.trigger(E)}}),a.options.navigatable&&a.wrapper.keydown(function(c){var e=a.current();c.keyCode===i.SPACEBAR&&c.target==a.wrapper[0]&&!e.hasClass("k-edit-cell")&&(c.preventDefault(),c.stopPropagation(),e=d?e:e.parent(),b?c.ctrlKey?e.hasClass(N)&&(e.removeClass(N),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(E)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},current:function(a){var c=this,d=c.options.scrollable,e=c._current;a!==b&&a.length&&(!e||e[0]!==a[0])&&(a.addClass(L),e&&e.removeClass(L),c._current=a,a.length&&d&&(c._scrollTo(a.parent()[0],c.content[0]),d.virtual?c._scrollTo(a[0],c.content.find(">.k-virtual-scrollable-wrap")[0]):c._scrollTo(a[0],c.content[0])));return c._current},_scrollTo:function(a,b){var c=a.tagName.toLowerCase()==="td",d=a[c?"offsetLeft":"offsetTop"],e=a[c?"offsetWidth":"offsetHeight"],f=b[c?"scrollLeft":"scrollTop"],g=b[c?"clientWidth":"clientHeight"],h=d+e;b[c?"scrollLeft":"scrollTop"]=f>d?d:h>f+g?h-g:f},_navigatable:function(){var b=this,c=b.wrapper,d=b.table.addClass(M),e=p(b.current,b),f="."+M+" "+y,g=a.browser,h=function(d){var f=a(d.currentTarget);f.closest("tbody")[0]===b.tbody[0]&&(e(f),a(d.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon,.k-input")||setTimeout(function(){c.focus()}),d.stopPropagation())};b.options.navigatable&&(c.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(L):e(b.table.find(z))},focusout:function(a){b._current&&b._current.removeClass(L),a.stopPropagation()},keydown:function(f){var h=f.keyCode,j=b.current(),k=f.shiftKey,l=b.dataSource,m=b.options.pageable,n=!a(f.target).is(":button,a,:input,a>.t-icon"),o=b._editMode()=="incell",p,q,r=!1;n&&i.UP===h?(e(j?j.parent().prevAll(v).last().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.DOWN===h?(e(j?j.parent().nextAll(v).first().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.LEFT===h?(e(j?j.prevAll(w+":first"):d.find(z)),r=!0):n&&i.RIGHT===h?(e(j?j.nextAll(":visible:first"):d.find(z)),r=!0):n&&m&&i.PAGEDOWN==h?(b._current=null,l.page(l.page()+1),r=!0):n&&m&&i.PAGEUP==h?(b._current=null,l.page(l.page()-1),r=!0):b.options.editable&&(j=j?j:d.find(z),i.ENTER==h||i.F2==h?(b._handleEditing(j),r=!0):i.TAB==h&&o?(q=k?j.prevAll(w+":first"):j.nextAll(":visible:first"),q.length||(q=j.parent()[k?"prevAll":"nextAll"]("tr:not(.k-grouping-row,.k-detail-row):visible").children(w+(k?":last":":first"))),q.length&&(b._handleEditing(j,q),r=!0)):i.ESC==h&&b._editContainer&&(b._editContainer.has(j[0])||j[0]===b._editContainer[0])&&(o?b.closeCell():(p=b.items().index(j.parent()),document.activeElement.blur(),b.cancelRow(),p>=0&&b.current(b.items().eq(p).children().filter(w).first())),g.msie&&parseInt(g.version,10)<9&&document.body.focus(),c.focus(),r=!0)),r&&(f.preventDefault(),f.stopPropagation())}}),c.delegate(f,"mousedown",h))},_handleEditing:function(b,c){var d=this,e=d._editMode(),f=d._editContainer,g,h;e=="incell"?h=b.hasClass("k-edit-cell"):h=b.parent().hasClass("k-grid-edit-row");if(d.editable){a.contains(f[0],document.activeElement)&&a(document.activeElement).blur();if(d.editable.end())e=="incell"?d.closeCell():(b.parent()[0]===f[0]?g=d.items().index(b.parent()):g=d.items().index(f),d.saveRow(),d.current(d.items().eq(g).children().filter(w).first()),h=!0);else{e=="incell"?d.current(f):d.current(f.children().filter(w).first()),f.find(":input:visible:first").focus();return}}c&&d.current(c),d.wrapper.focus();if(!h&&!c||c)e=="incell"?d.editCell(d.current()):d.editRow(d.current().parent())},_wrapper:function(){var a=this,b=a.table,c=a.options.height,d=a.element;d.is("div")||(d=d.wrap("<div/>").parent()),a.wrapper=d.addClass("k-grid k-widget").attr(S,s.max(b.attr(S)||0,0)),b.removeAttr(S),c&&(a.wrapper.css(R,c),b.css(R,"auto"))},_tbody:function(){var b=this,c=b.table,d;d=c.find(">tbody"),d.length||(d=a("<tbody/>").appendTo(c)),b.tbody=d},_scrollable:function(){var b=this,d,e,f=b.options,g=f.scrollable,h=c.support.scrollbar();if(g){d=b.wrapper.children(".k-grid-header"),d[0]||(d=a('<div class="k-grid-header" />').insertBefore(b.table)),d.css("padding-right",g.virtual?h+1:h),e=a('<table cellspacing="0" />'),e.append(b.thead),d.empty().append(a('<div class="k-grid-header-wrap" />').append(e)),b.content=b.table.parent(),b.content.is(".k-virtual-scrollable-wrap")&&(b.content=b.content.parent()),b.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(b.content=b.table.wrap('<div class="k-grid-content" />').parent()),g!==!0&&g.virtual&&!b.virtualScrollable&&(b.virtualScrollable=new $(b.content,{dataSource:b.dataSource,itemHeight:p(b._averageRowHeight,b)})),b.scrollables=d.children(".k-grid-header-wrap");if(g.virtual)b.content.find(">.k-virtual-scrollable-wrap").bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});else{b.content.bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});var i=c.touchScroller(b.content);i&&i.movable&&i.movable.bind("change",function(a){b.scrollables.scrollLeft(-a.sender.x)})}}},_setContentHeight:function(){var a=this,b=a.options,d=a.wrapper.innerHeight(),e=a.wrapper.children(".k-grid-header"),f=c.support.scrollbar();if(b.scrollable){d-=e.outerHeight(),a.pager&&(d-=a.pager.element.outerHeight()),b.groupable&&(d-=a.wrapper.children(".k-grouping-header").outerHeight()),b.toolbar&&(d-=a.wrapper.children(".k-grid-toolbar").outerHeight()),a.footerTemplate&&(d-=a.wrapper.children(".k-grid-footer").outerHeight());var g=function(a){var b,c;if(a[0].style.height)return!0;b=a.height(),a.height("auto"),c=a.height();if(b!=c){a.height("");return!0}a.height("");return!1};g(a.wrapper)&&(d>f*2?a.content.height(d):a.content.height(f*2+1))}},_averageRowHeight:function(){var a=this,b=a._rowHeight;a._rowHeight||(a._rowHeight=b=a.table.outerHeight()/a.table[0].rows.length,a._sum=b,a._measures=1);var c=a.table.outerHeight()/a.table[0].rows.length;b!==c&&(a._measures++,a._sum+=c,a._rowHeight=a._sum/a._measures);return b},_dataSource:function(){var a=this,c=a.options,d,f=c.dataSource;f=n(f)?{data:f}:f,j(f)&&(k(f,{table:a.table,fields:a.columns}),d=c.pageable,j(d)&&d.pageSize!==b&&(f.pageSize=d.pageSize)),a.dataSource&&a._refreshHandler?a.dataSource.unbind(E,a._refreshHandler).unbind(t,a._requestStartHandler).unbind(u,a._errorHandler):(a._refreshHandler=p(a.refresh,a),a._requestStartHandler=p(a._requestStart,a),a._errorHandler=p(a._error,a)),a.dataSource=e.create(f).bind(E,a._refreshHandler).bind(t,a._requestStartHandler).bind(u,a._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(b){var e=this,f=b.model,g=e.tbody.find("tr["+c.attr("uid")+"="+f.uid+"]"),h,i,j=g.hasClass("k-alt"),k,l,m;if(g.children(".k-edit-cell").length&&!e.options.rowTemplate)g.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){h=a(this),i=e.columns[e.cellIndex(h)],i.field===b.field&&(h.hasClass("k-edit-cell")?h.addClass("k-dirty-cell"):(e._displayCell(h,i,f),a('<span class="k-dirty"/>').prependTo(h)))});else if(!g.hasClass("k-grid-edit-row")){k=a((j?e.altRowTemplate:e.rowTemplate)(f)),g.replaceWith(k);for(l=0,m=e.columns.length;l<m;l++)i=e.columns[l],i.field===b.field&&(h=k.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(l),a('<span class="k-dirty"/>').prependTo(h));e.trigger("itemChange",{item:k,data:f,ns:d})}},_pageable:function(){var b=this,d,e=b.options.pageable;e&&(d=b.wrapper.children("div.k-grid-pager"),d.length||(d=a('<div class="k-pager-wrap k-grid-pager"/>').appendTo(b.wrapper)),b.pager&&b.pager.destroy(),typeof e=="object"&&e instanceof c.ui.Pager?b.pager=e:b.pager=new c.ui.Pager(d,k({},e,{dataSource:b.dataSource})))},_footer:function(){var b=this,c=b.dataSource.aggregates(),d="",e=b.footerTemplate,f=b.options,g;if(e){c=r(c)?be(b.dataSource.aggregate()):c,d=a(b._wrapFooter(e(c))),g=b.footer||b.wrapper.find(".k-grid-footer");if(g.length){var h=d;g.replaceWith(h),b.footer=h}else f.scrollable?b.footer=f.pageable?d.insertBefore(b.wrapper.children("div.k-grid-pager")):d.appendTo(b.wrapper):b.footer=d.insertBefore(b.tbody);if(f.scrollable){var i=!1;b.scrollables.each(function(){a(this).hasClass("k-grid-footer-wrap")&&(i=!0)}),i||(b.scrollables=b.scrollables.add(b.footer.children(".k-grid-footer-wrap")))}f.resizable&&b._footerWidth&&b.footer.find("table").css("width",b._footerWidth)}},_wrapFooter:function(b){var c=this,d="";if(c.options.scrollable){d=a('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table cellspacing="0"><tbody>'+b+"</tbody></table></div></div>"),c._appendCols(d.find("table"));return d}return'<tfoot class="k-grid-footer">'+b+"</tfoot>"},_columnMenu:function(){var b=this,d,e=b.columns,f,g=b.options,h=g.columnMenu,i,j,l,m;h&&(typeof h=="boolean"&&(h={}),b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(n){f=e[n],m=a(this),!f.command&&(f.field||m.attr("data-"+c.ns+"field"))&&(d=m.data("kendoColumnMenu"),d&&d.destroy(),j=f.sortable!==!1&&h.sortable!==!1?g.sortable:!1,l=g.filterable&&f.filterable!==!1&&h.filterable!==!1?k({},f.filterable,g.filterable):!1,i={dataSource:b.dataSource,values:f.values,columns:h.columns,sortable:j,filterable:l,messages:h.messages,owner:b},m.kendoColumnMenu(i))}))},_filterable:function(){var b=this,d=b.columns,e,f,g=b.options.filterable;g&&!b.options.columnMenu&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(h){e=a(this),d[h].filterable!==!1&&!d[h].command&&(d[h].field||e.attr("data-"+c.ns+"field"))&&(f=e.data("kendoFilterMenu"),f&&f.destroy(),e.kendoFilterMenu(k(!0,{},g,d[h].filterable,{dataSource:b.dataSource,values:d[h].values})))})},_sortable:function(){var b=this,d=b.columns,e,f=b.options.sortable;f&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(g){e=d[g],e.sortable!==!1&&!e.command&&e.field&&a(this).attr("data-"+c.ns+"field",e.field).kendoSortable(k({},f,{dataSource:b.dataSource}))})},_columns:function(b){var d=this,e=d.table,f,g=e.find("col"),h=d.options.dataSource;b=b.length?b:l(e.find("th"),function(b,d){b=a(b);var e=b.attr(c.attr("sortable")),f=b.attr(c.attr("filterable")),h=b.attr(c.attr("type")),i=b.attr(c.attr("groupable")),j=b.attr(c.attr("field")),k=b.attr(c.attr("menu"));j||(j=b.text().replace(/\s|[^A-z0-9]/g,""));return{field:j,type:h,sortable:e!=="false",filterable:f!=="false",groupable:i!=="false",menu:k,template:b.attr(c.attr("template")),width:g.eq(d).css("width")}}),f=!(d.table.find("tbody tr").length>0&&(!h||!h.transport)),d.columns=l(b,function(a){a=typeof a===U?{field:a}:a,a.hidden&&(a.attributes=bi(a.attributes),a.footerAttributes=bi(a.footerAttributes),a.headerAttributes=bi(a.headerAttributes));return k({encoded:f},a)})},_tmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f,g=d.columns.length,h,i={storage:{},count:0},j,l,m=d._hasDetails(),n=[],o=d.dataSource.group().length;if(!a){a="<tr",b&&n.push("k-alt"),m&&n.push("k-master-row"),n.length&&(a+=' class="'+n.join(" ")+'"'),g&&(a+=" "+c.attr("uid")+'="#=uid#"'),a+=">",o>0&&(a+=_(o)),m&&(a+='<td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#"></a></td>');for(f=0;f<g;f++)j=d.columns[f],h=j.template,l=typeof h,a+="<td"+ba(j.attributes)+">",a+=d._cellTmpl(j,i),a+="</td>";a+="</tr>"}a=c.template(a,e);if(i.count>0)return p(a,i.storage);return a},_headerCellText:function(a){var b=this,d=k({},c.Template,b.options.templateSettings),e=a.headerTemplate,f=typeof e,g=a.title||a.field||"";f===T?g=c.template(e,d)({}):f===U&&(g=e);return g},_cellTmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f=a.template,g=e.paramName,h="",i,l,m=a.format,o=typeof f,p=a.values;if(a.command){if(n(a.command)){for(i=0,l=a.command.length;i<l;i++)h+=d._createButton(a.command[i]);return h.replace(Y,"\\#")}return d._createButton(a.command).replace(Y,"\\#")}o===T?(b.storage["tmpl"+b.count]=f,h+="#=this.tmpl"+b.count+"("+g+")#",b.count++):o===U?h+=f:p&&p.length&&j(p[0])&&"value"in p[0]?(h+="#var v ="+c.stringify(p)+"#",h+="#for (var idx=0,length=v.length;idx<length;idx++) {#",h+="#if (v[idx].value == ",e.useWithBlock||(h+=g+"."),h+=a.field,h+=") { #",h+="${v[idx].text}",h+="#break;#",h+="#}#",h+="#}#"):(h+=a.encoded?"${":"#=",m&&(h+='kendo.format("'+m.replace(W,"\\$1")+'",'),e.useWithBlock||(h+=g+"."),h+=a.field,m&&(h+=")"),h+=a.encoded?"}":"#");return h},_templates:function(){var b=this,c=b.options,d=b.dataSource,e=d.group(),f=d.aggregate();b.rowTemplate=b._tmpl(c.rowTemplate),b.altRowTemplate=b._tmpl(c.altRowTemplate||c.rowTemplate,!0),b._hasDetails()&&(b.detailTemplate=b._detailTmpl(c.detailTemplate||""));if(!r(f)||m(b.columns,function(a){return a.footerTemplate}).length)b.footerTemplate=b._footerTmpl(f,"footerTemplate","k-footer-template");e.length&&m(b.columns,function(a){return a.groupFooterTemplate}).length&&(f=a.map(e,function(a){return a.aggregates}),b.groupFooterTemplate=b._footerTmpl(f,"groupFooterTemplate","k-group-footer"))},_footerTmpl:function(a,b,d){var e=this,f=k({},c.Template,e.options.templateSettings),g=f.paramName,h="",i,j,l=e.columns,m,n,o={},q=0,r={},s=e.dataSource,t=s.group().length,u=be(a),v;h+='<tr class="'+d+'">',t>0&&(h+=_(t)),e._hasDetails()&&(h+='<td class="k-hierarchy-cell"> </td>');for(i=0,j=e.columns.length;i<j;i++)v=l[i],m=v[b],n=typeof m,h+="<td"+ba(v.footerAttributes)+">",m?(n!==T&&(r=u[v.field]?k({},f,{paramName:g+"."+v.field}):{},m=c.template(m,r)),o["tmpl"+q]=m,h+="#=this.tmpl"+q+"("+g+")#",q++):h+=" ",h+="</td>";h+="</tr>",h=c.template(h,f);if(q>0)return p(h,o);return h},_detailTmpl:function(a){var b=this,d="",e=k({},c.Template,b.options.templateSettings),f=e.paramName,g={},h=0,i=b.dataSource.group().length,j=bh(b.columns).length,l=typeof a;d+='<tr class="k-detail-row">',i>0&&(d+=_(i)),d+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(j?' colspan="'+j+'"':"")+">",l===T?(g["tmpl"+h]=a,d+="#=this.tmpl"+h+"("+f+")#",h++):d+=a,d+="</td></tr>",d=c.template(d,e);if(h>0)return p(d,g);return d},_hasDetails:function(){var a=this;return a.options.detailTemplate!==b||(a._events[D]||[]).length},_details:function(){var b=this;b.table.delegate(".k-hierarchy-cell .k-plus, .k-hierarchy-cell .k-minus",Q,function(c){var d=a(this),e=d.hasClass("k-plus"),f=d.closest("tr.k-master-row"),g,h=b.detailTemplate,i,j=b._hasDetails();d.toggleClass("k-plus",!e).toggleClass("k-minus",e),j&&!f.next().hasClass("k-detail-row")&&(i=b.dataItem(f),a(h(i)).addClass(f.hasClass("k-alt")?"k-alt":"").insertAfter(f),b.trigger(D,{masterRow:f,detailRow:f.next(),data:i,detailCell:f.next().find(".k-detail-cell")})),g=f.next(),b.trigger(e?J:K,{masterRow:f,detailRow:g}),g.toggle(e),c.preventDefault();return!1})},dataItem:function(b){return this._data[this.tbody.find("> tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)").index(a(b))]},expandRow:function(b){a(b).find("> td .k-plus, > td .k-i-expand").click()},collapseRow:function(b){a(b).find("> td .k-minus, > td .k-i-collapse").click()},_thead:function(){var d=this,e=d.columns,f=d._hasDetails()&&e.length,g,h,i="",j=d.table.find(">thead"),k,l,m;j.length||(j=a("<thead/>").insertBefore(d.tbody)),k=d.element.find("tr:has(th):first"),k.length||(k=j.children().first(),k.length||(k=a("<tr/>")));if(!k.children().length){f&&(i+='<th class="k-hierarchy-cell"> </th>');for(g=0,h=e.length;g<h;g++)m=e[g],l=d._headerCellText(m),m.command?i+="<th"+ba(m.headerAttributes)+">"+l+"</th>":(i+="<th "+c.attr("field")+"='"+(m.field||"")+"' ",m.title&&(i+=c.attr("title")+'="'+m.title.replace(/'/g,"'")+'" '),m.groupable!==b&&(i+=c.attr("groupable")+"='"+m.groupable+"' "),m.aggregates&&(i+=c.attr("aggregates")+"='"+m.aggregates+"'"),i+=ba(m.headerAttributes),i+=">"+l+"</th>");k.html(i)}else f&&!k.find(".k-hierarchy-cell")[0]&&k.prepend('<th class="k-hierarchy-cell"> </th>');k.find("th").addClass("k-header"),d.options.scrollable||j.addClass("k-grid-header"),k.appendTo(j),d.thead=j,d._sortable(),d._filterable(),d._scrollable(),d._updateCols(),d._resizable(),d._draggable(),d._reorderable(),d._columnMenu()},_updateCols:function(){var a=this;a._appendCols(a.thead.parent().add(a.table))},_appendCols:function(a){var b=this;bk(a,bh(b.columns),b._hasDetails(),b.dataSource.group().length)},_autoColumns:function(a){if(a&&a.toJSON){var b=this,c;a=a.toJSON();for(c in a)b.columns.push({field:c});b._thead(),b._templates()}},_rowsHtml:function(a){var b=this,c="",d,e,f=b.rowTemplate,g=b.altRowTemplate;for(d=0,e=a.length;d<e;d++)d%2?c+=g(a[d]):c+=f(a[d]),b._data.push(a[d]);return c},_groupRowHtml:function(a,b,d){var e=this,f="",g,h,i=a.field,j=m(e.columns,function(a){return a.field==i})[0]||{},l=j.format?c.format(j.format,a.value):a.value,n=j.groupHeaderTemplate,o=(j.title||i)+": "+l,p=k({},{field:a.field,value:a.value},a.aggregates[a.field]),q=a.items;n&&(o=typeof n===T?n(p):c.template(n)(p)),f+='<tr class="k-grouping-row">'+_(d)+'<td colspan="'+b+'">'+'<p class="k-reset">'+'<a class="k-icon k-i-collapse" href="#"></a>'+o+"</p></td></tr>";if(a.hasSubgroups)for(g=0,h=q.length;g<h;g++)f+=e._groupRowHtml(q[g],b-1,d+1);else f+=e._rowsHtml(q);e.groupFooterTemplate&&(f+=e.groupFooterTemplate(a.aggregates));return f},collapseGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-expand").removeClass("k-i-collapse").end();var c=b.find(".k-group-cell").length,d=1,e,f;b.nextAll("tr").each(function(){f=a(this),e=f.find(".k-group-cell").length,f.hasClass("k-grouping-row")?d++:f.hasClass("k-group-footer")&&d--;if(e<=c||f.hasClass("k-group-footer")&&d<0)return!1;f.hide()})},expandGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-collapse").removeClass("k-i-expand").end();var c=this,d=b.find(".k-group-cell").length,e,f,g=1;b.nextAll("tr").each(function(){e=a(this),f=e.find(".k-group-cell").length;if(f<=d)return!1;f==d+1&&!e.hasClass("k-detail-row")&&(e.show(),e.hasClass("k-grouping-row")&&e.find(".k-icon").hasClass("k-i-collapse")&&c.expandGroup(e),e.hasClass("k-master-row")&&e.find(".k-icon").hasClass("k-minus")&&e.next().show()),e.hasClass("k-grouping-row")&&g++,e.hasClass("k-group-footer")&&(g==1?e.show():g--)})},_updateHeader:function(b){var c=this,d=c.thead.find("th.k-group-cell"),e=d.length;b>e?a(Array(b-e+1).join('<th class="k-group-cell k-header"> </th>')).prependTo(c.thead.find("tr")):b<e&&(e=e-b,a(m(d,function(a,b){return e>b})).remove())},_firstDataItem:function(a,b){a&&b&&(a.hasSubgroups?a=this._firstDataItem(a.items[0],b):a=a.items[0]);return a},hideColumn:function(b){var c=this,d,e,f,g,h,i,j=0,k,l=c.footer||c.wrapper.find(".k-grid-footer"),n=c.columns,p;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!b.hidden){p=o(b,bh(n)),b.hidden=!0,b.attributes=bi(b.attributes),b.footerAttributes=bi(b.footerAttributes),b.headerAttributes=bi(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide(),l&&(c._appendCols(l.find("table:first")),l.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide()),d=c.tbody.children();for(g=0,k=d.length;g<k;g+=1)e=d.eq(g),e.is(".k-grouping-row,.k-detail-row")?(f=e.children(":not(.k-group-cell):first,.k-detail-cell").last(),f.attr("colspan",parseInt(f.attr("colspan"),10)-1)):(e.hasClass("k-grid-edit-row")&&(f=e.children(".k-edit-container")[0])&&(f=a(f),f.attr("colspan",parseInt(f.attr("colspan"),10)-1),f.find("col").eq(p).remove(),e=f.find("tr:first")),e.children(":not(.k-group-cell,.k-hierarchy-cell):visible").eq(p).hide());h=c.thead.prev().find("col");for(g=0,k=h.length;g<k;g+=1){i=h[g].style.width;if(i&&i.indexOf("%")==-1)j+=parseInt(i,10);else{j=0;break}}j&&a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table).width(j),c.trigger(F,{column:b})}},showColumn:function(b){var c=this,d,e,f,g,h,i,j,k,l,n=c.columns,p=c.footer||c.wrapper.find(".k-grid-footer"),q;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!!b.hidden){q=o(b,n),b.hidden=!1,b.attributes=bj(b.attributes),b.footerAttributes=bj(b.footerAttributes),b.headerAttributes=bj(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show(),p&&(c._appendCols(p.find("table:first")),p.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show()),d=c.tbody.children();for(e=0,f=d.length;e<f;e+=1)g=d.eq(e),g.is(".k-grouping-row,.k-detail-row")?(h=g.children(":not(.k-group-cell):first,.k-detail-cell").last(),h.attr("colspan",parseInt(h.attr("colspan"),10)+1)):(g.hasClass("k-grid-edit-row")&&(h=g.children(".k-edit-container")[0])&&(h=a(h),h.attr("colspan",parseInt(h.attr("colspan"),10)+1),bk(h.find(">form>table"),bh(n),!1,0),g=h.find("tr:first")),g.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(q).show());i=a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table);if(!b.width)i.width("");else{j=0,l=c.thead.prev().find("col");for(e=0,f=l.length;e<f;e+=1){k=l[e].style.width;if(k.indexOf("%")>-1){j=0;break}j+=parseInt(k,10)}j&&i.width(j)}c.trigger(G,{column:b})}},_progress:function(a){var b=this,d=b.element.is("table")?b.element.parent():b.content&&b.content.length?b.content:b.element;c.ui.progress(d,a)},refresh:function(b){var c=this,d,e,f="",h=c.dataSource.view(),i,j,k,l=c.current(),m=(c.dataSource.group()||[]).length,n=m+bh(c.columns).length;if(!b||b.action!=="itemchange"||!c.editable){c.trigger("dataBinding"),l&&l.hasClass("k-state-focused")&&(k=c.items().index(l.parent())),c._destroyEditable(),c._progress(!1),c._data=[],c.columns.length||(c._autoColumns(c._firstDataItem(h[0],m)),n=m+c.columns.length),c._group=m>0||c._group,c._group&&(c._templates(),c._updateCols(),c._updateHeader(m),c._group=m>0);if(m>0){c.detailTemplate&&n++;for(e=0,d=h.length;e<d;e++)f+=c._groupRowHtml(h[e],n,0)}else f+=c._rowsHtml(h);g?c.tbody[0].innerHTML=f:(j=document.createElement("div"),j.innerHTML="<table><tbody>"+f+"</tbody></table>",i=j.firstChild.firstChild,c.table[0].replaceChild(i,c.tbody[0]),c.tbody=a(i)),c._footer(),c._setContentHeight(),k>=0&&c.current(c.items().eq(k).children().filter(w).first()),c.trigger(I)}}});d.plugin(bl),d.plugin($)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function j(a){return a.position().top+3}var c=window.kendo,d=c.ui.Widget,e=a.proxy,f=c.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-si-arrow-${(data.dir || "asc") == "asc" ? "n" : "s"}">(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})</span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-button-bare"><span class="k-icon k-group-delete"></span></a></div>',{useWithBlock:!1}),g=function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')},h=a('<div class="k-grouping-dropclue"/>'),i=/(\[|\]|\$|\.|\:|\+)/g,k=d.extend({init:function(b,f){var i=this,k,l=c.guid(),m=e(i._intializePositions,i),n,o=i._dropCuePositions=[];d.fn.init.call(i,b,f),n=i.options.draggable||new c.ui.Draggable(i.element,{filter:i.options.filter,hint:g,group:l}),k=i.groupContainer=a(i.options.groupContainer,i.element).kendoDropTarget({group:n.options.group,dragenter:function(a){i._canDrag(a.draggable.currentTarget)&&(a.draggable.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"),h.css({top:j(k),left:0}).appendTo(k))},dragleave:function(a){a.draggable.hint.find(".k-drag-status").removeClass("k-add").addClass("k-denied"),h.remove()},drop:function(b){var d=b.draggable.currentTarget,e=d.attr(c.attr("field")),f=d.attr(c.attr("title")),g=i.indicator(e),j=i._dropCuePositions,k=j[j.length-1],l;if(!!d.hasClass("k-group-indicator")||!!i._canDrag(d))k?(l=i._dropCuePosition(h.offset().left+parseInt(k.element.css("marginLeft"),10)+parseInt(k.element.css("marginRight"),10)),l&&i._canDrop(a(g),l.element,l.left)&&(l.before?l.element.before(g||i.buildIndicator(e,f)):l.element.after(g||i.buildIndicator(e,f)),i._change())):(i.groupContainer.append(i.buildIndicator(e,f)),i._change())}}).kendoDraggable({filter:"div.k-group-indicator",hint:g,group:n.options.group,dragcancel:e(i._dragCancel,i),dragstart:function(a){var b=a.currentTarget,c=parseInt(b.css("marginLeft"),10),d=b.position().left-c;m(),h.css({top:j(k),left:d}).appendTo(k),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add")},dragend:function(){i._dragEnd(this)},drag:e(i._drag,i)}).delegate(".k-button","click",function(b){b.preventDefault(),i._removeIndicator(a(this).parent())}).delegate(".k-link","click",function(b){var d=a(this).parent(),e=i.buildIndicator(d.attr(c.attr("field")),d.attr(c.attr("title")),d.attr(c.attr("dir"))=="asc"?"desc":"asc");d.before(e).remove(),i._change(),b.preventDefault()}),n.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){i._dragEnd(this)},dragcancel:e(i._dragCancel,i),dragstart:function(a){var b,c,d;!i.options.allowDrag&&!i._canDrag(a.currentTarget)?a.preventDefault():(m(),o.length?(b=o[o.length-1].element,c=parseInt(b.css("marginRight"),10),d=b.position().left+b.outerWidth()+c):d=0)},drag:e(i._drag,i)}),i.dataSource=i.options.dataSource,i.dataSource&&(i._refreshHandler=e(i.refresh,i),i.dataSource.bind("change",i._refreshHandler))},refresh:function(){var b=this,d=b.dataSource;b.groupContainer.empty().append(a.map(d.group()||[],function(a){var d=a.field.replace(i,"\\$1"),e=b.element.find(b.options.filter).filter("["+c.attr("field")+"="+d+"]");return b.buildIndicator(a.field,e.attr(c.attr("title")),a.dir)}).join("")),b._invalidateGroupContainer()},destroy:function(){var a=this;a.dataSource&&a._refreshHandler&&a.dataSource.unbind("change",a._refreshHandler)},options:{name:"Groupable",filter:"th",messages:{empty:"Drag a column header and drop it here to group by that column"}},indicator:function(b){var d=a(".k-group-indicator",this.groupContainer);return a.grep(d,function(d){return a(d).attr(c.attr("field"))===b})[0]},buildIndicator:function(a,b,d){return f({field:a,dir:d,title:b,ns:c.ns})},descriptors:function(){var b=this,d=a(".k-group-indicator",b.groupContainer),e,f,g,h,i;e=b.element.find(b.options.filter).map(function(){var b=a(this),d=b.attr(c.attr("aggregates")),e=b.attr(c.attr("field"));if(d&&d!==""){f=d.split(","),d=[];for(h=0,i=f.length;h<i;h++)d.push({field:e,aggregate:f[h]})}return d}).toArray();return a.map(d,function(b){b=a(b),g=b.attr(c.attr("field"));return{field:g,dir:b.attr(c.attr("dir")),aggregates:e||[]}})},_removeIndicator:function(a){var b=this;a.remove(),b._invalidateGroupContainer(),b._change()},_change:function(){var a=this;a.dataSource&&a.dataSource.group(a.descriptors())},_dropCuePosition:function(b){var c=this._dropCuePositions;if(!!h.is(":visible")&&c.length!==0){b=Math.ceil(b);var d=c[c.length-1],e=d.right,f=parseInt(d.element.css("marginLeft"),10),g=parseInt(d.element.css("marginRight"),10);b>=e?b={left:d.element.position().left+d.element.outerWidth()+g,element:d.element,before:!1}:(b=a.grep(c,function(a){return a.left<=b&&b<=a.right})[0],b&&(b={left:b.element.position().left-f,element:b.element,before:!0}));return b}},_drag:function(a){var b=c.touchLocation(a),d=this._dropCuePosition(b.x);d&&h.css({left:d.left})},_canDrag:function(a){return a.attr(c.attr("groupable"))!="false"&&(a.hasClass("k-group-indicator")||!this.indicator(a.attr(c.attr("field"))))},_canDrop:function(a,b,c){var d=a.next();return a[0]!==b[0]&&(!d[0]||b[0]!==d[0]||c>d.position().left)},_dragEnd:function(b){var d=this,e=b.currentTarget.attr(c.attr("field")),f=d.indicator(e);b!==d.options.draggable&&!b.dropped&&f&&d._removeIndicator(a(f)),d._dragCancel()},_dragCancel:function(){h.remove(),this._dropCuePositions=[]},_intializePositions:function(){var b=this,c=a(".k-group-indicator",b.groupContainer),d;b._dropCuePositions=a.map(c,function(b){b=a(b),d=b.offset().left;return{left:parseInt(d,10),right:parseInt(d+b.outerWidth(),10),element:b}})},_invalidateGroupContainer:function(){var a=this.groupContainer;a.is(":empty")&&a.html(this.options.messages.empty)}});c.ui.plugin(k)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function y(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){y(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e=d.Widget,f=c.keys,g=c.support.touch,h="id",i="li",j=g?"touchend":"click",k="change",l="character",m="k-state-focused",n="k-state-hover",o="k-loading",p="open",q="close",r="select",s="selected",t=a.extend,u=a.proxy,v=a.browser.msie&&parseInt(a.browser.version,10)<9,w=/"/g,x=e.extend({init:function(b,d){var f=this,g,k;e.fn.init.call(f,b,d),f._template(),f.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(i,"mouseenter",function(){a(this).addClass(n)}).delegate(i,"mouseleave",function(){a(this).removeClass(n)}).delegate(i,j,u(f._click,f)),f.list=k=a("<div class='k-list-container'/>").append(f.ul).mousedown(function(a){a.preventDefault()}),g=f.element.attr(h),g&&k.attr(h,g+"-list"),a(document.documentElement).bind("mousedown",u(f._mousedown,f))},items:function(){return this.ul[0].children},current:function(a){var c=this;if(a!==b)c._current&&c._current.removeClass(m),a&&(a.addClass(m),c._scroll(a)),c._current=a;else return c._current},dataItem:function(a){var c=this;a===b&&(a=c.selectedIndex);return c._data()[a]},_accessors:function(){var a=this,b=a.element,d=a.options,e=c.getter,f=b.attr(c.attr("text-field")),g=b.attr(c.attr("value-field"));f&&(d.dataTextField=f),g&&(d.dataValueField=g),a._text=e(d.dataTextField),a._value=e(d.dataValueField)},_blur:function(){var a=this;a._change(),a.close()},_change:function(){var a=this,c=a.selectedIndex,d=a.value(),e;d!==a._old?e=!0:c!==b&&c!==a._oldIndex&&(e=!0),e&&(a._old=d,a._oldIndex=c,a.trigger(k),a.element.trigger(k))},_click:function(b){b.isDefaultPrevented()||(this._accept(a(b.currentTarget)),b.type==="touchend"&&b.preventDefault())},_data:function(){return this.dataSource.view()},_enable:function(){var a=this,b=a.options;a.element.prop("disabled")&&(b.enable=!1),a.enable(b.enable)},_focus:function(a){var b=this;b.popup.visible()&&a&&b.trigger(r,{item:a})?b.close():(b._select(a),b._blur())},_height:function(a){if(a){var b=this,c=b.list,d=b.popup.visible(),e=b.options.height;c=c.add(c.parent(".k-animation-container")).show().height(b.ul[0].scrollHeight>e?e:"auto"),d||c.hide()}},_adjustListWidth:function(){var b=this.list,c=b[0].style.width,d=this.wrapper,e,f;c||(e=window.getComputedStyle?window.getComputedStyle(d[0],null):0,f=e?parseFloat(e.width):d.outerWidth(),e&&(a.browser.mozilla||a.browser.msie)&&(f+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),c=f-(b.outerWidth()-b.width())),b.css({fontFamily:d.css("font-family"),width:c});return!0},_popup:function(){var a=this,b=a.list,e=a.options,f=a.wrapper,g=!1;a.popup=new d.Popup(b,t({},e.popup,{anchor:f,open:function(b){g||(g=a._adjustListWidth()),a.trigger(p)&&b.preventDefault()},close:function(b){a.trigger(q)&&b.preventDefault()},animation:e.animation})),a._touchScroller=c.touchScroller(a.popup.element)},_makeUnselectable:function(a){v&&this.list.find("*").attr("unselectable","on")},_toggleHover:function(b){g||a(b.currentTarget).toggleClass(n,b.type==="mouseenter")},_toggle:function(a){var c=this;a=a!==b?a:!c.popup.visible(),!g&&c._focused[0]!==document.activeElement&&c._focused.focus(),c[a?p:q]()},_scroll:function(a){if(!!a){a[0]&&(a=a[0]);var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},_template:function(){var a=this,b=a.options,d=b.template,e=b.dataSource;a.element.is(r)&&a.element[0].length&&(e||(b.dataTextField=b.dataTextField||"text",b.dataValueField=b.dataValueField||"value")),d?(d=c.template(d),a.template=function(a){return'<li unselectable="on" class="k-item">'+d(a)+"</li>"}):a.template=c.template('<li unselectable="on" class="k-item">${data'+(b.dataTextField?".":"")+b.dataTextField+"}</li>",{useWithBlock:!1})}});t(x,{caret:function(a){var b,c=a.ownerDocument.selection;c?b=Math.abs(c.createRange().moveStart(l,-a.value.length)):b=a.selectionStart;return b},selectText:function(a,b,c){try{if(a.createTextRange){a.focus();var d=a.createTextRange();d.collapse(!0),d.moveStart(l,b),d.moveEnd(l,c-b),d.select()}else a.setSelectionRange(b,c)}catch(e){}},inArray:function(a,b){var c,d,e=b.children;if(!a||a.parentNode!==b)return-1;for(c=0,d=e.length;c<d;c++)if(a===e[c])return c;return-1}}),c.ui.List=x,d.Select=x.extend({init:function(a,b){x.fn.init.call(this,a,b)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&this._selectItem()},close:function(){this.popup.close()},_accessor:function(a,c){var d=this.element,e=d.is(r),f,g;d=d[0];if(a===b){e?(g=d.selectedIndex,g>-1&&(f=d.options[g],f&&(a=f.value))):a=d.value;return a}e?d.selectedIndex=c:d.value=a},_hideBusy:function(){var a=this;clearTimeout(a._busy),a._arrow.removeClass(o),a._busy=null},_showBusy:function(){var a=this;a._busy||(a._busy=setTimeout(function(){a._arrow.addClass(o)},100))},_dataSource:function(){var b=this,d=b.element,e=b.options,f=e.dataSource||{},g;f=a.isArray(f)?{data:f}:f,d.is(r)&&(g=d[0].selectedIndex,g>-1&&(e.index=g),f.select=d,f.fields=[{field:e.dataTextField},{field:e.dataValueField}]),b.dataSource&&b._refreshHandler?b.dataSource.unbind(k,b._refreshHandler).unbind("requestStart",b._requestStartHandler):(b._refreshHandler=u(b.refresh,b),b._requestStartHandler=u(b._showBusy,b)),b.dataSource=c.data.DataSource.create(f).bind(k,b._refreshHandler).bind("requestStart",b._requestStartHandler)},_index:function(a){var c=this,d,e,f=c._data(),g;for(d=0,e=f.length;d<e;d++){g=c._value(f[d]),g===b&&(g=c._text(f[d]));if(g==a)return d}return-1},_get:function(b){var c=this,d=c._data(),e,f;if(typeof b=="function")for(e=0,f=d.length;e<f;e++)if(b(d[e])){b=e;break}if(typeof b=="number"){if(b<0)return a();b=a(c.ul[0].children[b])}b&&b.nodeType&&(b=a(b));return b},_move:function(a){var b=this,c=a.keyCode,d=b.ul[0],e=b._current,g=c===f.DOWN,h;c===f.UP||g?(a.altKey?b.toggle(g):g?(b._select(e?e[0].nextSibling:d.firstChild),a.preventDefault()):(b._select(e?e[0].previousSibling:d.lastChild),a.preventDefault()),h=!0):c===f.ENTER||c===f.TAB?(b.popup.visible()&&a.preventDefault(),b._accept(e),h=!0):c===f.ESC&&(b.close(),h=!0);return h},_valueOnFetch:function(a){var b=this;if(!b.ul[0].firstChild&&!b._fetch){b.dataSource.one(k,function(){b._fetch=!0,b.value(a)}).fetch();return!0}b._fetch=!1},_options:function(a,c){var d=this,e=d.element,f=e[0].selectedIndex,g=a.length,h="",i,j,k,l,m=0;c&&(h=c,m=1);for(;m<g;m++)i="<option",j=a[m],k=d._text(j),l=d._value(j),l!==b&&(l+="",l.indexOf('"')!==-1&&(l=l.replace(w,""")),i+=' value="'+l+'"'),i+=">",k!==b&&(i+=k),i+="</option>",h+=i;e.html(h),e[0].selectedIndex=f},_reset:function(){var a=this,b=a.element;b.closest("form").bind("reset",function(){setTimeout(function(){a.value(b[0].value)})})},_cascade:function(){var b=this,c=b.options,d=c.cascadeFrom,e,f,g,h,i,j;if(d){e=a("#"+d).data("kendo"+c.name);if(!e)return;j=b.dataSource,g=e.options.dataValueField,h=function(){b.value(""),b.enable(!1)},i=function(){var a=b.value();a?(b.value(a),b.selectedIndex==-1&&b.value("")):b.select(c.index),b.trigger(s),b.enable()},f=function(){var a=e.dataItem(),b=a?e._value(a):null,c,d;b?(c=j.filter()||{},y(c,g),d=c.filters||[],d.push({field:g,operator:"eq",value:b}),j.one(k,i).filter(d)):h()},e.bind("cascade",h).bind(k,function(){f(),b.trigger("cascade")}).one(s,function(){f()}),f()}}}),d.Select.removeFiltersForField=y})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d="change",e="dataBound",f="dataBinding",g=c.ui.Widget,h=c.keys,i=">*",j="requestStart",k="error",l="k-state-focused",m="k-focusable",n="k-state-selected",o="k-edit-item",p="string",q="edit",r="remove",s="save",t="click",u=a.proxy,v=c.ui.progress,w=c.data.DataSource,x=g.extend({init:function(b,d){var e=this;d=a.isArray(d)?{dataSource:d}:d,g.fn.init.call(e,b,d),d=e.options,e.wrapper=e.element,e._element(),e._dataSource(),e.template=c.template(d.template||""),e.altTemplate=c.template(d.altTemplate||d.template),e.editTemplate=c.template(d.editTemplate||""),e._navigatable(),e._selectable(),e._pageable(),e._crudHandlers(),e.options.autoBind&&e.dataSource.fetch(),c.notify(e)},events:[d,f,e,q,r,s],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,template:"",altTemplate:"",editTemplate:""},items:function(){return this.element.find(i)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&a.fetch()},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(d,a._refreshHandler).unbind(j,a._requestStartHandler).unbind(k,a._errorHandler):(a._refreshHandler=u(a.refresh,a),a._requestStartHandler=u(a._requestStart,a),a._errorHandler=u(a._error,a)),a.dataSource=w.create(a.options.dataSource).bind(d,a._refreshHandler).bind(j,a._requestStartHandler).bind(k,a._errorHandler)},_requestStart:function(){v(this.element,!0)},_error:function(){v(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview")},refresh:function(b){var d=this,g=d.dataSource.view(),h,i,j,k="",l,m,n=d.template,o=d.altTemplate;if(b&&b.action==="itemchange")d.editable||(h=b.items[0],l=g.indexOf(h),l>=0&&(j=a(n(h)),d.items().eq(l).replaceWith(j),d.trigger("itemChange",{item:j,data:h})));else{d.trigger(f),d._destroyEditable();for(l=0,m=g.length;l<m;l++)l%2?k+=o(g[l]):k+=n(g[l]);d.element.html(k),i=d.items();for(l=0,m=g.length;l<m;l++)i.eq(l).attr(c.attr("uid"),g[l].uid);d.trigger(e)}},_pageable:function(){var b=this,c=b.options.pageable,d,e;a.isPlainObject(c)&&(e=c.pagerId,d=a.extend({},c,{dataSource:b.dataSource,pagerId:null}),a("#"+e).kendoPager(d))},_selectable:function(){var a=this,b,e,f=a.options.selectable,g=a.options.navigatable;f&&(b=typeof f===p&&f.toLowerCase().indexOf("multiple")>-1,a.selectable=new c.ui.Selectable(a.element,{multiple:b,filter:i,change:function(){a.trigger(d)}}),g&&a.element.keydown(function(c){c.keyCode===h.SPACEBAR&&(e=a.current(),c.preventDefault(),b?c.ctrlKey?e.hasClass(n)&&(e.removeClass(n),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},current:function(a){var c=this,d=c._current;a!==b&&a.length&&(!d||d[0]!==a[0])&&(a.addClass(l),d&&d.removeClass(l),c._current=a);return c._current},_navigatable:function(){var b=this,c=b.options.navigatable,d=b.element,e=u(b.current,b),f=function(b){e(a(b.currentTarget)),a(b.target).is(":button,a,:input,a>.k-icon,textarea")||d.focus()};c&&(d.attr("tabIndex",Math.max(d.attr("tabIndex")||0,0)),d.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(l):e(d.find(i).first())},focusout:function(){b._current&&b._current.removeClass(l)},keydown:function(a){var c=a.keyCode,e=b.current();h.UP===c?b.current(e?e.prev():d.find(i).first()):h.DOWN===c?b.current(e?e.next():d.find(i).first()):h.PAGEUP==c?(b._current=null,b.dataSource.page(b.dataSource.page()-1)):h.PAGEDOWN==c&&(b._current=null,b.dataSource.page(b.dataSource.page()+1))}}),d.addClass(m).delegate("."+m+i,"mousedown",f))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(d)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},_destroyEditable:function(){var a=this;a.editable&&(a.editable.destroy(),delete a.editable)},_modelFromElement:function(a){var b=a.attr(c.attr("uid"));return this.dataSource.getByUid(b)},_closeEditable:function(b){var d=this,e=d.editable,f,g,h=!0;e&&(b&&(h=e.end()),h&&(f=d._modelFromElement(e.element),g=a(d.template(f)).attr(c.attr("uid"),f.uid),d._destroyEditable(),e.element.replaceWith(g)));return h},edit:function(b){var d=this,e=d._modelFromElement(b),f=a(d.editTemplate(e)).addClass(o);d.cancel(),f.attr(c.attr("uid"),e.uid),b.replaceWith(f),d.editable=f.kendoEditable({model:e,clearContainer:!1,errorTemplate:!1}).data("kendoEditable"),d.trigger(q,{model:e,item:f})},save:function(){var a=this,b=a.editable.element,c=a._modelFromElement(b);!a.trigger(s,{model:c,item:b})&&a._closeEditable(!0)&&a.dataSource.sync()},remove:function(a){var b=this,c=b.dataSource,d=b._modelFromElement(a);b.trigger(r,{model:d,item:a})||(a.hide(),c.remove(d),c.sync())},add:function(){var a=this,b=a.dataSource,c=b.indexOf((b.view()||[])[0]);c<0&&(c=0),a.cancel(),b.insert(c,{}),a.edit(a.element.children().first())},cancel:function(){var a=this,b=a.dataSource;a.editable&&(b.cancelChanges(a._modelFromElement(a.editable.element)),a._closeEditable(!1))},_crudHandlers:function(){var b=this;b.element.on(t,".k-edit-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.edit(e),d.preventDefault()}),b.element.on(t,".k-delete-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.remove(e),d.preventDefault()}),b.element.on(t,".k-update-button",function(a){b.save(),a.preventDefault()}),b.element.on(t,".k-cancel-button",function(a){b.cancel(),a.preventDefault()})}});c.ui.plugin(x)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function P(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(p),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(p)}function O(b){b=a(b),b.find(".k-icon").remove(),b.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent().parent();b.append("<span class='k-icon "+(c.hasClass(n+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function N(b){b=a(b),b.addClass("k-item").children(l).addClass(u),b.children("a").addClass(o).children(l).addClass(u),b.filter(":not([disabled])").addClass(A),b.filter(".k-separator:empty").append(" "),b.filter("li[disabled]").addClass(B).removeAttr("disabled"),b.children("a").filter(":focus").parent().addClass("k-state-active"),b.children("."+o).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+o+"'/>"),O(b),P(b)}function M(b,c){try{return a.contains(b,c)}catch(d){return!1}}function L(a,b){a=a.split(" ")[!b+0]||a;var d={origin:["bottom","left"],position:["top","left"]},e=/left|right/.test(a);e?(d.origin=["top",a],d.position[1]=c.directions[a].reverse):(d.origin[0]=a,d.position[0]=c.directions[a].reverse),d.origin=d.origin.join(" "),d.position=d.position.join(" ");return d}function K(a,b){a=a.split(" ")[!b+0]||a;return a.replace("top","up").replace("bottom","down")}var c=window.kendo,d=c.ui,e=c.support.touch,f=a.extend,g=a.proxy,h=a.each,i=c.template,j=d.Widget,k=/^(ul|a|div)$/i,l="img",m="open",n="k-menu",o="k-link",p="k-last",q="close",r=e?"touchend":"click",s="timer",t="k-first",u="k-image",v="select",w="zIndex",x="mouseenter",y="mouseleave",z="kendoPopup",A="k-state-default",B="k-state-disabled",C=".k-group",D=":not(.k-list) > .k-item",E=".k-item.k-state-disabled",F=".k-item:not(.k-state-disabled)",G=".k-item:not(.k-state-disabled) > .k-link",H="div:not(.k-animation-container,.k-list-container)",I={content:i("<div class='k-content k-group'>#= content(item) #</div>"),group:i("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:i("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:i("<span class='#= arrowClass(item, group) #'></span>"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},J={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a){return o},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a,b){var c="k-icon";b.horizontal?c+=" k-i-arrow-s":c+=" k-i-arrow-e";return c},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group"},content:function(a){return a.content?a.content:" "}},Q=j.extend({init:function(b,d){var f=this;j.fn.init.call(f,b,d),b=f.wrapper=f.element,d=f.options,d.dataSource&&(f.element.empty(),f.append(d.dataSource,b)),f._updateClasses(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),f.nextItemZIndex=100,b.delegate(E,r,!1).delegate(F,r,g(f._click,f)),e?(d.openOnClick=!0,b.delegate(G,"touchstart touchend",f._toggleHover)):b.delegate(F,x,g(f._mouseenter,f)).delegate(F,y,g(f._mouseleave,f)).delegate(G,x+" "+y,f._toggleHover),d.openOnClick&&(f.clicked=!1,a(document).click(g(f._documentClick,f))),c.notify(f)},events:[m,q,v],options:{name:"Menu",animation:{open:{duration:200,show:!0},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find("> .k-group, .k-animation-container > .k-group"):null);h(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),O(this)}),O(c),P(d.group.find(".k-first, .k-last").add(d.items));return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},_insert:function(b,c,d){var e=this,g,h,i=[];if(!c||!c.length)d=e.element;var j=a.isPlainObject(b),k={firstLevel:d.hasClass(n),horizontal:d.hasClass(n+"-horizontal"),expanded:!0,length:d.children().length};c&&!d.length&&(d=a(Q.renderGroup({group:k})).appendTo(c)),j||a.isArray(b)?(g=a.map(j?[b]:b,function(b,c){return typeof b=="string"?a(b):a(Q.renderItem({group:k,item:f(b,{index:c})}))}),i=a.map(j?[b]:b,function(b,c){return b.content||b.contentUrl?a(Q.renderContent({item:f(b,{index:c})})):!1})):(g=a(b),h=g.find("> ul").addClass("k-group"),g=g.filter("li"),g.add(h.find("> li")).each(function(){N(this)}));return{items:g,group:d,contents:i}},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,D),d=a.parent("ul");a.remove();if(d&&!d.children(D).length){var e=d.parent(".k-animation-container");e.length?e.remove():d.remove()}c.length&&(c=c.eq(0),O(c),P(c));return b},open:function(c){var d=this,e=d.options,g=e.orientation=="horizontal",h=e.direction;c=d.element.find(c),/^(top|bottom|default)$/.test(h)&&(h=g?(h+" right").replace("default","bottom"):"right"),c.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var b=a(this).data("kendoPopup");b&&b.close()}),c.each(function(){var c=a(this);clearTimeout(c.data(s)),c.data(s,setTimeout(function(){var a=c.find(".k-group:first:hidden"),i;if(a[0]&&d.trigger(m,{item:c[0]})===!1){c.data(w,c.css(w)),c.css(w,d.nextItemZIndex++),i=a.data(z);var j=c.parent().hasClass(n),k=j&&g,l=L(h,j),o=e.animation.open.effects,p=o!==b?o:"slideIn:"+K(h,j);i?(i=a.data(z),i.options.origin=l.origin,i.options.position=l.position,i.options.animation.open.effects=p):i=a.kendoPopup({origin:l.origin,position:l.position,collision:e.popupCollision!==b?e.popupCollision:k?"fit":"fit flip",anchor:c,appendTo:c,animation:{open:f(!0,{effects:p},e.animation.open),close:e.animation.close},close:function(a){var b=a.sender.wrapper.parent();d.trigger(q,{item:b[0]})===!1?(b.css(w,b.data(w)),b.removeData(w)):a.preventDefault()}}).data(z),i.open()}},d.options.hoverDelay))});return d},close:function(b){var c=this;b=c.element.find(b),b[0]||(b=c.element.find(">.k-item")),b.each(function(){var b=a(this);clearTimeout(b.data(s)),b.data(s,setTimeout(function(){var a=b.find(".k-group:first:visible"),c;a[0]&&(c=a.data(z),c.close())},c.options.hoverDelay))});return c},_toggleDisabled:function(b,c){b=this.element.find(b),b.each(function(){a(this).toggleClass(A,c).toggleClass(B,!c)})},_toggleHover:function(b){var d=a(c.eventTarget(b)).closest(D);d.parents("li."+B).length||d.toggleClass("k-state-hover",b.type==x||b.type=="touchstart")},_updateClasses:function(){var a=this;a.element.addClass("k-widget k-reset k-header "+n).addClass(n+"-"+a.options.orientation);var b=a.element.find("li > ul").addClass("k-group").end().find("> li,.k-group > li");b.each(function(){N(this)})},_mouseenter:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;b.delegateTarget==d.parents(".k-menu")[0]&&((!c.options.openOnClick||c.clicked)&&!M(b.currentTarget,b.relatedTarget)&&e&&c.open(d),c.options.openOnClick&&c.clicked&&d.siblings().each(g(function(a,b){c.close(b)},c)))},_mouseleave:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;d.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?b.stopImmediatePropagation():!c.options.openOnClick&&!M(b.currentTarget,b.relatedTarget)&&e&&c.close(d)},_click:function(b){var d=this,f,h=a(c.eventTarget(b)),i=h.closest("."+o),j=i.attr("href"),k=h.closest(D),l=!!j&&j.charAt(j.length-1)!="#";if(!k.children(H)[0]){if(k.hasClass(B)){b.preventDefault();return}e&&k.siblings().each(g(function(a,b){d.close(b)},d)),!b.handled&&d.trigger(v,{item:k[0]})&&b.preventDefault(),b.handled=!0,d.options.closeOnClick&&!(j&&j.length>0)&&!k.children(C+",.k-animation-container").length&&d.close(i.parentsUntil(d.element,D));if((!k.parent().hasClass(n)||!d.options.openOnClick)&&!e)return;l||b.preventDefault(),d.clicked=!0,f=k.children(".k-animation-container, .k-group").is(":visible")?q:m,d[f](k)}},_documentClick:function(a){var b=this;M(b.element[0],a.target)||(b.clicked=!1)}});f(Q,{renderItem:function(a){a=f({menu:{},group:{}},a);var b=I.empty,c=a.item;return I.item(f(a,{image:c.imageUrl?I.image:b,sprite:c.spriteCssClass?I.sprite:b,itemWrapper:I.itemWrapper,arrow:c.items||c.content?I.arrow:b,subGroup:Q.renderGroup},J))},renderGroup:function(a){return I.group(f({renderItems:function(a){var b="",c=0,d=a.items,e=d?d.length:0,g=f({length:e},a.group);for(;c<e;c++)b+=Q.renderItem(f(a,{group:g,item:f({index:c},d[c])}));return b}},a,J))},renderContent:function(a){return I.content(f(a,J))}}),c.ui.plugin(Q)})(jQuery);
|