genus-ui 1.35.1 → 1.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -649,12 +649,12 @@ let jt = class extends et {
649
649
  <input class="tab-radio" id=${this._tabNames[i]} type="radio" name="tabGroup" @change=${() => {
650
650
  this._showContent(i);
651
651
  }} checked/>
652
- <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i] = this._tabNames[i].replace("-", " ")}</label>
652
+ <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i] = this._tabNames[i].replace(/-/g, " ")}</label>
653
653
  `) : this._tabsTemplate.push(z`
654
654
  <input class="tab-radio" id=${this._tabNames[i]} type="radio" name="tabGroup" @change=${() => {
655
655
  this._showContent(i);
656
656
  }}/>
657
- <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i] = this._tabNames[i].replace("-", " ")}</label>
657
+ <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i] = this._tabNames[i].replace(/-/g, " ")}</label>
658
658
  `);
659
659
  };
660
660
  }
package/dist/index.umd.js CHANGED
@@ -487,10 +487,10 @@
487
487
  .tab-labels { display: flex; }
488
488
  `;var Sa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,le=(i,t,e,s)=>{for(var n=s>1?void 0:s?Ca(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(n=(s?a(t,e,n):a(n))||n);return s&&n&&Sa(t,e,n),n};let It=class extends x.LitElement{constructor(){super(...arguments),this._numberOfTabs=0,this._tabsTemplate=[],this._tabNames=[],this.tabNames=[],this._hideCurrentContent=()=>{this._tabContents.forEach(i=>{i.classList.contains("show-content")&&i.classList.remove("show-content")})},this._showContent=i=>{this._hideCurrentContent(),this._tabContents[i].classList.add("show-content")},this._generateTabs=()=>{this._tabNames=this.tabNames;for(let i=0;i<this._numberOfTabs;i++)i===0?this._tabsTemplate.push(x.html`
489
489
  <input class="tab-radio" id=${this._tabNames[i]} type="radio" name="tabGroup" @change=${()=>{this._showContent(i)}} checked/>
490
- <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i]=this._tabNames[i].replace("-"," ")}</label>
490
+ <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i]=this._tabNames[i].replace(/-/g," ")}</label>
491
491
  `):this._tabsTemplate.push(x.html`
492
492
  <input class="tab-radio" id=${this._tabNames[i]} type="radio" name="tabGroup" @change=${()=>{this._showContent(i)}}/>
493
- <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i]=this._tabNames[i].replace("-"," ")}</label>
493
+ <label class="tab ${this._tabNames[i]}-tab" for=${this._tabNames[i]}>${this._tabNames[i]=this._tabNames[i].replace(/-/g," ")}</label>
494
494
  `)}}firstUpdated(){this._tabContents.forEach(i=>{i.classList.add("hide-content")}),this._tabContents[0].classList.add("show-content"),this._numberOfTabs=this._tabContents.length,this._generateTabs()}render(){return x.html`
495
495
  <div class='tab-container'>
496
496
  <div class='tab-labels'>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.35.1",
4
+ "version": "1.35.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",