kendo.webcomponents.min.js 7.03 KB
/** 
 * Kendo UI v2016.1.112 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.webcomponents.min",["kendo.core.min"],t)}(function(){return function(t,e,n){function o(t,e){var o=t.getAttribute(e);return null===o?o=n:"null"===o?o=null:"true"===o?o=!0:"false"===o?o=!1:b.test(o)?o=parseFloat(o):p.test(o)&&!f.test(o)&&(o=Function("return ("+o+")")()),o}function i(t,e){var n={};return Object.keys(e).concat("dataSource").forEach(function(e){t.hasAttribute(kendo.toHyphens(e))&&(n[e]=o(t,kendo.toHyphens(e)))}),n}function r(t){var e={};return Object.keys(t).forEach(function(n){"_"!=n[0]&&(e[n]=t[n])}),e}function u(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!0,r(e)),this.dispatchEvent(n),n.defaultPrevented&&e.preventDefault()}function d(t,e){var n,o=Object.keys(e);for(n=0;o.length>=n;n++)if("function"==typeof e[o[n]])t[o[n]]||(t[o[n]]=e[o[n]].bind(t.widget));else{if("options"===o[n])continue;t[o[n]]=t[o[n]]||e[o[n]]}}function a(e,n){var o=n.prototype.options,r=Object.create(HTMLElement.prototype);Object.defineProperty(r,"options",{get:function(){return this.widget.options},set:function(n){var o,i,r,u=this.widget;n=t.extend(!0,{},u.options,n),o=t(u.wrapper)[0],i=t(u.element)[0],u._destroy(),r=document.createElement(s[e]||"div"),o&&i&&(o.parentNode.replaceChild(i,o),t(i).replaceWith(r)),u.value&&(n.value=u.value()),u.init(r,n),this.bindEvents()}}),r.bindEvents=function(){n.prototype.events.forEach(function(t){this.widget.bind(t,u.bind(this,t)),this.hasAttribute(c+t)&&this.bind(t,function(e){window[this.getAttribute(c+t)].call(this,e)}.bind(this))}.bind(this))},r.attachedCallback=function(){var r,u=this,a=document.createElement(s[e]||"div");t(a).append(u.childNodes),t(a).attr("class",t(u).attr("class")),t(a).attr("style",t(u).attr("style")),u.appendChild(a),u.widget=new n(a,i(u,o)),r=u.widget;do d(u,r);while(r=Object.getPrototypeOf(r));this.bindEvents()},r.detachedCallback=function(){kendo.destroy(this.element)},kendo.webComponents.push("kendo-"+e),document.registerElement("kendo-"+e,{prototype:r})}var s,c,l,p,f,b;kendo.support.customElements&&!kendo.webComponents.length&&(!e||1!=e.version.major&&!e.injector)&&(s={editor:"textarea",numerictextbox:"input",datepicker:"input",datetimepicker:"input",timepicker:"input",autocomplete:"input",colorpicker:"input",maskedtextbox:"input",dropdownlist:"select",multiselect:"select",upload:"input",validator:"form",button:"button",mobilebutton:"a",mobilebackbutton:"a",mobiledetailbutton:"a",listview:"ul",mobilelistview:"ul",treeview:"ul",menu:"ul",contextmenu:"ul",actionsheet:"ul"},c="on-",l=[],kendo.onWidgetRegistered(function(t){var e=t.prefix+t.widget.prototype.options.name.toLowerCase();-1===l.indexOf(e)&&(l.push(e),a(e,t.widget))}),p=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,f=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,b=/^(\+|-?)\d+(\.?)\d*$/)}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});
//# sourceMappingURL=kendo.webcomponents.min.js.map