Files
jube-fork/Jube.App/wwwroot/kendo/js/kendo.textarea.min.js
2022-11-04 13:24:24 +02:00

27 lines
7.3 KiB
JavaScript
Executable File

/**
* Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. 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(e,define){define("kendo.textarea.min",["kendo.core.min","kendo.floatinglabel.min"],e)}(function(){return function(e,a){var t=window.kendo,l=t.ui.Widget,n=t.ui,o=e.isPlainObject,i=".kendoTextArea",r="change",s="disabled",d="readonly",u="k-input",p="k-state-focused",b="k-label k-input-label",f="k-state-disabled",c="k-no-click",v="aria-disabled",g="k-textarea-container",m=e.proxy,y=l.extend({init:function(n,o){var i=this;l.fn.init.call(i,n,o),o=e.extend(!0,{},o),i.options.value=o.value||i.element.val(),i.options.readonly=o.readonly!==a?o.readonly:!!i.element.attr("readonly"),i.options.enable=o.enable!==a?o.enable:!!!i.element.attr("disabled"),i.options.placeholder=o.placeholder||i.element.attr("placeholder"),i.options.value.replace(/\s/g,"").length||(i.options.value="",i.element.val("")),i.value(i.options.value),i._wrapper(),i._label(),i._editable({readonly:i.options.readonly,disable:!i.options.enable}),i._applyAttributes(),i.element.addClass(u).css("resize",i.options.resizable).attr("autocomplete","off"),t.notify(i)},events:[r],attributes:["maxLength","rows","placeholder"],options:{name:"TextArea",value:"",readonly:!1,enable:!0,placeholder:"",label:null,resizable:"none",maxLength:null,cols:20,rows:1},_applyAttributes:function(){var e,a=this,t={};for(e in a.attributes)t[a.attributes[e]]=a.options[a.attributes[e]];a.element.attr(t)},value:function(e){var t=this;return e===a?t._value:(t._value=e,t.element.val(e),a)},readonly:function(e){var t=this;this._editable({readonly:e===a||e,disable:!1}),t.floatingLabel&&t.floatingLabel.readonly(e===a||e)},enable:function(e){var t=this;this._editable({readonly:!1,disable:!(e=e===a||e)}),t.floatingLabel&&t.floatingLabel.enable(e=e===a||e)},focus:function(){var e=this;e.element[0].focus()},destroy:function(){var e=this;e.floatingLabel&&e.floatingLabel.destroy(),e.element.off(i),l.fn.destroy.call(e)},_editable:function(e){var a=this,t=a.element,l=a.wrapper,n=e.disable,o=e.readonly;t.off(i),o||n?(t.attr(s,n).attr(d,o).attr(v,n),l.toggleClass(f,n).toggleClass(c,o)):(t.removeAttr(s).removeAttr(d).attr(v,!1),l.removeClass(f).removeClass(c),t.on("focusin"+i,m(a._focusin,a)),t.on("focusout"+i,m(a._focusout,a)))},_label:function(){var a,l,n=this,i=n.element,r=n.options,s=i.attr("id");null!==r.label&&(a=!!o(r.label)&&r.label.floating,l=o(r.label)?r.label.content:r.label,a&&(n._floatingLabelContainer=n.wrapper.wrap("<span></span>").parent(),n.floatingLabel=new t.ui.FloatingLabel(n._floatingLabelContainer,{widget:n}),n._floatingLabelContainer.addClass(g)),t.isFunction(l)&&(l=l.call(n)),l||(l=""),s||(s=r.name+"_"+t.guid(),i.attr("id",s)),n._inputLabel=e("<label class='"+b+"' for='"+s+"'>"+l+"</label>'").insertBefore(n.wrapper))},_focusin:function(){var e=this;e.wrapper.addClass(p)},_focusout:function(){var e=this,a=e._value,t=e.element.val();e.wrapper.removeClass(p),a!==t&&(e._value=t,e.trigger(r))},_wrapper:function(){var e=this,a=e.element,t=a[0],l=a.wrap("<span class='k-widget k-textarea'></span>").parent();l[0].style.cssText=t.style.cssText,t.style.width="100%",e.wrapper=l.addClass(t.className).removeClass("input-validation-error")}});n.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,a,t){(t||a)()});
//# sourceMappingURL=kendo.textarea.min.js.map