{"version":3,"file":"kendo.html.chiplist.min.js","names":["global","factory","exports","module","require","define","amd","globalThis","self","kendohtml","chiplist","js","this","$","undefined$1","kendo","window","HTMLBase","html","HTMLChipList","extend","init","element","options","that","fn","call","wrapper","addClass","_applyAriaAttributes","_addClasses","name","size","stylingOptions","ariaLabelOption","selectable","attributes","attr","role","removeAttr","renderChipList","arguments","isPlainObject","cssProperties","registerPrefix","jQuery"],"sources":["kendo.html.chiplist.js"],"mappings":"CAAA,SAAWA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBA,OAAOD,QAAUD,EAAQG,QAAQ,uBAC9E,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,CAAC,uBAAwBJ,KAC5ED,EAA+B,oBAAfO,WAA6BA,WAAaP,GAAUQ,MAAcC,UAAYT,EAAOS,WAAa,GAAIT,EAAOS,UAAUC,SAAWV,EAAOS,UAAUC,UAAY,GAAIV,EAAOS,UAAUC,SAASC,GAAKV,KAHvN,CAIGW,MAAM,WAgEL,OAtDA,SAAUC,EAAGC,GACT,IAAIC,EAAQC,OAAOD,MACfE,EAAWF,EAAMG,KAAKD,SAWtBE,EAAeF,EAASG,OAAO,CAC/BC,KAAM,SAASC,EAASC,GACpB,IAAIC,EAAOZ,KACXK,EAASQ,GAAGJ,KAAKK,KAAKF,EAAMF,EAASC,GACrCC,EAAKG,QAAUH,EAAKF,QAAQM,SAAS,eACrCJ,EAAKK,qBAAqBN,GAC1BC,EAAKM,eAETP,QAAS,CACLQ,KAAM,eACNC,KAAM,SACNC,eAAgB,CAAC,SAErBJ,qBAAsB,SAASN,GAC3B,IAAIC,EAAOZ,KAEPsB,IADJX,EAAUV,EAAEO,OAAO,CAAEe,WAAY,QAAUZ,IACZa,YAAc,IAAI,cAEtB,SAAvBb,EAAQY,WACRX,EAAKF,QAAQe,KAAK,CACd,uBAA+C,aAAvBd,EAAQY,WAChCG,KAAM,UACN,aAAcJ,GAAmBV,EAAKF,QAAQe,KAAK,MAAQ,WAC3D,mBAAoB,eAGxBb,EAAKF,QAAQiB,WAAW,4DAKpC1B,EAAEO,OAAOL,EAAMG,KAAM,CACjBsB,eAzCiB,SAASlB,EAASC,GAMnC,OALIkB,UAAU,KAAO3B,GAAeD,EAAE6B,cAAcD,UAAU,OAC1DlB,EAAUD,EACVA,EAAUT,EAAE,gBAGT,IAAKM,EAAaG,EAASC,GAAUL,QAoC5CC,aAAcA,IAGlBJ,EAAM4B,cAAcC,eAAe,eAAgB,gBAjDvD,CAmDG5B,OAAOD,MAAM8B,QACF9B","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('kendo.html.base.js')) :\n typeof define === 'function' && define.amd ? define(['kendo.html.base'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.kendohtml = global.kendohtml || {}, global.kendohtml.chiplist = global.kendohtml.chiplist || {}, global.kendohtml.chiplist.js = factory()));\n})(this, (function () {\n var __meta__ = {\n id: \"html.chiplist\",\n name: \"Html.ChipList\",\n category: \"web\",\n description: \"HTML rendering utility for Kendo UI for jQuery.\",\n depends: [\"html.base\"],\n features: []\n };\n\n (function($, undefined$1) {\n var kendo = window.kendo,\n HTMLBase = kendo.html.HTMLBase;\n\n var renderChipList = function(element, options) {\n if (arguments[0] === undefined$1 || $.isPlainObject(arguments[0])) {\n options = element;\n element = $(\"
\");\n }\n\n return (new HTMLChipList(element, options)).html();\n };\n\n var HTMLChipList = HTMLBase.extend({\n init: function(element, options) {\n var that = this;\n HTMLBase.fn.init.call(that, element, options);\n that.wrapper = that.element.addClass(\"k-chip-list\");\n that._applyAriaAttributes(options);\n that._addClasses();\n },\n options: {\n name: \"HTMLChipList\",\n size: \"medium\",\n stylingOptions: [\"size\"]\n },\n _applyAriaAttributes: function(options) {\n var that = this;\n options = $.extend({ selectable: \"none\" }, options);\n var ariaLabelOption = (options.attributes || {})[\"aria-label\"];\n\n if (options.selectable !== \"none\") {\n that.element.attr({\n \"aria-multiselectable\": options.selectable === \"multiple\",\n role: \"listbox\",\n \"aria-label\": ariaLabelOption || that.element.attr(\"id\") + \" listbox\",\n \"aria-orientation\": \"horizontal\"\n });\n } else {\n that.element.removeAttr(\"role aria-label aria-multiselectable aria-orientation\");\n }\n }\n });\n\n $.extend(kendo.html, {\n renderChipList: renderChipList,\n HTMLChipList: HTMLChipList\n });\n\n kendo.cssProperties.registerPrefix(\"HTMLChipList\", \"k-chip-list-\");\n\n })(window.kendo.jQuery);\n var kendo$1 = kendo;\n\n return kendo$1;\n\n}));\n"]}