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

27 lines
6.0 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.checkboxgroup.min",["kendo.core.min","kendo.inputgroupbase.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,l=i.InputGroupBase,a="change",u=".",r="checked",o="vertical",c="after",h=l.extend({options:{name:"CheckBoxGroup",checkboxName:"",enabled:!0,labelPosition:c,layout:o,items:[]},ITEM_TEMPLATE:'<li class="k-checkbox-item"><input type="checkbox" class="k-checkbox" ><label class="k-checkbox-label"></label></li>',NS:".kendoCheckBoxGroup",GROUP_ROLE:"group",groupStyles:{item:"k-checkbox-item",input:"k-checkbox",label:"k-checkbox-label",list:"k-checkbox-list",vertical:"k-list-vertical",horizontal:"k-list-horizontal",disabled:"k-state-disabled"},checkAll:function(e){var t=this,n=t.element.find("input"),i=function(e,n){t._value.push(n.value)};e===!0?(n.prop(r,!0),t._value=[],n.each(i)):e===!1&&(n.prop(r,!1),t._value=[])},value:function(e){var n,i,l,a,o=this,c=[];if(e===t)return o._value||(o._value=[]),o._value;if(null===e||e==[])return o._value=[],o.element.find(u+o.groupStyles.input).prop(r,!1),t;if(e&&!(e.length<1)){for(i=o.element.find("input[value='"+e[0]+"']"),i.length&&c.push(e[0]),a=1;a<e.length;a++)n=o.element.find("input[value='"+e[a]+"']"),l=i.add(n),l.length>i.length&&(i=l,c.push(e[a]));o._value=c,o.element.find(u+o.groupStyles.input).prop(r,!1),i.prop(r,!0)}},_changeHandler:function(n){var i=e(n.target),l=i.val(),u=function(e){return e!==l};return this._targetForPreventedChange===n.target?(this._targetForPreventedChange=null,t):(this._value||(this._value=[]),i.is(":checked")?this._value.push(l):this._value=this._value.filter(u),this.trigger(a,{target:i}),t)},_dataValRequired:function(e){e["data-msg-required"]=this.wrapper.attr("data-val-required"),e["data-rule-required"]="true"}});i.plugin(h)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.checkboxgroup.min.js.map