UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines (2 loc) 1.6 kB
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("kendo.core.js")):"function"==typeof define&&define.amd?define(["exports","kendo.core.min"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.PrefixSuffixContainersChunk={}))}(this,(function(e){let n=kendo.jQuery;e.__meta__={id:"prefix-suffix-containers.chunk",name:"PrefixSuffixContainersChunk",category:"web",description:"A reusable outputed chunk of code",depends:["core"],hidden:!0,chunk:!0},e.a=function({widget:e,wrapper:t,options:o,prefixInsertBefore:i,suffixInsertAfter:r}){var p,a,f=o.prefixOptions,s=o.suffixOptions,l=f.template||f.icon,d=s.template||s.icon,u=(r=r||i,o.layoutFlow),c=u?"vertical"==u?"horizontal":"vertical":"horizontal",k=`<span class="k-input-separator k-input-separator-${"vertical"==u?"horizontal":"vertical"}"></span>`;f&&l&&((p=t.children(".k-input-prefix"))[0]||(p=n(`<span class="k-input-prefix k-input-prefix-${c}" />`),i?p.insertBefore(i):p.prependTo(t)),f.icon&&p.html(kendo.html.renderIcon({icon:f.icon})),f.template&&p.html(kendo.template(f.template)({})),f.separator&&n(k).insertAfter(p)),s&&d&&((a=t.children(".k-input-suffix"))[0]||(a=n(`<span class="k-input-suffix k-input-suffix-${c}" />`).appendTo(t),r?a.insertAfter(r):a.appendTo(t)),s.icon&&a.html(kendo.html.renderIcon({icon:s.icon})),s.template&&a.html(kendo.template(s.template)({})),s.separator&&n(k).insertBefore(a)),e._prefixContainer=p,e._suffixContainer=a}})); //# sourceMappingURL=kendo.prefix-suffix-containers.chunk.min.js.map