genus-ui 1.32.1 → 1.33.1

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
@@ -10957,10 +10957,10 @@ var sf = Object.defineProperty, nf = Object.getOwnPropertyDescriptor, Ei = (i, t
10957
10957
  let te = class extends et {
10958
10958
  constructor() {
10959
10959
  super(...arguments), this.dataObject = {}, this.readonly = !1, this.isLastRow = !1, this._containsHTML = (i) => /<[a-z][\s\S]*>/i.test(i), this.generateDataColumns = () => {
10960
- let i = [];
10961
- for (let t of Object.values(this.dataObject))
10962
- this._containsHTML(t) ? i.push(z`<div class='td'><slot name='htmlContent'></slot></td>`) : i.push(z`<div class='td'>${t}</div>`);
10963
- return i;
10960
+ let i = [], t = 1;
10961
+ for (let e of Object.values(this.dataObject))
10962
+ this._containsHTML(e) ? (i.push(z`<div class='td'><slot name='htmlContent-${t}'></slot></td>`), t++) : i.push(z`<div class='td'>${e}</div>`);
10963
+ return t > 1 && (t = 1), i;
10964
10964
  };
10965
10965
  }
10966
10966
  render() {
package/dist/index.umd.js CHANGED
@@ -1358,7 +1358,7 @@
1358
1358
  </div>
1359
1359
  </div>
1360
1360
  </div>
1361
- `}};Xt.styles=[Zu,ea,Uu,ia],Ti([A.property({attribute:"table-headers",type:Array})],Xt.prototype,"tableHeaders",2),Ti([A.property({attribute:"table-title"})],Xt.prototype,"tableTitle",2),Ti([A.property({attribute:"readonly",type:Boolean})],Xt.prototype,"readonly",2),Xt=Ti([A.customElement("genus-table")],Xt);var Ku=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Di=(i,t,e,s)=>{for(var n=s>1?void 0:s?Xu(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&&Ku(t,e,n),n};let Jt=class extends x.LitElement{constructor(){super(...arguments),this.dataObject={},this.readonly=!1,this.isLastRow=!1,this._containsHTML=i=>/<[a-z][\s\S]*>/i.test(i),this.generateDataColumns=()=>{let i=[];for(let t of Object.values(this.dataObject))this._containsHTML(t)?i.push(x.html`<div class='td'><slot name='htmlContent'></slot></td>`):i.push(x.html`<div class='td'>${t}</div>`);return i}}render(){return x.html`
1361
+ `}};Xt.styles=[Zu,ea,Uu,ia],Ti([A.property({attribute:"table-headers",type:Array})],Xt.prototype,"tableHeaders",2),Ti([A.property({attribute:"table-title"})],Xt.prototype,"tableTitle",2),Ti([A.property({attribute:"readonly",type:Boolean})],Xt.prototype,"readonly",2),Xt=Ti([A.customElement("genus-table")],Xt);var Ku=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Di=(i,t,e,s)=>{for(var n=s>1?void 0:s?Xu(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&&Ku(t,e,n),n};let Jt=class extends x.LitElement{constructor(){super(...arguments),this.dataObject={},this.readonly=!1,this.isLastRow=!1,this._containsHTML=i=>/<[a-z][\s\S]*>/i.test(i),this.generateDataColumns=()=>{let i=[],t=1;for(let e of Object.values(this.dataObject))this._containsHTML(e)?(i.push(x.html`<div class='td'><slot name='htmlContent-${t}'></slot></td>`),t++):i.push(x.html`<div class='td'>${e}</div>`);return t>1&&(t=1),i}}render(){return x.html`
1362
1362
  <div class=${this.isLastRow?"tr tr--last":"tr"}>
1363
1363
  ${this.generateDataColumns()}
1364
1364
  ${this.readonly?x.html``:x.html`<div class="td"><slot></slot></div>`}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.32.1",
4
+ "version": "1.33.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",