@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.76 kB
JavaScript
module.exports=function(e){function n(t){if(o[t])return o[t].exports;var i=o[t]={exports:{},id:t,loaded:!1};return e[t].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var o={};return n.m=e,n.c=o,n.p="",n(0)}({0:function(e,n,o){e.exports=o(1253)},3:function(e,n){e.exports=function(){throw Error("define cannot be used indirect")}},1049:function(e,n){e.exports=require("./kendo.core")},1253:function(e,n,o){var t,i,s;!function(a,define){i=[o(1049)],t=a,s="function"==typeof t?t.apply(n,i):t,!(void 0!==s&&(e.exports=s))}(function(){return function(e,n){var o=window.kendo,t=o.ui.Widget,i=o.ui,s=".kendoFloatingLabel",a="k-floating-label-container",l="k-state-empty",r="k-state-focused",d="k-state-disabled",f="k-no-click",u=e.proxy,c=t.extend({init:function(i,s){var l=this;t.fn.init.call(l,i,s),s=e.extend(!0,{},s),l.refresh(),l._editable({readonly:l.options.widget.options.readonly!==n&&l.options.widget.options.readonly,disable:l.options.widget.options.enable!==n&&!l.options.widget.options.enable}),l.element.addClass(a),o.notify(l)},options:{name:"FloatingLabel",widget:null},readonly:function(e){this._editable({readonly:e===n||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===n||e)})},refresh:function(){var e=this,n=e.element;n.removeClass(l).removeClass(r),e.options.widget.element.val()||n.addClass(l),document.activeElement===e.options.widget.element[0]&&n.addClass(r)},destroy:function(){var e=this;e.element.off(s),t.fn.destroy.call(e)},_editable:function(e){var n=this,o=n.element,t=e.disable,i=e.readonly;o.off(s),i||t?o.toggleClass(d,t).toggleClass(f,i):(o.removeClass(d).removeClass(f),o.on("focusin"+s,u(n.refresh,n)),o.on("focusout"+s,u(n.refresh,n)))}});i.plugin(c)}(window.kendo.jQuery),window.kendo},o(3))}});