@massimo-cassandro/minimo 1.43.0 → 1.43.2
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/charts/src/helpers/parse-std-axis-opts.js +2 -1
- package/charts/src/lines.js +12 -0
- package/design-tokens/_src/table.minimo.tokens.mjs +16 -2
- package/dev-tools/starter-kit/source_files/app/CLAUDE.md +1 -0
- package/dev-tools/starter-kit/source_files/root/CLAUDE.md +1 -0
- package/dev-tools/starter-kit/source_files/root/_gitignore +1 -0
- package/dev-tools/starter-kit/source_files/root/_reports/.hintrc +12 -0
- package/dev-tools/starter-kit/source_files/root/_reports/README.md +45 -0
- package/dev-tools/starter-kit/source_files/root/_reports/_package.json +9 -0
- package/dev-tools/starter-kit/source_files/root/package-tpl.json +3 -2
- package/dev-tools/starter-kit/source_files/root/webpack.config.mjs +24 -17
- package/dev-tools/starter-kit/starter-install.sh +4 -4
- package/package.json +1 -1
- package/src/css/grid.css +16 -4
- package/src/css/table.css +12 -9
- package/src/custom-properties.css +8 -5
- package/src/web-components/json-table/json-table.minimo.tokens.mjs +1 -1
- package/src/web-components/json-table/jt-docs.md +1 -1
- package/types/classes.d.ts +5 -1
|
@@ -25,6 +25,7 @@ export function parseStdAxisOpts(params = {} ) {
|
|
|
25
25
|
values: [], // array flat dei valori per il calcolo di maxValues e minValues, qualora fossero null
|
|
26
26
|
legenda: null,
|
|
27
27
|
padding: 0, // spazio intorno ai bordi del grafico
|
|
28
|
+
padding_right: null, // padding del solo lato destro; se null viene usato `padding`
|
|
28
29
|
width: null, // width e height non possono essere null, vanno verificate prima
|
|
29
30
|
height: null,
|
|
30
31
|
eti_asseX_height: null, // non può essere null, va verificato prima
|
|
@@ -96,7 +97,7 @@ export function parseStdAxisOpts(params = {} ) {
|
|
|
96
97
|
// i lati sx e inferiore corrispondono agli assi
|
|
97
98
|
parsed.chart_area = {
|
|
98
99
|
top : legenda_height + gap_legenda + params.padding, // coordinata y superiore
|
|
99
|
-
right : params.width - params.padding, // coordinata x dx
|
|
100
|
+
right : params.width - (params.padding_right?? params.padding), // coordinata x dx
|
|
100
101
|
bottom : params.height - params.eti_asseX_height - params.ticksLength - params.padding, // coordinata y inferiore
|
|
101
102
|
left : params.eti_asseY_width + params.ticksLength + params.padding // coordinata x sx
|
|
102
103
|
};
|
package/charts/src/lines.js
CHANGED
|
@@ -274,6 +274,17 @@ export async function lines(params) {
|
|
|
274
274
|
.viewbox(0, 0, params.width, params.height)
|
|
275
275
|
.attr({...params.svgAttrs});
|
|
276
276
|
|
|
277
|
+
/*
|
|
278
|
+
L'ultimo punto di ogni linea cade sul limite destro della chart area:
|
|
279
|
+
se il padding è inferiore al raggio massimo dei punti, il cerchio verrebbe tagliato dal bordo dell'svg.
|
|
280
|
+
In tal caso il padding destro viene portato al raggio massimo.
|
|
281
|
+
*/
|
|
282
|
+
const radii = Array.isArray(params.data_points_attrs.r)
|
|
283
|
+
? params.data_points_attrs.r
|
|
284
|
+
: [params.data_points_attrs.r];
|
|
285
|
+
const maxPointRadius = Math.max(0, ...radii.map(r => Number(r) || 0));
|
|
286
|
+
const paddingRight = Math.max(params.padding, maxPointRadius);
|
|
287
|
+
|
|
277
288
|
// pre-elaborazione e calcolo di alcuni elementi (chartArea)
|
|
278
289
|
// nuove variabili definite da parseStdAxisOpts
|
|
279
290
|
const {
|
|
@@ -291,6 +302,7 @@ export async function lines(params) {
|
|
|
291
302
|
values: flatValues,
|
|
292
303
|
legenda: params.legenda,
|
|
293
304
|
padding: params.padding,
|
|
305
|
+
padding_right: paddingRight,
|
|
294
306
|
width: params.width,
|
|
295
307
|
height: params.height,
|
|
296
308
|
eti_asseX_height: params.xAxisLabelHeight,
|
|
@@ -12,7 +12,11 @@ export default {
|
|
|
12
12
|
$type: 'dimension',
|
|
13
13
|
$value: '3px'
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
'vertical-align': {
|
|
17
|
+
$type: 'string',
|
|
18
|
+
$value: 'middle',
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
tfoot: {
|
|
18
22
|
background: {
|
|
@@ -32,10 +36,15 @@ export default {
|
|
|
32
36
|
$type: 'fontWeight',
|
|
33
37
|
$value: '{font.weight.semibold}',
|
|
34
38
|
}
|
|
39
|
+
},
|
|
40
|
+
'vertical-align': {
|
|
41
|
+
$type: 'string',
|
|
42
|
+
$value: 'middle',
|
|
43
|
+
|
|
35
44
|
}
|
|
36
45
|
},
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
tbody: {
|
|
39
48
|
background: {
|
|
40
49
|
color: null
|
|
41
50
|
},
|
|
@@ -45,6 +54,11 @@ export default {
|
|
|
45
54
|
$value: '1px'
|
|
46
55
|
}
|
|
47
56
|
},
|
|
57
|
+
'vertical-align': {
|
|
58
|
+
$type: 'string',
|
|
59
|
+
$value: 'middle',
|
|
60
|
+
|
|
61
|
+
},
|
|
48
62
|
tr: {
|
|
49
63
|
'alt-bg-color': {
|
|
50
64
|
$type: 'color',
|
|
@@ -15,3 +15,4 @@
|
|
|
15
15
|
- nei commenti jsDoc aggiungere sempre dove possibile una sezione example che riepiloghi i vari parametri mostrando i valori di default
|
|
16
16
|
- commenti nel codice (inclusi TODO/FIX e jsDoc) e file README vanno scritti sempre in italiano; gli identificatori restano in inglese
|
|
17
17
|
- nei documenti markdown generati non andare a capo forzatamente alla fine di ogni riga: un paragrafo è una sola riga, così si usa il soft wrap dell'editor ed è più semplice fare correzioni
|
|
18
|
+
- Le tabelle nei file `.md` devono avere le celle allineate con spazi (colonne di larghezza uniforme, separatore `---` della stessa larghezza), in modo da essere leggibili anche in modalità editor.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Report Lighthouse / webhint
|
|
2
|
+
|
|
3
|
+
Cartella ignorata da git. Gli script sono in `package.json` di questa cartella;
|
|
4
|
+
`lighthouse` e `hint` sono devDependencies del progetto (root).
|
|
5
|
+
|
|
6
|
+
## Installazione
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
npm i -D lighthouse hint
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Step
|
|
13
|
+
|
|
14
|
+
Dalla root del progetto (o dentro `_reports`, senza `--prefix`):
|
|
15
|
+
|
|
16
|
+
1. Build di produzione: `npm run --prefix _reports "webpack PROD"`
|
|
17
|
+
2. Avvio PHP in prod (porta 8100): `npm run --prefix _reports "server PROD"`
|
|
18
|
+
(a fine test chiudere il terminale con il pulsante cestino di VS Code, per liberare la porta)
|
|
19
|
+
3. In un altro terminale:
|
|
20
|
+
- `npm run --prefix _reports "lighthouse mobile"` → `mobile.html`
|
|
21
|
+
- `npm run --prefix _reports "lighthouse desktop"` → `desktop.html`
|
|
22
|
+
- `npm run --prefix _reports webhint` → `hint-report/http-localhost-8100.html`
|
|
23
|
+
|
|
24
|
+
## Note
|
|
25
|
+
|
|
26
|
+
- Lanciare i test sempre sulla build prod, non sul dev server di webpack.
|
|
27
|
+
- webhint usa il connector `puppeteer` con il Chrome installato (`.hintrc` in questa cartella, `executablePath` di macOS; il finder automatico non lo trova), in modalità headless: render reale, quindi anche le regole sul layout sono attendibili. Gli avvisi iniziali su `typescript-config/*` sono normali (regole non applicabili).
|
|
28
|
+
- `.hintrc` va letto dalla directory corrente: lanciare webhint da `_reports` (lo script `--prefix` lo fa).
|
|
29
|
+
- Usare gli stessi dati nel database locale tra un run e l'altro: la home cambia con i gruppi disponibili e rende i punteggi non confrontabili.
|
|
30
|
+
- Lighthouse oscilla di qualche punto tra un run e l'altro: fare 3 run e prendere la mediana.
|
|
31
|
+
- Per i numeri definitivi (rete, compressione, CDN) ripetere su staging/produzione.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Caratteristiche del server
|
|
35
|
+
|
|
36
|
+
Lo script prod usa il server integrato di PHP (`php -S`). Rispetto al server reale tenere presente che:
|
|
37
|
+
|
|
38
|
+
* esegue un solo processo per volta, più richieste vanno in coda
|
|
39
|
+
* non esegue compressione gzip/brotli
|
|
40
|
+
|
|
41
|
+
Note:
|
|
42
|
+
|
|
43
|
+
- `APP_ENV=prod APP_DEBUG=0` sono variabili d'ambiente lette da Symfony (non dal server): con `php -S` vengono ereditate dal processo e hanno la precedenza sui file `.env` / `.env.local`.
|
|
44
|
+
- `php -S` usa il `php.ini` della CLI, che può differire da quello di `php-cgi`.
|
|
45
|
+
- Con richieste in coda i tempi di caricamento di asset e immagini possono risultare peggiori: i numeri di performance locali sono indicativi.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scripts": {
|
|
3
|
+
"webpack PROD": "cd .. && NODE_ENV=production webpack --config ./webpack.config.mjs --stats minimal",
|
|
4
|
+
"server PROD": "cd .. && APP_ENV=prod APP_DEBUG=0 php -S 127.0.0.1:8100 -t public public/index.php # http://localhost:8100 (server integrato php: la CLI symfony ammette un solo server per progetto)",
|
|
5
|
+
"lighthouse mobile": "npx lighthouse http://localhost:8100/ --form-factor=mobile --output=html --output-path=./mobile.html --view",
|
|
6
|
+
"lighthouse desktop": "npx lighthouse http://localhost:8100/ --preset=desktop --output=html --output-path=./desktop.html --view",
|
|
7
|
+
"webhint": "npx hint http://localhost:8100/"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"symfony server": "symfony serve --port=[[port8000]] --listen-ip=0.0.0.0 # http://192.168.1.135:[[port8000]] # -d (deamon): rimane aperto anche dopo la chiusura del terminale, terminare con `symfony server:stop`",
|
|
24
24
|
"launchChrome": "open -n -a 'Google Chrome' --args --profile-directory='Profile 3' # mbn: 1 / mg2: 3",
|
|
25
25
|
"webpack PROD": "npm run 'UPD-version' && NODE_ENV=production webpack --config ./webpack.config.mjs --stats minimal",
|
|
26
|
-
"UPD-version": "npx update-version --no-log-v0 --log-file=./changelog.md # --log-patch --pkg=alt/path/to/package.json --default-patch-log=__log_text__",
|
|
27
26
|
"email sass": "npx sass ./app/email:./templates/email/css --no-source-map --style=compressed --watch",
|
|
28
27
|
"postcss email": "postcss ./app/email/[!_]*.css --dir ./templates/email/css --no-map --verbose --config ./app/email --watch",
|
|
29
28
|
"eslint-check": "npx eslint app/",
|
|
@@ -35,12 +34,14 @@
|
|
|
35
34
|
"build tokens": "npx buildTokens --config ./app/css/tokens-config.mjs",
|
|
36
35
|
"check unresolved props": "npx checkUnresolvedProps --config ./app/css/tokens-config.mjs",
|
|
37
36
|
"find orphan css classes": "npx findOrphanCssClasses --config ./app/css/orphan-css-classes.config.mjs",
|
|
37
|
+
"UPD-version": "npx update-version --no-log-v0 --log-file=./changelog.md # --log-patch --pkg=alt/path/to/package.json --default-patch-log=__log_text__",
|
|
38
38
|
"npm-outdated": "npm outdated",
|
|
39
39
|
"upd@m": "npx upd@m",
|
|
40
40
|
"npm-upd": "npm update --save"
|
|
41
41
|
},
|
|
42
42
|
"allowScripts": {
|
|
43
|
-
"@parcel/watcher": false
|
|
43
|
+
"@parcel/watcher": false,
|
|
44
|
+
"fsevents@2.3.3": true
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {},
|
|
46
47
|
"dependencies": {}
|
|
@@ -103,21 +103,27 @@ const isDevelopment = process.env.NODE_ENV === 'development'
|
|
|
103
103
|
,minimo_path = './node_modules/@massimo-cassandro/minimo' // fromProjectRoot('node_modules/@massimo-cassandro/minimo')
|
|
104
104
|
|
|
105
105
|
,usePurgeCss = true // false per disattivare PurgeCSS (debug rapido di problemi legati al purge)
|
|
106
|
+
,purgeCssInDev = false
|
|
106
107
|
,purgeCSSOptions = {
|
|
107
108
|
keyframes: true, // rimuove i @keyframes non referenziati
|
|
108
109
|
debug: false // true per loggare i selettori rimossi da PurgeCSS a fine build
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
/*
|
|
113
|
+
plugin per l'estrazione ottimizzata delle custom properties (vedi
|
|
114
|
+
webpack-config-modules/custom-props-purgecss-plugin.mjs): dopo la
|
|
115
|
+
minificazione inietta nei css compilati SOLO le definizioni di custom
|
|
116
|
+
properties effettivamente usate, prese dal file master. I css del progetto
|
|
117
|
+
contengono quindi solo usi `var(--nome)`, mai definizioni (custom-properties.css
|
|
118
|
+
NON va importato nelle entry css). Se false il plugin non viene nemmeno
|
|
119
|
+
caricato e la gestione delle custom properties resta a carico del progetto
|
|
120
|
+
*/
|
|
118
121
|
,useCustomPropsPlugin = true
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
file master con TUTTE le definizioni di custom properties disponibili
|
|
125
|
+
(copiato da minimo da starter-install.sh, generato da `npm run 'build tokens'`)
|
|
126
|
+
*/
|
|
121
127
|
,customPropsFile = path.resolve(__dirname, './app/css/custom-properties.css')
|
|
122
128
|
|
|
123
129
|
/*
|
|
@@ -143,14 +149,15 @@ const isDevelopment = process.env.NODE_ENV === 'development'
|
|
|
143
149
|
*/
|
|
144
150
|
,standaloneEntries = []
|
|
145
151
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
/*
|
|
153
|
+
PurgeCSS e plugin custom properties lavorano sugli asset css finali:
|
|
154
|
+
in dev, con `false`, sono entrambi disattivati (build più veloce, css
|
|
155
|
+
iniettato con style-loader; se `useCustomPropsPlugin` è true le definizioni
|
|
156
|
+
vengono aggiunte per intero alle entry, vedi `parsedEntries`).
|
|
157
|
+
Con `purgeCssInDev = true` (a scopo di test) sono attivi come in produzione (secondo i
|
|
158
|
+
rispettivi flag `usePurgeCss` / `useCustomPropsPlugin`) e `inlineCssInDevMode`
|
|
159
|
+
viene forzato a false
|
|
160
|
+
*/
|
|
154
161
|
,runCustomPropsPlugin = useCustomPropsPlugin && (!isDevelopment || purgeCssInDev)
|
|
155
162
|
// ,manifest_shared_seed = {}
|
|
156
163
|
;
|
|
@@ -42,13 +42,13 @@ fi
|
|
|
42
42
|
# Package manager da utilizzare per l'installazione dei pacchetti: 1 = pnpm
|
|
43
43
|
# (default), 2 = npm. Il valore viene usato più sotto (sezione NODE MODULES)
|
|
44
44
|
# per scegliere il comando di installazione.
|
|
45
|
-
read "PM_INPUT?Package manager da utilizzare (1 =
|
|
45
|
+
read "PM_INPUT?Package manager da utilizzare (1 = npm, 2 = pnpm) [1]: "
|
|
46
46
|
PM_INPUT=${PM_INPUT:-1}
|
|
47
47
|
case "$PM_INPUT" in
|
|
48
|
-
1) PKG_MANAGER="
|
|
49
|
-
2) PKG_MANAGER="
|
|
48
|
+
1) PKG_MANAGER="npm" ;;
|
|
49
|
+
2) PKG_MANAGER="pnpm" ;;
|
|
50
50
|
*)
|
|
51
|
-
printf "${RED}Errore: inserire 1 (
|
|
51
|
+
printf "${RED}Errore: inserire 1 (npm) oppure 2 (pnpm).${NC}\n" >&2
|
|
52
52
|
exit 1
|
|
53
53
|
;;
|
|
54
54
|
esac
|
package/package.json
CHANGED
package/src/css/grid.css
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.grid {
|
|
4
4
|
--_cols: 1;
|
|
5
|
-
/* --_min-col-width: calc((100% - calc(var(--_cols) * var(--flex-grid-gap))) / var(--grid-cols)); NB custom prop rimossa */
|
|
6
5
|
|
|
7
6
|
display: grid;
|
|
8
|
-
/* grid-template-columns: repeat(var(--_cols), minmax(var(--grid-min-col-width), 1fr)); NB custom prop rimossa */
|
|
9
7
|
grid-template-columns: repeat(var(--_cols), minmax(0, 1fr));
|
|
10
8
|
grid-auto-flow: row;
|
|
11
9
|
gap: var(--flex-grid-gap);
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
@media (--media-large-viewport-up) {
|
|
29
27
|
--_cols: 4;
|
|
30
28
|
|
|
31
|
-
/* versione a
|
|
29
|
+
/* versione a 2-10 colonne */
|
|
32
30
|
&.grid-2 {
|
|
33
31
|
--_cols: 2;
|
|
34
32
|
}
|
|
@@ -44,9 +42,18 @@
|
|
|
44
42
|
&.grid-6 {
|
|
45
43
|
--_cols: 6;
|
|
46
44
|
}
|
|
45
|
+
&.grid-7 {
|
|
46
|
+
--_cols: 6;
|
|
47
|
+
}
|
|
47
48
|
&.grid-8 {
|
|
48
49
|
--_cols: 8;
|
|
49
50
|
}
|
|
51
|
+
&.grid-9 {
|
|
52
|
+
--_cols: 9;
|
|
53
|
+
}
|
|
54
|
+
&.grid-10 {
|
|
55
|
+
--_cols: 10;
|
|
56
|
+
}
|
|
50
57
|
|
|
51
58
|
> .span-2 {
|
|
52
59
|
grid-column-end: span 2;
|
|
@@ -54,10 +61,15 @@
|
|
|
54
61
|
> .span-3 {
|
|
55
62
|
grid-column-end: span 3;
|
|
56
63
|
}
|
|
57
|
-
|
|
58
64
|
> .span-4 {
|
|
59
65
|
grid-column-end: span 4;
|
|
60
66
|
}
|
|
67
|
+
> .span-5 {
|
|
68
|
+
grid-column-end: span 5;
|
|
69
|
+
}
|
|
70
|
+
> .span-6 {
|
|
71
|
+
grid-column-end: span 6;
|
|
72
|
+
}
|
|
61
73
|
} /* end @media */
|
|
62
74
|
|
|
63
75
|
/* grid items */
|
package/src/css/table.css
CHANGED
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
tr:last-child {
|
|
25
25
|
border-width: var(--table-thead-border-width);
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
th {
|
|
29
|
+
vertical-align: var(--table-thead-vertical-align, top);
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
tfoot {
|
|
@@ -33,31 +37,30 @@
|
|
|
33
37
|
}
|
|
34
38
|
th, td {
|
|
35
39
|
font-weight: var(--table-tfoot-font-weight);
|
|
40
|
+
vertical-align: var(--table-tfoot-vertical-align, top);
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
tbody {
|
|
40
45
|
tr:nth-child(even) {
|
|
41
|
-
background-color: var(--table-
|
|
46
|
+
background-color: var(--table-tbody-tr-alt-bg-color);
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
@media (hover: hover) {
|
|
45
50
|
tr:hover {
|
|
46
|
-
background-color: var(--table-
|
|
51
|
+
background-color: var(--table-tbody-tr-hover-bg-color);
|
|
47
52
|
}
|
|
48
53
|
}
|
|
54
|
+
th {
|
|
55
|
+
vertical-align: var(--table-tbody-vertical-align, top);
|
|
56
|
+
}
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
|
|
52
60
|
th, td {
|
|
53
61
|
padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
|
|
54
62
|
line-height: var(--table-cell-line-height);
|
|
55
|
-
vertical-align: top;
|
|
56
63
|
text-align: start;
|
|
57
|
-
|
|
58
|
-
.valign-middle &, &.valign-middle {
|
|
59
|
-
vertical-align: middle;
|
|
60
|
-
}
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
&.table-bordered {
|
|
@@ -76,8 +79,8 @@
|
|
|
76
79
|
@media (prefers-color-scheme: dark) {
|
|
77
80
|
.table {
|
|
78
81
|
--table-border-color: var(--_stone-8);
|
|
79
|
-
--table-
|
|
80
|
-
--table-
|
|
82
|
+
--table-tbody-tr-alt-bg-color: color-mix(in srgb, var(--_stone-12) 60%, transparent);
|
|
83
|
+
--table-tbody-tr-hover-bg-color: color-mix(in srgb, var(--_blue-12) 60%, transparent);
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
*/
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
--jt-caption-font-size: var(--font-size-sm);
|
|
228
228
|
--jt-empty-color: var(--text-muted);
|
|
229
229
|
--jt-empty-padding-block: var(--size-sm);
|
|
230
|
-
--jt-info-color: var(--text-
|
|
230
|
+
--jt-info-color: var(--text-color);
|
|
231
231
|
--jt-info-font-size: var(--font-size-sm);
|
|
232
232
|
--jt-info-gap: var(--size-sm);
|
|
233
233
|
--jt-info-outer-padding-block-end: var(--size-xs);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
--jt-pagination-current-font-weight: var(--font-weight-semibold);
|
|
241
241
|
--jt-pagination-disabled-opacity: .5;
|
|
242
242
|
--jt-pagination-font-size: var(--font-size-sm);
|
|
243
|
-
--jt-pagination-hover-background-color: var(--table-
|
|
243
|
+
--jt-pagination-hover-background-color: var(--table-tbody-tr-hover-bg-color);
|
|
244
244
|
--jt-pagination-icon-size: 1em;
|
|
245
245
|
--jt-pagination-line-height: var(--table-cell-line-height);
|
|
246
246
|
--jt-pagination-radius: var(--radius-xxs);
|
|
@@ -420,18 +420,21 @@
|
|
|
420
420
|
--status-warning-color: #fc0;
|
|
421
421
|
--status-warning-fg: #4f2900;
|
|
422
422
|
|
|
423
|
-
--table-body-border-width: 1px;
|
|
424
|
-
--table-body-tr-alt-bg-color: #efefef;
|
|
425
|
-
--table-body-tr-hover-bg-color: #cbcbcb;
|
|
426
423
|
--table-border-color: #333;
|
|
427
424
|
--table-cell-line-height: 1.3;
|
|
428
425
|
--table-cell-padding-block: .3rem;
|
|
429
426
|
--table-cell-padding-inline: .6rem;
|
|
427
|
+
--table-tbody-border-width: 1px;
|
|
428
|
+
--table-tbody-tr-alt-bg-color: #efefef;
|
|
429
|
+
--table-tbody-tr-hover-bg-color: #cbcbcb;
|
|
430
|
+
--table-tbody-vertical-align: middle;
|
|
430
431
|
--table-tfoot-background-color: var(--table-thead-background-color);
|
|
431
432
|
--table-tfoot-border-width: var(--table-thead-border-width);
|
|
432
433
|
--table-tfoot-font-weight: var(--font-weight-semibold);
|
|
434
|
+
--table-tfoot-vertical-align: middle;
|
|
433
435
|
--table-thead-background-color: #ddd;
|
|
434
436
|
--table-thead-border-width: 3px;
|
|
437
|
+
--table-thead-vertical-align: middle;
|
|
435
438
|
|
|
436
439
|
--text-color: #000;
|
|
437
440
|
--text-dim: var(--text-muted);
|
|
@@ -506,7 +506,7 @@ Definite in `json-table.minimo.tokens.mjs` (namespace `--jt-*`):
|
|
|
506
506
|
| `--jt-pagination-icon-size` | `1em` |
|
|
507
507
|
| `--jt-pagination-current-background-color` | `{table.thead.background.color}` |
|
|
508
508
|
| `--jt-pagination-current-font-weight` | `{font.weight.semibold}` |
|
|
509
|
-
| `--jt-pagination-hover-background-color` | `{table.
|
|
509
|
+
| `--jt-pagination-hover-background-color` | `{table.tbody.tr.hover-bg-color}` |
|
|
510
510
|
| `--jt-pagination-disabled-opacity` | `.5` |
|
|
511
511
|
| `--jt-bool-icon-size` | `1.1em` |
|
|
512
512
|
| `--jt-bool-true-color` | `{status.success.color}` |
|
package/types/classes.d.ts
CHANGED
|
@@ -76,12 +76,15 @@ export type MinimoClass =
|
|
|
76
76
|
| 'gap-0'
|
|
77
77
|
| 'gap-2'
|
|
78
78
|
| 'grid'
|
|
79
|
+
| 'grid-10'
|
|
79
80
|
| 'grid-2'
|
|
80
81
|
| 'grid-3'
|
|
81
82
|
| 'grid-4'
|
|
82
83
|
| 'grid-5'
|
|
83
84
|
| 'grid-6'
|
|
85
|
+
| 'grid-7'
|
|
84
86
|
| 'grid-8'
|
|
87
|
+
| 'grid-9'
|
|
85
88
|
| 'grid-full-row'
|
|
86
89
|
| 'grid-item-last'
|
|
87
90
|
| 'grid-new-row'
|
|
@@ -854,6 +857,8 @@ export type MinimoClass =
|
|
|
854
857
|
| 'span-2'
|
|
855
858
|
| 'span-3'
|
|
856
859
|
| 'span-4'
|
|
860
|
+
| 'span-5'
|
|
861
|
+
| 'span-6'
|
|
857
862
|
| 'spinner'
|
|
858
863
|
| 'table'
|
|
859
864
|
| 'table-bordered'
|
|
@@ -878,7 +883,6 @@ export type MinimoClass =
|
|
|
878
883
|
| 'text-upper'
|
|
879
884
|
| 'text-warning'
|
|
880
885
|
| 'text-xs'
|
|
881
|
-
| 'valign-middle'
|
|
882
886
|
| 'visibility-hidden'
|
|
883
887
|
| 'visually-hidden'
|
|
884
888
|
| 'w-100'
|