genus-ui 1.27.1 → 1.28.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 +3 -1
- package/dist/index.umd.js +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10863,13 +10863,15 @@ const Xu = D`
|
|
|
10863
10863
|
|
|
10864
10864
|
table thead th
|
|
10865
10865
|
{
|
|
10866
|
-
color: var(--th-font-color, #fff);
|
|
10867
10866
|
font-family: var(--th-font-family, 'Sofia Pro Semi');
|
|
10867
|
+
font-size: var(--th-font-size, 1rem);
|
|
10868
|
+
color: var(--th-font-color, #fff);
|
|
10868
10869
|
}
|
|
10869
10870
|
|
|
10870
10871
|
table tbody tr
|
|
10871
10872
|
{
|
|
10872
10873
|
font-family: var(--tr-font-family, 'Sofia Pro');
|
|
10874
|
+
font-size: var(--tr-font-size, 0.85rem);
|
|
10873
10875
|
color: var(--tr-font-color, #5e5e5f);
|
|
10874
10876
|
}
|
|
10875
10877
|
`;
|
package/dist/index.umd.js
CHANGED
|
@@ -1304,13 +1304,15 @@
|
|
|
1304
1304
|
|
|
1305
1305
|
table thead th
|
|
1306
1306
|
{
|
|
1307
|
-
color: var(--th-font-color, #fff);
|
|
1308
1307
|
font-family: var(--th-font-family, 'Sofia Pro Semi');
|
|
1308
|
+
font-size: var(--th-font-size, 1rem);
|
|
1309
|
+
color: var(--th-font-color, #fff);
|
|
1309
1310
|
}
|
|
1310
1311
|
|
|
1311
1312
|
table tbody tr
|
|
1312
1313
|
{
|
|
1313
1314
|
font-family: var(--tr-font-family, 'Sofia Pro');
|
|
1315
|
+
font-size: var(--tr-font-size, 0.85rem);
|
|
1314
1316
|
color: var(--tr-font-color, #5e5e5f);
|
|
1315
1317
|
}
|
|
1316
1318
|
`;var Fu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Xt=(i,t,e,s)=>{for(var n=s>1?void 0:s?Zu(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&&Fu(t,e,n),n};A.GenusTable=class extends x.LitElement{constructor(){super(...arguments),this.dataFields=[],this.data=[],this.tableTitle="",this.readonly=!1,this._labels=[],this._keys=[],this.generateTableHeadColumns=()=>{let i=[];for(let t of this._labels)i.push(x.html`<th>${t}</th>`);return!this.readonly&&i.push(x.html`<th></th>`),i},this.generateTableRows=()=>{let i=[],t=[];for(let e=0;e<this.data.length;e++){for(let s=0;s<this._keys.length;s++)if(t.push(x.html`<td>${this.data[e][`${this._keys[s]}`]}</td>`),s===this._keys.length-1){!this.readonly&&t.push(x.html`<td><slot name='actions-${e}'></slot></td>`);break}i.push(x.html`<tr>${t}</tr>`),t=[]}return i}}firstUpdated(){this._labels=this.dataFields.map(i=>i.label),this._keys=this.dataFields.map(i=>i.key)}render(){return x.html`
|