/**
 * Kendo UI v2023.3.1114 (http://www.telerik.com/kendo-ui)
 * Copyright 2023 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.
 */
import"./kendo.html.base.js";var __meta__={id:"html.input",name:"Html.Input",category:"web",description:"HTML rendering utility for Kendo UI for jQuery.",depends:["html.base"],features:[]};!function(e,l){var t=window.kendo,n=t.html.HTMLBase,a=n.extend({init:function(e,l){var t=this;n.fn.init.call(t,e,l),t._wrapper(),t._addClasses()},options:{label:null,labelPosition:"after",labelId:null,encoded:!0},_wrapper:function(){var l=this,n=l.element[0],a=l.options,i=n.id;l.wrapper=l.element.addClass(a.inputClass).prop("type",a.type),!i&&a.label&&(n.id=i=t.guid()),a.label&&(l.labelEl=e("<label for='"+i+"' class='"+a.labelClass+"'>"),a.encoded?l.labelEl.text(a.label):l.labelEl.html(a.label),a.labelId&&l.labelEl.attr("id",a.labelId),a.optional&&l.labelEl.append("<span class='"+a.optionalClass+"'>"+a.optionalText+"</span>"),l.element[a.labelPosition](l.labelEl))},html:function(){var e=this,l="after"===e.options.labelPosition,t=n.fn.html.call(e);return e.labelEl?l?t+e.labelEl[0].outerHTML:e.labelEl[0].outerHTML+t:t}}),i=a.extend({init:function(e,l){a.fn.init.call(this,e,l),this._addClasses()},options:{name:"HTMLCheckBox",inputClass:"k-checkbox",labelClass:"k-checkbox-label",optionalClass:"k-label-optional",optionalText:"(Optional)",type:"checkbox",rounded:"medium",size:"medium",stylingOptions:["size","rounded"]}}),o=a.extend({init:function(e,l){a.fn.init.call(this,e,l),this._addClasses()},options:{name:"HTMLRadioButton",inputClass:"k-radio",labelClass:"k-radio-label",optionalClass:"k-label-optional",optionalText:"(Optional)",type:"radio",size:"medium",stylingOptions:["size"]}});e.extend(t.html,{renderCheckBox:function(t,n){return(arguments[0]===l||e.isPlainObject(arguments[0]))&&(n=t,t=e("<input />")),new i(t,n).html()},renderRadioButton:function(t,n){return(arguments[0]===l||e.isPlainObject(arguments[0]))&&(n=t,t=e("<input />")),new o(t,n).html()},HTMLInput:a,HTMLCheckBox:i,HTMLRadioButton:o}),t.cssProperties.registerPrefix("HTMLCheckBox","k-checkbox-"),t.cssProperties.registerValues("HTMLCheckBox",[{prop:"rounded",values:t.cssProperties.roundedValues.concat([["full","full"]])}]),t.cssProperties.registerPrefix("HTMLRadioButton","k-radio-")}(window.kendo.jQuery);var kendo$1=kendo;export{kendo$1 as default};
//# sourceMappingURL=kendo.html.input.js.map
