@vaadin/grid 25.0.0-alpha2 → 25.0.0-alpha20

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.
Files changed (84) hide show
  1. package/all-imports.js +1 -1
  2. package/package.json +12 -13
  3. package/src/array-data-provider.js +9 -2
  4. package/src/lit/column-renderer-directives.d.ts +0 -1
  5. package/src/styles/vaadin-grid-base-styles.d.ts +8 -0
  6. package/src/styles/vaadin-grid-base-styles.js +671 -0
  7. package/src/styles/vaadin-grid-filter-base-styles.d.ts +8 -0
  8. package/src/styles/vaadin-grid-filter-base-styles.js +18 -0
  9. package/src/styles/vaadin-grid-sorter-base-styles.d.ts +8 -0
  10. package/src/styles/vaadin-grid-sorter-base-styles.js +64 -0
  11. package/src/styles/vaadin-grid-tree-toggle-base-styles.d.ts +8 -0
  12. package/src/styles/vaadin-grid-tree-toggle-base-styles.js +76 -0
  13. package/src/vaadin-grid-a11y-mixin.js +26 -10
  14. package/src/vaadin-grid-column-auto-width-mixin.js +9 -6
  15. package/src/vaadin-grid-column-mixin.d.ts +1 -0
  16. package/src/vaadin-grid-column-mixin.js +1 -16
  17. package/src/vaadin-grid-column-reordering-mixin.js +2 -2
  18. package/src/vaadin-grid-data-provider-mixin.js +33 -85
  19. package/src/vaadin-grid-drag-and-drop-mixin.js +3 -0
  20. package/src/vaadin-grid-event-context-mixin.d.ts +2 -0
  21. package/src/vaadin-grid-event-context-mixin.js +1 -0
  22. package/src/vaadin-grid-filter-element-mixin.js +0 -17
  23. package/src/vaadin-grid-filter.js +7 -1
  24. package/src/vaadin-grid-helpers.js +9 -0
  25. package/src/vaadin-grid-keyboard-navigation-mixin.js +2 -6
  26. package/src/vaadin-grid-mixin.d.ts +1 -0
  27. package/src/vaadin-grid-mixin.js +64 -32
  28. package/src/vaadin-grid-row-details-mixin.js +5 -5
  29. package/src/vaadin-grid-scroll-mixin.js +57 -77
  30. package/src/vaadin-grid-selection-column-base-mixin.d.ts +1 -1
  31. package/src/vaadin-grid-selection-column-base-mixin.js +1 -1
  32. package/src/vaadin-grid-selection-column.d.ts +2 -0
  33. package/src/vaadin-grid-selection-column.js +2 -1
  34. package/src/vaadin-grid-sort-column.d.ts +2 -0
  35. package/src/vaadin-grid-sorter-mixin.js +0 -60
  36. package/src/vaadin-grid-sorter.d.ts +3 -3
  37. package/src/vaadin-grid-sorter.js +10 -4
  38. package/src/vaadin-grid-tree-column-mixin.js +2 -7
  39. package/src/vaadin-grid-tree-toggle-mixin.js +0 -77
  40. package/src/vaadin-grid-tree-toggle.d.ts +4 -4
  41. package/src/vaadin-grid-tree-toggle.js +13 -5
  42. package/src/vaadin-grid.d.ts +2 -1
  43. package/src/vaadin-grid.js +6 -3
  44. package/vaadin-grid-column-group.js +1 -1
  45. package/vaadin-grid-column.js +1 -1
  46. package/vaadin-grid-filter-column.js +1 -1
  47. package/vaadin-grid-filter.js +1 -1
  48. package/vaadin-grid-selection-column.js +1 -1
  49. package/vaadin-grid-sort-column.js +1 -1
  50. package/vaadin-grid-sorter.js +1 -1
  51. package/vaadin-grid-tree-column.js +1 -1
  52. package/vaadin-grid-tree-toggle.js +1 -1
  53. package/vaadin-grid.js +1 -1
  54. package/web-types.json +13 -13
  55. package/web-types.lit.json +12 -12
  56. package/src/vaadin-grid-styles.js +0 -389
  57. package/theme/lumo/all-imports.d.ts +0 -11
  58. package/theme/lumo/all-imports.js +0 -11
  59. package/theme/lumo/vaadin-grid-column-group.d.ts +0 -1
  60. package/theme/lumo/vaadin-grid-column-group.js +0 -1
  61. package/theme/lumo/vaadin-grid-column.d.ts +0 -1
  62. package/theme/lumo/vaadin-grid-column.js +0 -1
  63. package/theme/lumo/vaadin-grid-filter-column.d.ts +0 -2
  64. package/theme/lumo/vaadin-grid-filter-column.js +0 -2
  65. package/theme/lumo/vaadin-grid-filter.d.ts +0 -2
  66. package/theme/lumo/vaadin-grid-filter.js +0 -2
  67. package/theme/lumo/vaadin-grid-selection-column.d.ts +0 -2
  68. package/theme/lumo/vaadin-grid-selection-column.js +0 -2
  69. package/theme/lumo/vaadin-grid-sort-column.d.ts +0 -2
  70. package/theme/lumo/vaadin-grid-sort-column.js +0 -2
  71. package/theme/lumo/vaadin-grid-sorter-styles.d.ts +0 -3
  72. package/theme/lumo/vaadin-grid-sorter-styles.js +0 -52
  73. package/theme/lumo/vaadin-grid-sorter.d.ts +0 -2
  74. package/theme/lumo/vaadin-grid-sorter.js +0 -2
  75. package/theme/lumo/vaadin-grid-styles.d.ts +0 -6
  76. package/theme/lumo/vaadin-grid-styles.js +0 -405
  77. package/theme/lumo/vaadin-grid-tree-column.d.ts +0 -2
  78. package/theme/lumo/vaadin-grid-tree-column.js +0 -2
  79. package/theme/lumo/vaadin-grid-tree-toggle-styles.d.ts +0 -3
  80. package/theme/lumo/vaadin-grid-tree-toggle-styles.js +0 -81
  81. package/theme/lumo/vaadin-grid-tree-toggle.d.ts +0 -2
  82. package/theme/lumo/vaadin-grid-tree-toggle.js +0 -2
  83. package/theme/lumo/vaadin-grid.d.ts +0 -2
  84. package/theme/lumo/vaadin-grid.js +0 -2
package/all-imports.js CHANGED
@@ -1,4 +1,4 @@
1
- import './theme/lumo/all-imports.js';
1
+ import './src/all-imports.js';
2
2
 
3
3
  export * from './vaadin-grid-column-group.js';
4
4
  export * from './vaadin-grid-column.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid",
3
- "version": "25.0.0-alpha2",
3
+ "version": "25.0.0-alpha20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,7 +25,6 @@
25
25
  "lit.d.ts",
26
26
  "lit.js",
27
27
  "src",
28
- "theme",
29
28
  "vaadin-*.d.ts",
30
29
  "vaadin-*.js",
31
30
  "web-types.json",
@@ -45,24 +44,24 @@
45
44
  ],
46
45
  "dependencies": {
47
46
  "@open-wc/dedupe-mixin": "^1.3.0",
48
- "@vaadin/a11y-base": "25.0.0-alpha2",
49
- "@vaadin/checkbox": "25.0.0-alpha2",
50
- "@vaadin/component-base": "25.0.0-alpha2",
51
- "@vaadin/lit-renderer": "25.0.0-alpha2",
52
- "@vaadin/text-field": "25.0.0-alpha2",
53
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha2",
54
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha2",
47
+ "@vaadin/a11y-base": "25.0.0-alpha20",
48
+ "@vaadin/checkbox": "25.0.0-alpha20",
49
+ "@vaadin/component-base": "25.0.0-alpha20",
50
+ "@vaadin/lit-renderer": "25.0.0-alpha20",
51
+ "@vaadin/text-field": "25.0.0-alpha20",
52
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha20",
55
53
  "lit": "^3.0.0"
56
54
  },
57
55
  "devDependencies": {
58
- "@vaadin/chai-plugins": "25.0.0-alpha2",
59
- "@vaadin/test-runner-commands": "25.0.0-alpha2",
56
+ "@vaadin/chai-plugins": "25.0.0-alpha20",
57
+ "@vaadin/test-runner-commands": "25.0.0-alpha20",
60
58
  "@vaadin/testing-helpers": "^2.0.0",
61
- "sinon": "^18.0.0"
59
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha20",
60
+ "sinon": "^21.0.0"
62
61
  },
63
62
  "web-types": [
64
63
  "web-types.json",
65
64
  "web-types.lit.json"
66
65
  ],
67
- "gitHead": "67ffcd5355cf21ce1b5039c598525109fc4c164b"
66
+ "gitHead": "c948aae591a30b432f3784000d4677674cae56e0"
68
67
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+
1
7
  /**
2
8
  * Returns a sub-property of an object
3
9
  *
@@ -73,7 +79,7 @@ function compare(a, b) {
73
79
  * Sorts the given array of items based on the sorting rules and returns the result.
74
80
  *
75
81
  * @param {Array<any>} items
76
- * @param {Array<GridSorterDefinition>} items
82
+ * @param {Array<GridSorterDefinition>} sortOrders
77
83
  * @return {Array<any>}
78
84
  */
79
85
  function multiSort(items, sortOrders) {
@@ -95,6 +101,7 @@ function multiSort(items, sortOrders) {
95
101
 
96
102
  /**
97
103
  * @param {!Array<!GridItem>} items
104
+ * @param {Array<GridFilterDefinition>} filters
98
105
  * @return {!Array<!GridItem>}
99
106
  */
100
107
  function filter(items, filters) {
@@ -114,7 +121,7 @@ function filter(items, filters) {
114
121
  * Creates a new grid compatible data provider that serves the items
115
122
  * from the given array as data when requested by the grid.
116
123
  *
117
- * @param {Array<any>} items
124
+ * @param {Array<any>} allItems
118
125
  * @return {GridDataProvider<any>}
119
126
  */
120
127
  export const createArrayDataProvider = (allItems) => {
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- /* eslint-disable max-classes-per-file */
7
6
  import type { DirectiveResult } from 'lit/directive.js';
8
7
  import type { LitRenderer, LitRendererResult } from '@vaadin/lit-renderer';
9
8
  import { LitRendererDirective } from '@vaadin/lit-renderer';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const gridStyles: CSSResult;