mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-03 01:01:41 +00:00
27 lines
7.9 KiB
JavaScript
Executable File
27 lines
7.9 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("util/ripple.min",["kendo.core.min"],e)}(function(){!function(){var e,t,n,o,i,r,c,s;window.kendo.util=window.kendo.util||{},window.kendo.util.ripple=window.kendo.util.ripple||{},e=function(e,t){var n,o;if(e.closest)return e.closest(t);for(n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},o=e;o;){if(n(o,t))return o;o=o.parentElement}},t=function(e){var t,n=e.createElement("div");return n.className="k-ripple",t=e.createElement("div"),t.className="k-ripple-blob",n.appendChild(t),[n,t]},n=function(e,t,n){var o=function(){n(),e.removeEventListener(t,o,!1)},i=function(){return e.addEventListener(t,o,!1)};return i(),{remove:i}},o=function(o,c){return function(s){var u,a,l,d,p,f,m,v,h,k,w,g,y,b,E,x,L=s.target,C=L.document||L.ownerDocument;if(u=c.container?c.container(L):e(L,o),u&&(a=/focus/i.test(s.type)&&u.classList.contains("k-ripple-target"),!a)){if(u.classList.add("k-ripple-target"),l=t(C),d=l[0],p=l[1],f={animated:!1,released:!1,blob:p,container:u,ripple:d},m={focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup"}[s.type],n(s.currentTarget,m,function(){return r(f)}),u.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),v=u.getBoundingClientRect(),h=0,k=0,/mouse|pointer|touch/.test(s.type)?(h=s.clientX-v.left,k=s.clientY-v.top):(h=v.width/2,k=v.height/2),w=h<v.width/2?v.width:0,g=k<v.height/2?v.height:0,y=h-w,b=k-g,E=2*Math.sqrt(y*y+b*b),x=500,p.style.width=p.style.height=E+"px",p.offsetWidth<0)throw Error("Inconceivable!");p.style.cssText="\n width: "+E+"px;\n height: "+E+"px;\n transform: translate(-50%, -50%) scale(1);\n left: "+h+"px;\n top: "+k+"px;\n ",setTimeout(function(){return i(f)},x)}}},i=function(e){e.animated=!0,c(e)},r=function(e){e.released=!0,c(e)},c=function(e){if(e.released&&e.animated){var t=e.blob,o=e.ripple,i=e.container;i&&n(i,"blur",function(){return i.classList.remove("k-ripple-target")}),t&&(n(t,"transitionend",function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},s=function(e,t){var n=function(e){return[].concat.apply([],e)},i=n(t.map(function(t){var n={events:["mousedown","touchdown"],global:!1},i=t.selector,r=t.options,c=void 0===r?n:r,s=o(i,c),u=c.events||n.events,a=c.global?document.body:e;return u.forEach(function(e){return a.addEventListener(e,s,!1)}),{events:u,options:c,activator:s}}));return function(){if(e){var t=function(t){var n=t.events,o=t.options,i=t.activator,r=o.global?document.body:e;n.forEach(function(e){return r.removeEventListener(e,i,!1)})};i.forEach(t),e=null}}},kendo.deepExtend(kendo.util.ripple,{register:s})}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ripple.min",["util/ripple.min"],e)}(function(){return function(e,t){var n=window.kendo,o=n.ui,i=o.Widget,r=e.extend,c=n.util.ripple,s=i.extend({init:function(e,t){var n=this;i.fn.init.call(n,e),e=n.wrapper=n.element,n.options=r({},n.options,t),n.registerListeners()},options:{name:"RippleContainer",elements:[{selector:".k-button:not(li)"},{selector:".k-list > .k-item",options:{global:!0}},{selector:".k-checkbox-label, .k-radio-label"},{selector:".k-checkbox, .k-radio",options:{events:["focusin"],container:function(e){if(/\b(k-checkbox|k-radio)\b/.test(e.className))return e.nextElementSibling}}}]},removeListeners:function(){},registerListeners:function(){var e,t=this,n=t.element[0],o=t.options.elements;t.removeListeners(),e=c.register(n,o),t.removeListeners=e},destroy:function(){var e=this;i.fn.destroy.call(e),e.removeListeners()}});o.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
|
|
//# sourceMappingURL=kendo.ripple.min.js.map
|