Your IP : 172.69.59.17


Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/label/dist/
Upload File :
Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/label/dist/label.bundle.min.js

this.BX=this.BX||{};(function(e,t){"use strict";var i=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(i,"DEFAULT","ui-label-default");babelHelpers.defineProperty(i,"DANGER","ui-label-danger");babelHelpers.defineProperty(i,"SUCCESS","ui-label-success");babelHelpers.defineProperty(i,"WARNING","ui-label-warning");babelHelpers.defineProperty(i,"PRIMARY","ui-label-primary");babelHelpers.defineProperty(i,"SECONDARY","ui-label-secondary");babelHelpers.defineProperty(i,"LIGHT","ui-label-light");babelHelpers.defineProperty(i,"TAG_SECONDARY","ui-label-tag-secondary");babelHelpers.defineProperty(i,"TAG_LIGHT","ui-label-tag-light");babelHelpers.defineProperty(i,"LIGHT_BLUE","ui-label-lightblue");babelHelpers.defineProperty(i,"LIGHT_GREEN","ui-label-lightgreen");babelHelpers.defineProperty(i,"LIGHT_ORANGE","ui-label-lightorange");babelHelpers.defineProperty(i,"LIGHT_YELLOW","ui-label-lightyellow");babelHelpers.defineProperty(i,"LIGHT_RED","ui-label-lightred");var s=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(s,"MD","ui-label-md");babelHelpers.defineProperty(s,"SM","ui-label-sm");babelHelpers.defineProperty(s,"LG","ui-label-lg");var l,a,n,r;var o=function(){function e(t){babelHelpers.classCallCheck(this,e);this.text=t.text;this.color=t.color;this.size=t.size;this.link=t.link;this.icon=t.icon;this.fill=!!t.fill?true:t.fill;this.customClass=t.customClass;this.classList="ui-label";this.setText(this.text);this.setLink(this.link);this.setColor(this.color);this.setFill(this.fill);this.setCustomClass(this.customClass)}babelHelpers.createClass(e,[{key:"setColor",value:function e(t){this.color=t;this.setClassList()}},{key:"getColor",value:function e(){return this.color}},{key:"setFill",value:function e(t){this.fill=!!t?true:false;this.setClassList()}},{key:"getFill",value:function e(){return this.fill}},{key:"setSize",value:function e(t){this.size=t;this.setClassList()}},{key:"getSize",value:function e(){return this.size}},{key:"setLink",value:function e(t){this.link=t}},{key:"getLink",value:function e(){return this.link}},{key:"setText",value:function e(i){this.text=i;if(t.Type.isStringFilled(i)){this.getTextContainer().textContent=i}}},{key:"getText",value:function e(){return this.text}},{key:"getTextContainer",value:function e(){if(!this.textContainer){this.textContainer=t.Tag.render(l||(l=babelHelpers.taggedTemplateLiteral(['<span class="ui-label-inner">',"</span>"])),this.getText())}return this.textContainer}},{key:"setCustomClass",value:function e(t){this.customClass=t;this.updateClassList()}},{key:"getCustomClass",value:function e(){return this.customClass}},{key:"setClassList",value:function e(){this.classList="ui-label";if(typeof this.getColor()!="undefined"){this.classList=this.classList+" "+this.color}if(typeof this.getSize()!="undefined"){this.classList=this.classList+" "+this.size}if(typeof this.getCustomClass()!="undefined"){this.classList=this.classList+" "+this.customClass}if(this.fill){this.classList=this.classList+" ui-label-fill"}this.updateClassList()}},{key:"getClassList",value:function e(){return this.classList}},{key:"updateClassList",value:function e(){if(!this.container){this.getContainer()}this.container.setAttribute("class",this.classList)}},{key:"getIconAction",value:function e(){this.iconNode=t.Tag.render(a||(a=babelHelpers.taggedTemplateLiteral(['<div class="ui-label-icon"></div>'])));for(var i in this.icon){this.iconNode.addEventListener(i,this.icon[i])}return this.iconNode}},{key:"getContainer",value:function e(){if(!this.container){if(this.getLink()){this.container=t.Tag.render(n||(n=babelHelpers.taggedTemplateLiteral(['<a href="','" class="','">',"</a>"])),this.link,this.getClassList(),this.getTextContainer())}else{this.container=t.Tag.render(r||(r=babelHelpers.taggedTemplateLiteral(['<div class="','">',"</div>"])),this.getClassList(),this.getTextContainer())}if(babelHelpers["typeof"](this.icon)==="object"){this.container.appendChild(this.getIconAction())}}return this.container}},{key:"render",value:function e(){return this.getContainer()}}]);return e}();babelHelpers.defineProperty(o,"Color",i);babelHelpers.defineProperty(o,"Size",s);e.Label=o;e.LabelColor=i;e.LabelSize=s})(this.BX.UI=this.BX.UI||{},BX);
//# sourceMappingURL=label.bundle.map.js