genus-ui 1.26.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 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
  `;
@@ -10925,7 +10927,7 @@ se([
10925
10927
  z({ attribute: "data-fields", type: Array })
10926
10928
  ], St.prototype, "dataFields", 2);
10927
10929
  se([
10928
- z({ attribute: "data", type: Array })
10930
+ z({ attribute: "table-data", type: Array })
10929
10931
  ], St.prototype, "data", 2);
10930
10932
  se([
10931
10933
  z({ attribute: "table-title" })
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`
@@ -1328,7 +1330,7 @@
1328
1330
  </table>
1329
1331
  </div>
1330
1332
  </div>
1331
- `}},A.GenusTable.styles=[Bu,Ru,Wu,Hu],Xt([I.property({attribute:"data-fields",type:Array})],A.GenusTable.prototype,"dataFields",2),Xt([I.property({attribute:"data",type:Array})],A.GenusTable.prototype,"data",2),Xt([I.property({attribute:"table-title"})],A.GenusTable.prototype,"tableTitle",2),Xt([I.property({attribute:"readonly",type:Boolean})],A.GenusTable.prototype,"readonly",2),Xt([I.state()],A.GenusTable.prototype,"_labels",2),Xt([I.state()],A.GenusTable.prototype,"_keys",2),A.GenusTable=Xt([I.customElement("genus-table")],A.GenusTable),(()=>{let i=`
1333
+ `}},A.GenusTable.styles=[Bu,Ru,Wu,Hu],Xt([I.property({attribute:"data-fields",type:Array})],A.GenusTable.prototype,"dataFields",2),Xt([I.property({attribute:"table-data",type:Array})],A.GenusTable.prototype,"data",2),Xt([I.property({attribute:"table-title"})],A.GenusTable.prototype,"tableTitle",2),Xt([I.property({attribute:"readonly",type:Boolean})],A.GenusTable.prototype,"readonly",2),Xt([I.state()],A.GenusTable.prototype,"_labels",2),Xt([I.state()],A.GenusTable.prototype,"_keys",2),A.GenusTable=Xt([I.customElement("genus-table")],A.GenusTable),(()=>{let i=`
1332
1334
  @font-face
1333
1335
  {
1334
1336
  font-family: 'Sofia Pro';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.26.1",
4
+ "version": "1.28.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",