@kanunilabs/datagrid-react 1.8.9 → 1.8.11
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.cjs +3 -3
- package/dist/index.d.cts +51 -5
- package/dist/index.d.ts +51 -5
- package/dist/index.js +3 -3
- package/dist/styles.css +40 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2682,6 +2682,13 @@
|
|
|
2682
2682
|
position: static !important;
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
|
+
|
|
2686
|
+
/* The printable copy of the grid, made at `beforeprint` so the column headers
|
|
2687
|
+
repeat on every page (P-15; see hooks/printTable.ts). Invisible on screen. */
|
|
2688
|
+
.kanuni-datagrid-print-table {
|
|
2689
|
+
display: none;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2685
2692
|
/* Rules that only make sense once the ink is on paper. */
|
|
2686
2693
|
@media print {
|
|
2687
2694
|
/* Release the page around the grid.
|
|
@@ -2711,6 +2718,25 @@
|
|
|
2711
2718
|
page-break-inside: avoid;
|
|
2712
2719
|
}
|
|
2713
2720
|
|
|
2721
|
+
/* Column headers on every page (P-15): the live canvas gives way to its
|
|
2722
|
+
<table> copy, whose <thead> the browser repeats. Rows never split. */
|
|
2723
|
+
.kanuni-datagrid-print [data-print-clone] {
|
|
2724
|
+
display: none !important;
|
|
2725
|
+
}
|
|
2726
|
+
.kanuni-datagrid-print .kanuni-datagrid-print-table {
|
|
2727
|
+
display: table;
|
|
2728
|
+
border-collapse: collapse;
|
|
2729
|
+
border-spacing: 0;
|
|
2730
|
+
}
|
|
2731
|
+
.kanuni-datagrid-print .kanuni-datagrid-print-table td {
|
|
2732
|
+
padding: 0;
|
|
2733
|
+
border: 0;
|
|
2734
|
+
}
|
|
2735
|
+
.kanuni-datagrid-print .kanuni-datagrid-print-table tr {
|
|
2736
|
+
break-inside: avoid;
|
|
2737
|
+
page-break-inside: avoid;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2714
2740
|
/* Chrome and Safari drop background colours by default, which turns the
|
|
2715
2741
|
header, the group banners and the row striping into undifferentiated white.
|
|
2716
2742
|
The structure IS the meaning here, so ask for them back. */
|
|
@@ -3015,6 +3041,20 @@
|
|
|
3015
3041
|
border-bottom-color: var(--dg-danger);
|
|
3016
3042
|
}
|
|
3017
3043
|
|
|
3044
|
+
/* `lookup.restrictInput` (P-12): a short flash where a refused key landed. No
|
|
3045
|
+
message; the box keeps its text and caret. */
|
|
3046
|
+
.kanuni-datagrid-root .kanuni-datagrid-editor--refused {
|
|
3047
|
+
border-bottom-color: var(--dg-danger);
|
|
3048
|
+
animation: kanuni-datagrid-refused 240ms ease-in-out;
|
|
3049
|
+
}
|
|
3050
|
+
@keyframes kanuni-datagrid-refused {
|
|
3051
|
+
25% { transform: translateX(-2px); }
|
|
3052
|
+
75% { transform: translateX(2px); }
|
|
3053
|
+
}
|
|
3054
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3055
|
+
.kanuni-datagrid-root .kanuni-datagrid-editor--refused { animation: none; }
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3018
3058
|
/* The cell holding an editor gives up its focus ring — the underline is the
|
|
3019
3059
|
marker now, and the ring is the other half of the double rectangle.
|
|
3020
3060
|
It also goes to the plain surface colour: the row underneath may be striped,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/datagrid-react",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.11",
|
|
4
4
|
"description": "High-performance React data grid — virtualized rows and columns, sticky pinned columns, sorting, filtering and theming",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@kanunilabs/datagrid-core": "1.10.
|
|
60
|
+
"@kanunilabs/datagrid-core": "1.10.11"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": ">=18.0.0",
|