UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 1.93 kB
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}({0:function(e,t,r){e.exports=r(1366)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},1049:function(e,t){e.exports=require("./kendo.core")},1085:function(e,t){e.exports=require("./kendo.inputgroupbase")},1366:function(e,t,r){var n,i,a;!function(o,define){i=[r(1049),r(1085)],n=o,a="function"==typeof n?n.apply(t,i):n,!(void 0!==a&&(e.exports=a))}(function(){return function(e,t){var r=window.kendo,n=r.ui,i=n.InputGroupBase,a="change",o=".",l="checked",u="vertical",d="after",s=i.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",GROUP_ROLE:"radiogroup",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 n=this.wrapper.find("input:checked");return this._indexIsPresent(r)?e(this.items().get(r)):n.length?n:t},value:function(e){var r=this,n=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)),n.length>0&&(r._value=e,r.element.find(o+r.groupStyles.input).prop(l,!1),n.prop(l,!0)),t)},_changeHandler:function(r){var n=e(r.target),i=this._value;return this._targetForPreventedChange===r.target?(this._targetForPreventedChange=null,t):(this._value=n.val(),this.trigger(a,{oldValue:i,newValue:this._value,target:n}),t)},_dataValRequired:function(e){e["data-val-required"]=this.wrapper.attr("data-val-required")}});n.plugin(s)}(window.kendo.jQuery),window.kendo},r(3))}});