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 +4 -4
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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
|
|
10962
|
-
this._containsHTML(
|
|
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
|
|
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>`}
|