@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
64 lines (63 loc) • 1.69 kB
JavaScript
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _progress_kendo_ripple = require("@progress/kendo-ripple");
//#region ../src/kendo.ripple.js
const __meta__ = {
id: "ripplecontainer",
name: "RippleContainer",
category: "web",
depends: ["core"]
};
(function($, undefined) {
var ui = window.kendo.ui, Widget = ui.Widget, extend = $.extend;
var RippleContainer = Widget.extend({
init: function(element, options) {
var that = this;
Widget.fn.init.call(that, element);
element = that.wrapper = that.element;
element.addClass("k-ripple-container");
that.options = extend({}, that.options, options);
that.registerListeners();
Widget.fn.endInit.call(that);
},
options: {
name: "RippleContainer",
elements: [
{ selector: ".k-button:not(li)" },
{
selector: ".k-list-ul > .k-list-item",
options: { global: true }
},
{ selector: ".k-checkbox-label, .k-radio-label" },
{
selector: ".k-checkbox, .k-radio",
options: { events: [
"focusin",
"animationend",
"click"
] }
}
]
},
removeListeners: function() {},
registerListeners: function() {
var that = this;
var root = that.element[0];
var elements = that.options.elements;
that.removeListeners();
that.removeListeners = (0, _progress_kendo_ripple.register)(root, elements);
},
destroy: function() {
var that = this;
Widget.fn.destroy.call(that);
that.removeListeners();
}
});
ui.plugin(RippleContainer);
})(window.kendo.jQuery);
var kendo_ripple_default = kendo;
//#endregion
exports.__meta__ = __meta__;
exports.default = kendo_ripple_default;