client/public/elements/components/icon.js
/**
   * @method _constructClasses
   * @description Constructs CSS classes based on element properties
   * 
   * @returns {Object}
   */
@method _constructClasses
@description Constructs CSS classes based on element properties

@returns {Object}
@method _constructClasses @description Constructs CSS classes based on element properties @returns { Object }
constructClasses() {
    let classes = {};
    if ( (!this.icon ) || (this.icon == "iron-") ) {
      classes['noicon'] = true;
      return classes;
    }
    if (this.icon.startsWith('rp-') && !this._isCustomIcon(this.icon)) {
      classes['noicon'] = true;
      return classes;
    }
    if (this.circleBg) {
      classes.circle = true;
    }
    if (this.isLink) {
      classes.link = true;
    }
    if (this.themeColor) {
      classes[this.themeColor] = true;
    }
    if (this.size) {
      classes[this.size] = true;
    }
    if(this.hasText){
      classes.text = true;
    }
    if(this.sizeIcon){
      classes[this.sizeIcon] = true;
    }
    if(this.sizeIconSVG){
      classes[this.sizeIconSVG] = true;
    }
    return classes;
  }
constructClasses ( ) { let classes = { } ; if ( ( ! this . icon ) || ( this . icon == "iron-" ) ) { classes [ 'noicon' ] = true ; return classes ; } if ( this . icon . startsWith ( 'rp-' ) && ! this . _isCustomIcon ( this . icon ) ) { classes [ 'noicon' ] = true ; return classes ; } if ( this . circleBg ) { classes . circle = true ; } if ( this . isLink ) { classes . link = true ; } if ( this . themeColor ) { classes [ this . themeColor ] = true ; } if ( this . size ) { classes [ this . size ] = true ; } if ( this . hasText ) { classes . text = true ; } if ( this . sizeIcon ) { classes [ this . sizeIcon ] = true ; } if ( this . sizeIconSVG ) { classes [ this . sizeIconSVG ] = true ; } return classes ; }
@method _constructClasses
 @description Constructs CSS classes based on element properties
@method _constructClasses @description Constructs CSS classes based on element properties