@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 2.06 kB
JavaScript
module.exports=function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}({0:function(e,t,r){e.exports=r(1386)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},1048:function(e,t){e.exports=require("./kendo.core")},1097:function(e,t){e.exports=require("./kendo.inputgroupbase")},1386:function(e,t,r){var i,n,a;!function(o,define){n=[r(1048),r(1097)],i=o,a="function"==typeof i?i.apply(t,n):i,!(void 0!==a&&(e.exports=a))}(function(){return function(e,t){var r=window.kendo,i=r.ui,n=i.InputGroupBase,a="change",o=".",l="checked",u="vertical",d="after",p="role",s="none",c="radiogroup",f=n.extend({options:{name:"RadioGroup",inputName:"",enabled:!0,labelPosition:d,layout:u,items:[]},ITEM_TEMPLATE:'<li class="k-radio-item"><input type="radio" class="k-radio" ><label class="k-radio-label" ></label></li>',NS:".kendoRadioGroup",groupStyles:{item:"k-radio-item",input:"k-radio",label:"k-radio-label",list:"k-radio-list",vertical:"k-list-vertical",horizontal:"k-list-horizontal",disabled:"k-state-disabled"},item:function(r){var i=this.wrapper.find("input:checked");return this._indexIsPresent(r)?e(this.items().get(r)):i.length?i:t},value:function(e){var r=this,i=r.element.find("[value='"+e+"']");return e===t?r._value:(null===e&&(r._value=null,r.element.find(o+r.groupStyles.input).prop(l,!1)),i.length>0&&(r._value=e,r.element.find(o+r.groupStyles.input).prop(l,!1),i.prop(l,!0)),t)},_changeHandler:function(r){var i=e(r.target),n=this._value;return this._targetForPreventedChange===r.target?(this._targetForPreventedChange=null,t):(this._value=i.val(),this.trigger(a,{oldValue:n,newValue:this._value,target:i}),t)},_dataValRequired:function(e){e["data-val-required"]=this.wrapper.attr("data-val-required")},_wrapper:function(){n.fn._wrapper.call(this),this.wrapper.find(o+this.groupStyles.item).attr(p,s),this.wrapper.attr(p,c)}});i.plugin(f)}(window.kendo.jQuery),window.kendo},r(3))}});