Init
- aggiunto un po di tutto comeil progetto del prof
This commit is contained in:
26
SeniorAssistant/wwwroot/kendo/2018.1.221/js/kendo.buttongroup.min.js
vendored
Normal file
26
SeniorAssistant/wwwroot/kendo/2018.1.221/js/kendo.buttongroup.min.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui)
|
||||
* Copyright 2018 Telerik AD. 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.buttongroup.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(n,i){n!==t&&e('<span class="k-badge">'+s.htmlEncode(n)+"</span>").appendTo(i)}var s=window.kendo,i=s.ui,a=i.Widget,o=s.keys,d=e.proxy,l=".kendoButtonGroup",r="k-widget",c="k-button-group",u="k-button",f="k-button-icontext",m="k-button-icon",p="k-state-active",h="k-state-focused",b="k-state-disabled",g="select",v="click",k="keydown",C="focus",y="blur",_="mousedown",x='# var item = data; ## var text = item.text; ## var selected = item.selected; ## var enabled = item.enabled; ## var icon = item.icon; ## var badge = item.badge; ## var image = item.imageUrl; #<span class="#= selected ? " '+p+'" : "" #" #= enabled === false ? "disabled" : "" # # if (icon && !image) { #'+s.attr("icon")+'="#=icon#"# } ## if (badge) { #'+s.attr("badge")+'="#=badge#"# } #># if (image) { #<img alt="icon" src="#=image#" /># } ## if (text) { ##= text ## } #</span>',w=a.extend({init:function(t,n){var s,i,o,f=this;if(a.fn.init.call(f,t,n),f.wrapper=f.element,f.options.items)for(s=0;s<f.options.items.length;s++)i=f.options.items[s],o=e(f._renderItem(f.options.items[s])),i.attributes&&o.attr(i.attributes),o.appendTo(f.element);f.selectedIndices=[],f.element.addClass(r+" "+c).attr("role","group").attr("tabindex",f.element.attr("tabindex")||"0").children().each(function(){var t=e(this);f._button.bind(f)(t)}),f._enable=!0,f.options.enable||(f._enable=!1,f.element.attr("aria-disabled",!0).addClass(b)),f.select(f.options.index),f.element.on(v+l,"."+u,d(f._click,f)).on(C+l,d(f._focus,f)).on(k+l,d(f._keyDown,f)).on(y+l,function(){f.preventFocus=!1,f.element.find("."+u).removeClass(h)}).on(_+l,function(){f.preventFocus=!0})},events:[g],options:{name:"ButtonGroup",selection:"single",index:-1,enable:!0},current:function(){return this.element.find("."+p)},_renderItem:function(e){return s.template(x,{useWithBlock:!1})(e)},_focus:function(){var t=e(this.element);this.preventFocus||(t.find("."+p).length?t.find("."+p).first().focus().addClass(h):t.children().first().focus().addClass(h))},_keyDown:function(t){var n,i=this,a=e(i.element),d=a.find("."+u),l=a.find("."+h),r=d.index(l),c=s.support.isRtl(i.element);t.keyCode===o.LEFT&&!c||t.keyCode===o.RIGHT&&c?(l.removeClass(h),n=0===r?d.eq(d.length-1):e(d[r-1]),n.focus().addClass(h),t.preventDefault()):t.keyCode===o.LEFT&&c||t.keyCode===o.RIGHT&&!c?(l.removeClass(h),n=r+1===d.length?d.eq(0):e(d[r+1]),n.focus().addClass(h),t.preventDefault()):t.keyCode!==o.ENTER&&t.keyCode!==o.SPACEBAR||(i._select(l),t.preventDefault())},select:function(n){var s,i=this,a=-1;n!==t&&n!==-1&&(i.element.find("."+u).removeClass(h),"number"==typeof n?(a=n,n=i.element.children().eq(n)):n.nodeType&&(n=e(n),a=n.index()),"multiple"===i.options.selection?(s="true"===n.attr("aria-pressed"),n.attr("aria-pressed",!s).toggleClass(p),i.selectedIndices.indexOf(a)===-1?i.selectedIndices.push(a):i.selectedIndices.splice(i.selectedIndices.indexOf(a),1)):(i.selectedIndices=[],i.current().attr("aria-pressed",!1).removeClass(p),n.attr("aria-pressed",!0).addClass(p),i.selectedIndices.push(a)),i.trigger(g,{indices:i.selectedIndices}))},badge:function(t,i){var a,o=this.element;return i=s.htmlEncode(i),isNaN(t)||(t=o.children().get(t)),t=o.find(t),a=e(t.children(".k-badge")[0]||n(i,t)),i||0===i?(a.html(i),this):i===!1?(a.empty().remove(),this):a.html()},enable:function(e){t===e&&(e=!0),this.element.attr("aria-disabled",!e).toggleClass(b,!e),this._enable=this.options.enable=e},destroy:function(){var e=this;e.element.off(l),a.fn.destroy.call(e)},_button:function(t){var i=s.attrValue(t,"icon"),a=s.attrValue(t,"badge"),o=t.find("img").addClass("k-image"),d=!0;t.attr("aria-pressed",!1).attr("role","button").addClass(u),(t.is("[disabled]")||t.hasClass(b))&&t.addClass(b).attr("aria-disabled",!0).removeAttr("disabled"),t.is("."+p)&&(t.removeClass(p),(!t.hasClass(b)&&"single"===this.options.selection||"multiple"===this.options.selection)&&this.select(t[0])),!o[0]&&i&&t.prepend(e('<span class="k-icon k-i-'+i+'" />')),t.contents().filter(function(){return!e(this).hasClass("k-icon")&&!e(this).hasClass("k-image")}).each(function(){(1==this.nodeType||3==this.nodeType&&e.trim(this.nodeValue).length>0)&&(d=!1)}),(o[0]||i)&&t.addClass(d?m:f),(a||0===a)&&n(a,t)},_click:function(t){var n=e(t.target).closest("."+u);t.isDefaultPrevented()||this._select(n)},_select:function(e){var n=e;return this.element.find("."+u).removeClass(h),!this._enable||n.is("."+b)?(n.addClass(h),t):(this.select(e[0]),n.addClass(h),t)}});i.plugin(w)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
|
||||
//# sourceMappingURL=kendo.buttongroup.min.js.map
|
||||
Reference in New Issue
Block a user