@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 2.47 kB
JavaScript
module.exports=function(n){var i={};function l(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,l),t.loaded=!0,t.exports}return l.m=n,l.c=i,l.p="",l(0)}({0:function(e,t,n){e.exports=n(1318)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},1315:function(e,t){e.exports=require("./kendo.html.base")},1318:function(e,t,n){var i;n(3),n=[n(1315)],void 0===(t="function"==typeof(i=function(){var d={id:"html.input",name:"Html.Input",category:"web",description:"HTML rendering utility for Kendo UI for jQuery.",depends:["html.base"],features:[]},l=window.kendo.jQuery,n=void 0,o=window.kendo,i=o.html.HTMLBase,e=function(e,t){if(arguments[0]===n||l.isPlainObject(arguments[0])){t=e;e=l("<input />")}return new s(e,t).html()},t=function(e,t){if(arguments[0]===n||l.isPlainObject(arguments[0])){t=e;e=l("<input />")}return new a(e,t).html()},r=i.extend({init:function(e,t){var n=this;i.fn.init.call(n,e,t);n._wrapper();n._addClasses()},options:{label:null,labelPosition:"after",encoded:true},_wrapper:function(){var e=this,t=e.element[0],n=e.options,i=t.id;e.wrapper=e.element.addClass(n.inputClass).prop("type",n.type);if(!i&&!!n.label)t.id=i=o.guid();if(!!n.label){e.labelEl=l("<label for='"+i+"' class='"+n.labelClass+"'>");if(n.encoded)e.labelEl.text(n.label);else e.labelEl.html(n.label);e.element[n.labelPosition](e.labelEl)}},html:function(){var e=this,t=e.options.labelPosition==="after",n=i.fn.html.call(e);if(!e.labelEl)return n;if(t)return n+e.labelEl[0].outerHTML;return e.labelEl[0].outerHTML+n}}),s=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t);n._addClasses()},options:{name:"HTMLCheckBox",inputClass:"k-checkbox",labelClass:"k-checkbox-label",type:"checkbox",rounded:"medium",size:"medium",stylingOptions:["size","rounded"]}}),a=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t);n._addClasses()},options:{name:"HTMLRadioButton",inputClass:"k-radio",labelClass:"k-radio-label",type:"radio",size:"medium",stylingOptions:["size"]}});return l.extend(o.html,{renderCheckBox:e,renderRadioButton:t,HTMLInput:r,HTMLCheckBox:s,HTMLRadioButton:a}),o.cssProperties.registerPrefix("HTMLCheckBox","k-checkbox-"),o.cssProperties.registerValues("HTMLCheckBox",[{prop:"rounded",values:o.cssProperties.roundedValues.concat([["full","full"]])}]),o.cssProperties.registerPrefix("HTMLRadioButton","k-radio-"),window.kendo})?i.apply(t,n):i)||(e.exports=t)}});