UNPKG

@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) 2.35 kB
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.js"); require("./kendo.html.icon.js"); let _progress_kendo_svg_icons = require("@progress/kendo-svg-icons"); _progress_kendo_svg_icons = require_rolldown_runtime.__toESM(_progress_kendo_svg_icons); //#region ../src/kendo.icons.js const __meta__ = { id: "icons", name: "Icons", category: "web", description: "The Icons set provides both FontIcon and SvgIcon components along with the SVG icons collection from @progress/kendo-svg-icons", depends: ["core", "html.icon"] }; (function($, undefined) { var kendo = window.kendo, html = kendo.html, Widget = kendo.ui.Widget, extend = $.extend; var FontIcon = Widget.extend({ init: function(element, options) { var that = this; Widget.fn.init.call(that, element, options); delete options.name; that._icon = new html.HTMLFontIcon(element, $.extend({}, options)); that.element = that.wrapper = that._icon.element; kendo.notify(that); Widget.fn.endInit.call(that); }, options: extend({}, html.HTMLFontIcon.fn.options, { name: "FontIcon" }), setOptions: function(options) { var that = this; Widget.fn.setOptions.call(that, options); that._icon = new html.HTMLFontIcon(that.element, $.extend({}, that.options)); } }); var SvgIcon = Widget.extend({ init: function(element, options) { var that = this; Widget.fn.init.call(that, element, options); delete options.name; that._icon = new html.HTMLSvgIcon(element, $.extend({}, options)); that.element = that.wrapper = that._icon.element; kendo.notify(that); Widget.fn.endInit.call(that); }, options: extend({}, html.HTMLSvgIcon.fn.options, { name: "SvgIcon" }), setOptions: function(options) { var that = this; Widget.fn.setOptions.call(that, options); if (options.icon) this.element.html(""); that._icon = new html.HTMLSvgIcon(that.element, $.extend({}, that.options)); } }); kendo.ui.plugin(FontIcon); kendo.ui.plugin(SvgIcon); kendo.setDefaults("iconType", "svg"); kendo.ui.svgIcons = _progress_kendo_svg_icons; kendo.ui.icon = html.renderIcon; })(window.kendo.jQuery); var kendo_icons_default = kendo; //#endregion exports.__meta__ = __meta__; exports.default = kendo_icons_default;