@kanunilabs/datagrid 1.9.9 → 1.9.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/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",
3
- "version": "1.9.9",
3
+ "version": "1.9.11",
4
4
  "description": "High-performance data grid for vanilla JavaScript — no framework required. Virtualized rows and columns, a Web Worker pipeline, sorting, filtering, grouping and theming, with a UMD build for script-tag use.",
5
5
  "keywords": [
6
6
  "data-grid",
@@ -60,7 +60,7 @@
60
60
  "access": "public"
61
61
  },
62
62
  "dependencies": {
63
- "@kanunilabs/datagrid-core": "1.10.9"
63
+ "@kanunilabs/datagrid-core": "1.10.11"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "^22.0.0",
@@ -68,8 +68,8 @@
68
68
  "jsdom": "^30.0.1",
69
69
  "react": "^19.0.0",
70
70
  "react-dom": "^19.0.0",
71
- "@kanunilabs/datagrid-react": "1.8.9",
72
- "@kanunilabs/foundation": "1.0.4"
71
+ "@kanunilabs/foundation": "1.0.4",
72
+ "@kanunilabs/datagrid-react": "1.8.11"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsup && node scripts/build-css.mjs && node scripts/build-umd.mjs && node ../../scripts/check-esm-load.mjs",