@vaadin/grid-pro 25.0.0-alpha10 → 25.0.0-alpha12

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": "@vaadin/grid-pro",
3
- "version": "25.0.0-alpha10",
3
+ "version": "25.0.0-alpha12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,9 +23,6 @@
23
23
  "lit.d.ts",
24
24
  "lit.js",
25
25
  "src",
26
- "!src/styles/*-base-styles.d.ts",
27
- "!src/styles/*-base-styles.js",
28
- "theme",
29
26
  "vaadin-*.d.ts",
30
27
  "vaadin-*.js",
31
28
  "web-types.json",
@@ -39,20 +36,20 @@
39
36
  ],
40
37
  "dependencies": {
41
38
  "@open-wc/dedupe-mixin": "^1.3.0",
42
- "@vaadin/checkbox": "25.0.0-alpha10",
43
- "@vaadin/component-base": "25.0.0-alpha10",
44
- "@vaadin/grid": "25.0.0-alpha10",
45
- "@vaadin/lit-renderer": "25.0.0-alpha10",
46
- "@vaadin/select": "25.0.0-alpha10",
47
- "@vaadin/text-field": "25.0.0-alpha10",
48
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha10",
49
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha10",
39
+ "@vaadin/checkbox": "25.0.0-alpha12",
40
+ "@vaadin/component-base": "25.0.0-alpha12",
41
+ "@vaadin/grid": "25.0.0-alpha12",
42
+ "@vaadin/lit-renderer": "25.0.0-alpha12",
43
+ "@vaadin/select": "25.0.0-alpha12",
44
+ "@vaadin/text-field": "25.0.0-alpha12",
45
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha12",
50
46
  "lit": "^3.0.0"
51
47
  },
52
48
  "devDependencies": {
53
- "@vaadin/chai-plugins": "25.0.0-alpha10",
54
- "@vaadin/test-runner-commands": "25.0.0-alpha10",
49
+ "@vaadin/chai-plugins": "25.0.0-alpha12",
50
+ "@vaadin/test-runner-commands": "25.0.0-alpha12",
55
51
  "@vaadin/testing-helpers": "^2.0.0",
52
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha12",
56
53
  "sinon": "^18.0.0"
57
54
  },
58
55
  "cvdlName": "vaadin-grid-pro",
@@ -60,5 +57,5 @@
60
57
  "web-types.json",
61
58
  "web-types.lit.json"
62
59
  ],
63
- "gitHead": "6cc6c94079e805fa5b2f0af4dbf3b2a7485e57d0"
60
+ "gitHead": "e75527348f9ba7c363d068c868b9f030c15b84a1"
64
61
  }
@@ -8,7 +8,7 @@
8
8
  * See https://vaadin.com/commercial-license-and-service-terms for the full
9
9
  * license.
10
10
  */
11
- import '@vaadin/component-base/src/style-props.js';
11
+ import '@vaadin/component-base/src/styles/style-props.js';
12
12
  import { css } from 'lit';
13
13
  import { gridStyles } from '@vaadin/grid/src/styles/vaadin-grid-base-styles.js';
14
14
 
@@ -23,7 +23,7 @@ const gridPro = css`
23
23
  display: flex;
24
24
  align-items: inherit;
25
25
  align-self: stretch;
26
- flex: 1;
26
+ flex-grow: 1;
27
27
  min-width: 0;
28
28
  cursor: var(--vaadin-clickable-cursor);
29
29
  outline: 0;
@@ -11,7 +11,7 @@
11
11
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
12
12
  import { SlotStylesMixin } from '@vaadin/component-base/src/slot-styles-mixin.js';
13
13
  import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
14
- import { gridProStyles } from './styles/vaadin-grid-pro-core-styles.js';
14
+ import { gridProStyles } from './styles/vaadin-grid-pro-base-styles.js';
15
15
  import { InlineEditingMixin } from './vaadin-grid-pro-inline-editing-mixin.js';
16
16
 
17
17
  /**
@@ -1,3 +1,3 @@
1
- import './theme/lumo/vaadin-grid-pro-edit-column.js';
1
+ import './src/vaadin-grid-pro-edit-column.js';
2
2
 
3
3
  export * from './src/vaadin-grid-pro-edit-column.js';
@@ -1,3 +1,3 @@
1
- import './theme/lumo/vaadin-grid-pro.js';
1
+ import './src/vaadin-grid-pro.js';
2
2
 
3
3
  export * from './src/vaadin-grid-pro.js';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "25.0.0-alpha10",
4
+ "version": "25.0.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -401,7 +401,7 @@
401
401
  },
402
402
  {
403
403
  "name": "vaadin-grid-pro",
404
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-select).",
404
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-select).",
405
405
  "attributes": [
406
406
  {
407
407
  "name": "accessible-name",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "25.0.0-alpha10",
4
+ "version": "25.0.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -177,7 +177,7 @@
177
177
  },
178
178
  {
179
179
  "name": "vaadin-grid-pro",
180
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha10/#/elements/vaadin-select).",
180
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-grid) documentation for details.\n\n```html\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha12/#/elements/vaadin-select).",
181
181
  "extension": true,
182
182
  "attributes": [
183
183
  {
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import type { CSSResult } from 'lit';
12
-
13
- export const gridProStyles: CSSResult;
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import { gridStyles } from '@vaadin/grid/src/styles/vaadin-grid-core-styles.js';
12
-
13
- export const gridProStyles = gridStyles;
@@ -1,2 +0,0 @@
1
- import '@vaadin/checkbox/theme/lumo/vaadin-checkbox.js';
2
- import '../../src/vaadin-grid-pro-edit-checkbox.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/checkbox/theme/lumo/vaadin-checkbox.js';
2
- import '../../src/vaadin-grid-pro-edit-checkbox.js';
@@ -1,4 +0,0 @@
1
- import './vaadin-grid-pro-edit-checkbox.js';
2
- import './vaadin-grid-pro-edit-select.js';
3
- import './vaadin-grid-pro-edit-text-field.js';
4
- import '../../src/vaadin-grid-pro-edit-column.js';
@@ -1,4 +0,0 @@
1
- import './vaadin-grid-pro-edit-checkbox.js';
2
- import './vaadin-grid-pro-edit-select.js';
3
- import './vaadin-grid-pro-edit-text-field.js';
4
- import '../../src/vaadin-grid-pro-edit-column.js';
@@ -1,2 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/spacing.js';
2
- import '@vaadin/vaadin-lumo-styles/typography.js';
@@ -1,23 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/spacing.js';
2
- import '@vaadin/vaadin-lumo-styles/typography.js';
3
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
4
- import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
5
-
6
- const gridProEditSelect = css`
7
- :host([theme~='grid-pro-editor']) [part='toggle-button'] {
8
- margin-right: var(--lumo-space-xs);
9
- }
10
-
11
- :host([theme~='grid-pro-editor']) [part='input-field'] ::slotted([slot='value']) {
12
- box-sizing: border-box;
13
- padding: 0 var(--lumo-space-m);
14
- font-size: var(--lumo-font-size-m);
15
- /* prevent selection on editor focus */
16
- -webkit-user-select: none;
17
- user-select: none;
18
- }
19
- `;
20
-
21
- registerStyles('vaadin-grid-pro-edit-select', [gridProEditor, gridProEditSelect], {
22
- moduleId: 'lumo-grid-pro-edit-select',
23
- });
@@ -1,3 +0,0 @@
1
- import '@vaadin/select/theme/lumo/vaadin-select.js';
2
- import './vaadin-grid-pro-edit-select-styles.js';
3
- import '../../src/vaadin-grid-pro-edit-select.js';
@@ -1,3 +0,0 @@
1
- import '@vaadin/select/theme/lumo/vaadin-select.js';
2
- import './vaadin-grid-pro-edit-select-styles.js';
3
- import '../../src/vaadin-grid-pro-edit-select.js';
@@ -1,6 +0,0 @@
1
- import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
2
- import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
3
-
4
- registerStyles('vaadin-grid-pro-edit-text-field', gridProEditor, {
5
- moduleId: 'lumo-grid-pro-edit-text-field',
6
- });
@@ -1,3 +0,0 @@
1
- import '@vaadin/text-field/theme/lumo/vaadin-text-field.js';
2
- import './vaadin-grid-pro-edit-text-field-styles.js';
3
- import '../../src/vaadin-grid-pro-edit-text-field.js';
@@ -1,3 +0,0 @@
1
- import '@vaadin/text-field/theme/lumo/vaadin-text-field.js';
2
- import './vaadin-grid-pro-edit-text-field-styles.js';
3
- import '../../src/vaadin-grid-pro-edit-text-field.js';
@@ -1,5 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/typography.js';
4
- declare const gridProEditor: import("lit").CSSResult;
5
- export { gridProEditor };
@@ -1,39 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/typography.js';
4
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
5
-
6
- const gridProEditor = css`
7
- :host([theme~='grid-pro-editor']) {
8
- position: absolute;
9
- inset: 0;
10
- padding: 0;
11
- will-change: transform;
12
- font-size: inherit;
13
- --lumo-text-field-size: 27px;
14
- /* outline similar to what grid uses */
15
- box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
16
- }
17
-
18
- :host([theme~='grid-pro-editor']) [part='input-field'] {
19
- padding: 0;
20
- border-radius: 0;
21
- flex-grow: 1;
22
- font-weight: 400;
23
- --vaadin-input-field-border-color: transparent;
24
- }
25
-
26
- /* reset outline inherited from text-field */
27
- :host([theme~='grid-pro-editor'][focus-ring]) [part='input-field'] {
28
- box-shadow: none;
29
- }
30
-
31
- :host([theme~='grid-pro-editor']) ::slotted(input) {
32
- padding: 0 var(--lumo-space-m);
33
- font-size: inherit;
34
- }
35
- `;
36
-
37
- registerStyles('', gridProEditor, { moduleId: 'lumo-grid-pro-editor' });
38
-
39
- export { gridProEditor };
@@ -1,2 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/style.js';
@@ -1,87 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/style.js';
3
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
4
-
5
- registerStyles(
6
- 'vaadin-grid-pro',
7
- css`
8
- :host([navigating]) [part~='cell']:active::before {
9
- content: '';
10
- position: absolute;
11
- inset: 0;
12
- pointer-events: none;
13
- box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
14
- }
15
-
16
- [part~='editable-cell'],
17
- [part~='editable-cell'] ::slotted(vaadin-grid-cell-content) {
18
- cursor: var(--lumo-clickable-cursor);
19
- }
20
-
21
- [part~='editable-cell']:hover,
22
- [part~='editable-cell']:focus {
23
- background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
24
- }
25
-
26
- /* Indicate editable cells */
27
-
28
- :host([theme~='highlight-editable-cells']) [part~='editable-cell'] {
29
- background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
30
- }
31
-
32
- :host([theme~='highlight-editable-cells']) [part~='editable-cell']:hover,
33
- :host([theme~='highlight-editable-cells']) [part~='editable-cell']:focus {
34
- background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
35
- }
36
-
37
- /* Indicate read-only cells */
38
-
39
- /* prettier-ignore */
40
- :host([theme~='highlight-read-only-cells']) [tabindex]:not([part~='editable-cell']):not([part~='header-cell']):not([part~='footer-cell']) {
41
- background-image: repeating-linear-gradient(
42
- 135deg,
43
- transparent,
44
- transparent 6px,
45
- var(--lumo-contrast-5pct) 6px,
46
- var(--lumo-contrast-5pct) 14px
47
- );
48
- }
49
-
50
- /* Loading editor cell styles are used by Flow GridPro */
51
- :host([loading-editor]) [part~='focused-cell']::before {
52
- content: '';
53
- position: absolute;
54
- inset: 0;
55
- pointer-events: none;
56
- box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
57
- animation: vaadin-grid-pro-loading-editor 1.4s infinite;
58
- opacity: 0;
59
- }
60
-
61
- @keyframes vaadin-grid-pro-loading-editor {
62
- 50% {
63
- opacity: 1;
64
- }
65
- }
66
-
67
- [part~='updating-cell']::after {
68
- content: '';
69
- position: absolute;
70
- inset: var(--_cell-padding);
71
- margin: var(--_focus-ring-width);
72
- border-radius: 4px;
73
- background-size: max(4em, 50%);
74
- background-repeat: no-repeat;
75
- background-position: min(-200%, -4em) 0;
76
- background-image: linear-gradient(90deg, transparent, var(--lumo-contrast-10pct), transparent);
77
- animation: vaadin-grid-pro-updating-cell 1.3s ease-out infinite;
78
- }
79
-
80
- @keyframes vaadin-grid-pro-updating-cell {
81
- 100% {
82
- background-position: max(300%, 8em) 0;
83
- }
84
- }
85
- `,
86
- { moduleId: 'lumo-grid-pro' },
87
- );
@@ -1,3 +0,0 @@
1
- import '@vaadin/grid/theme/lumo/vaadin-grid-styles.js';
2
- import './vaadin-grid-pro-styles.js';
3
- import '../../src/vaadin-grid-pro.js';
@@ -1,3 +0,0 @@
1
- import '@vaadin/grid/theme/lumo/vaadin-grid-styles.js';
2
- import './vaadin-grid-pro-styles.js';
3
- import '../../src/vaadin-grid-pro.js';