@massimo-cassandro/minimo 1.32.3 → 1.32.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.32.3",
3
+ "version": "1.32.4",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -119,6 +119,13 @@ import caretRightIcon from '../../icons/caret-right.svg?inline';
119
119
  * @param {number} perPage Numero di righe per pagina.
120
120
  * Default: `25` (default: 25)
121
121
  *
122
+ * @param {string} tableClass Classi CSS del tag `<table>`, in sostituzione delle
123
+ * classi di default `table table-bordered`. La classe
124
+ * interna `styles.table` (necessaria al layout del
125
+ * componente) viene sempre applicata, a prescindere da
126
+ * questo parametro.
127
+ * Default: `'table table-bordered'` (default: 'table table-bordered')
128
+ *
122
129
  * @param {string} renderNullAs Stringa globale da mostrare al posto di valori null/undefined
123
130
  * in tutte le colonne. Può essere sovrascritto per singola
124
131
  * colonna con `_renderNullAs`.
@@ -803,6 +810,7 @@ class SimpleDatatableAdapter extends HTMLElement {
803
810
  this.appendChild(table);
804
811
 
805
812
  const perPage = +this._getParam('perPage', 25);
813
+ const tableClass = this._getParam('tableClass', 'table table-bordered');
806
814
 
807
815
  this._dt = new DataTable(table, {
808
816
  locale: 'it',
@@ -853,7 +861,7 @@ class SimpleDatatableAdapter extends HTMLElement {
853
861
  empty : styles.empty,
854
862
 
855
863
  // table
856
- table : `table table-bordered ${styles.table}`,
864
+ table : `${styles.table} ${tableClass}`,
857
865
  // buttons in thead per il sort
858
866
  sorter : `btn-reset ${styles.sortBtn}`,
859
867
  ascending : styles.sortAscending,