@vaadin/crud 24.8.4 → 25.0.0-alpha10

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 (46) hide show
  1. package/README.md +0 -23
  2. package/package.json +19 -20
  3. package/src/{vaadin-crud-styles.d.ts → styles/vaadin-crud-base-styles.d.ts} +0 -2
  4. package/src/styles/vaadin-crud-base-styles.js +162 -0
  5. package/src/styles/vaadin-crud-core-styles.d.ts +13 -0
  6. package/src/{vaadin-crud-styles.js → styles/vaadin-crud-core-styles.js} +1 -33
  7. package/src/styles/vaadin-crud-dialog-overlay-base-styles.d.ts +13 -0
  8. package/src/styles/vaadin-crud-dialog-overlay-base-styles.js +48 -0
  9. package/src/styles/vaadin-crud-dialog-overlay-core-styles.d.ts +13 -0
  10. package/src/styles/vaadin-crud-dialog-overlay-core-styles.js +54 -0
  11. package/src/styles/vaadin-crud-edit-base-styles.js +28 -0
  12. package/src/styles/vaadin-crud-edit-core-styles.js +17 -0
  13. package/src/styles/vaadin-crud-grid-base-styles.d.ts +13 -0
  14. package/src/styles/vaadin-crud-grid-base-styles.js +21 -0
  15. package/src/styles/vaadin-crud-grid-core-styles.d.ts +13 -0
  16. package/src/styles/vaadin-crud-grid-core-styles.js +13 -0
  17. package/src/vaadin-crud-controllers.js +1 -1
  18. package/src/vaadin-crud-dialog.js +72 -41
  19. package/src/vaadin-crud-edit.js +12 -21
  20. package/src/vaadin-crud-form.js +4 -1
  21. package/src/vaadin-crud-grid.js +5 -0
  22. package/src/vaadin-crud-mixin.js +67 -81
  23. package/src/vaadin-crud.d.ts +18 -8
  24. package/src/vaadin-crud.js +126 -66
  25. package/web-types.json +6 -6
  26. package/web-types.lit.json +4 -4
  27. package/src/vaadin-lit-crud-dialog.js +0 -128
  28. package/src/vaadin-lit-crud-edit-column.js +0 -70
  29. package/src/vaadin-lit-crud-edit.js +0 -75
  30. package/src/vaadin-lit-crud-form.js +0 -80
  31. package/src/vaadin-lit-crud-grid.js +0 -35
  32. package/src/vaadin-lit-crud.js +0 -121
  33. package/theme/lumo/vaadin-lit-crud.d.ts +0 -8
  34. package/theme/lumo/vaadin-lit-crud.js +0 -8
  35. package/theme/material/vaadin-crud-styles.d.ts +0 -2
  36. package/theme/material/vaadin-crud-styles.js +0 -157
  37. package/theme/material/vaadin-crud.d.ts +0 -8
  38. package/theme/material/vaadin-crud.js +0 -8
  39. package/theme/material/vaadin-lit-crud.d.ts +0 -8
  40. package/theme/material/vaadin-lit-crud.js +0 -8
  41. package/vaadin-lit-crud-edit .js +0 -1
  42. package/vaadin-lit-crud-edit-column.d.ts +0 -1
  43. package/vaadin-lit-crud-edit-column.js +0 -1
  44. package/vaadin-lit-crud-edit.d.ts +0 -1
  45. package/vaadin-lit-crud.d.ts +0 -1
  46. package/vaadin-lit-crud.js +0 -2
package/README.md CHANGED
@@ -28,29 +28,6 @@ Once installed, import the component in your application:
28
28
  import '@vaadin/crud';
29
29
  ```
30
30
 
31
- ## Themes
32
-
33
- Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
34
- The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/crud/vaadin-crud.js) of the package uses the Lumo theme.
35
-
36
- To use the Material theme, import the component from the `theme/material` folder:
37
-
38
- ```js
39
- import '@vaadin/crud/theme/material/vaadin-crud.js';
40
- ```
41
-
42
- You can also import the Lumo version of the component explicitly:
43
-
44
- ```js
45
- import '@vaadin/crud/theme/lumo/vaadin-crud.js';
46
- ```
47
-
48
- Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
49
-
50
- ```js
51
- import '@vaadin/crud/src/vaadin-crud.js';
52
- ```
53
-
54
31
  ## Contributing
55
32
 
56
33
  Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/crud",
3
- "version": "24.8.4",
3
+ "version": "25.0.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,6 +21,8 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
+ "!src/styles/*-base-styles.d.ts",
25
+ "!src/styles/*-base-styles.js",
24
26
  "theme",
25
27
  "vaadin-*.d.ts",
26
28
  "vaadin-*.js",
@@ -31,30 +33,27 @@
31
33
  "Vaadin",
32
34
  "vaadin-crud",
33
35
  "web-components",
34
- "web-component",
35
- "polymer"
36
+ "web-component"
36
37
  ],
37
38
  "dependencies": {
38
39
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "~24.8.4",
41
- "@vaadin/button": "~24.8.4",
42
- "@vaadin/component-base": "~24.8.4",
43
- "@vaadin/confirm-dialog": "~24.8.4",
44
- "@vaadin/dialog": "~24.8.4",
45
- "@vaadin/form-layout": "~24.8.4",
46
- "@vaadin/grid": "~24.8.4",
47
- "@vaadin/overlay": "~24.8.4",
48
- "@vaadin/text-field": "~24.8.4",
49
- "@vaadin/vaadin-lumo-styles": "~24.8.4",
50
- "@vaadin/vaadin-material-styles": "~24.8.4",
51
- "@vaadin/vaadin-themable-mixin": "~24.8.4",
40
+ "@vaadin/a11y-base": "25.0.0-alpha10",
41
+ "@vaadin/button": "25.0.0-alpha10",
42
+ "@vaadin/component-base": "25.0.0-alpha10",
43
+ "@vaadin/confirm-dialog": "25.0.0-alpha10",
44
+ "@vaadin/dialog": "25.0.0-alpha10",
45
+ "@vaadin/form-layout": "25.0.0-alpha10",
46
+ "@vaadin/grid": "25.0.0-alpha10",
47
+ "@vaadin/overlay": "25.0.0-alpha10",
48
+ "@vaadin/text-field": "25.0.0-alpha10",
49
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha10",
50
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha10",
52
51
  "lit": "^3.0.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@vaadin/chai-plugins": "~24.8.4",
56
- "@vaadin/test-runner-commands": "~24.8.4",
57
- "@vaadin/testing-helpers": "^1.1.0",
54
+ "@vaadin/chai-plugins": "25.0.0-alpha10",
55
+ "@vaadin/test-runner-commands": "25.0.0-alpha10",
56
+ "@vaadin/testing-helpers": "^2.0.0",
58
57
  "sinon": "^18.0.0"
59
58
  },
60
59
  "cvdlName": "vaadin-crud",
@@ -62,5 +61,5 @@
62
61
  "web-types.json",
63
62
  "web-types.lit.json"
64
63
  ],
65
- "gitHead": "849e54e967563080a685965e2dced02060b3ab23"
64
+ "gitHead": "6cc6c94079e805fa5b2f0af4dbf3b2a7485e57d0"
66
65
  }
@@ -11,5 +11,3 @@
11
11
  import type { CSSResult } from 'lit';
12
12
 
13
13
  export const crudStyles: CSSResult;
14
-
15
- export const crudDialogOverlayStyles: CSSResult;
@@ -0,0 +1,162 @@
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 '@vaadin/component-base/src/style-props.js';
12
+ import { css } from 'lit';
13
+
14
+ export const crudStyles = css`
15
+ :host {
16
+ --vaadin-grid-border-width: 0px;
17
+ --vaadin-grid-border-radius: var(--vaadin-crud-border-radius, var(--vaadin-radius-l));
18
+ --vaadin-crud-editor-max-height: 40%;
19
+ --vaadin-crud-editor-max-width: 40%;
20
+ border: var(--vaadin-crud-border-width, 1px) solid var(--vaadin-crud-border-color, var(--vaadin-border-color));
21
+ border-radius: var(--vaadin-crud-border-radius, var(--vaadin-radius-l));
22
+ height: 400px;
23
+ width: 100%;
24
+ background: var(--vaadin-crud-background, var(--vaadin-background-color));
25
+ }
26
+
27
+ :host,
28
+ #main {
29
+ align-self: stretch;
30
+ display: flex;
31
+ flex-direction: column;
32
+ position: relative;
33
+ }
34
+
35
+ #main {
36
+ flex: 1 1 100%;
37
+ height: 100%;
38
+ min-width: 0;
39
+ min-height: 0;
40
+ }
41
+
42
+ ::slotted(vaadin-crud-grid) {
43
+ border-end-start-radius: 0;
44
+ border-end-end-radius: 0;
45
+ }
46
+
47
+ :host([hidden]),
48
+ [hidden] {
49
+ display: none !important;
50
+ }
51
+
52
+ #container {
53
+ display: flex;
54
+ height: 100%;
55
+ }
56
+
57
+ :host([editor-position='bottom']) #container {
58
+ flex-direction: column;
59
+ }
60
+
61
+ :host([editor-position='aside'][editor-opened]) #main {
62
+ border-inline-end: var(--vaadin-crud-border-width, 1px) solid
63
+ var(--vaadin-crud-border-color, var(--vaadin-border-color));
64
+ }
65
+
66
+ :host([editor-position='aside'][editor-opened]) ::slotted(vaadin-crud-grid) {
67
+ border-start-end-radius: 0;
68
+ border-end-end-radius: 0;
69
+ }
70
+
71
+ :host([editor-position='aside'][editor-opened]) :is(#container, [part='editor']) {
72
+ border-start-end-radius: inherit;
73
+ border-end-end-radius: inherit;
74
+ }
75
+
76
+ :host([editor-position='bottom'][editor-opened]) #main {
77
+ border-bottom: var(--vaadin-crud-border-width, 1px) solid
78
+ var(--vaadin-crud-border-color, var(--vaadin-border-color));
79
+ }
80
+
81
+ :host([editor-position='bottom'][editor-opened]) :is(#container, [part='editor']) {
82
+ border-end-start-radius: inherit;
83
+ border-end-end-radius: inherit;
84
+ }
85
+
86
+ [part='toolbar'] {
87
+ align-items: baseline;
88
+ background: var(--vaadin-crud-toolbar-background, transparent);
89
+ border-top: var(--vaadin-crud-border-width, 1px) solid var(--vaadin-crud-border-color, var(--vaadin-border-color));
90
+ display: flex;
91
+ flex-shrink: 0;
92
+ justify-content: flex-end;
93
+ padding: var(--vaadin-crud-toolbar-padding, var(--vaadin-padding));
94
+ }
95
+
96
+ :host([no-toolbar]) [part='toolbar'] {
97
+ display: none;
98
+ }
99
+
100
+ [part='editor'] {
101
+ display: flex;
102
+ flex-direction: column;
103
+ height: 100%;
104
+ z-index: 1;
105
+ }
106
+
107
+ [part='editor']:focus-visible {
108
+ outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
109
+ }
110
+
111
+ :host(:not([editor-position=''])[editor-opened]:not([fullscreen])) [part='editor'] {
112
+ flex: 1 0 100%;
113
+ }
114
+
115
+ :host([editor-position='bottom'][editor-opened]:not([fullscreen])) [part='editor'] {
116
+ max-height: var(--vaadin-crud-editor-max-height);
117
+ }
118
+
119
+ :host([editor-position='aside'][editor-opened]:not([fullscreen])) [part='editor'] {
120
+ max-width: var(--vaadin-crud-editor-max-width);
121
+ min-width: 300px;
122
+ }
123
+
124
+ [part='scroller'] {
125
+ display: flex;
126
+ flex: auto;
127
+ flex-direction: column;
128
+ overflow: auto;
129
+ }
130
+
131
+ [part='header'] {
132
+ color: var(--vaadin-crud-header-color, var(--vaadin-color));
133
+ font-size: var(--vaadin-crud-header-font-size, 1em);
134
+ font-weight: var(--vaadin-crud-header-font-weight, 600);
135
+ line-height: var(--vaadin-crud-header-line-height, inherit);
136
+ padding: var(--vaadin-crud-header-padding, var(--vaadin-padding));
137
+ }
138
+
139
+ ::slotted([slot='header']) {
140
+ color: inherit !important;
141
+ display: contents;
142
+ font: inherit !important;
143
+ overflow-wrap: anywhere;
144
+ }
145
+
146
+ ::slotted([slot='form']) {
147
+ padding: var(--vaadin-crud-form-padding, var(--vaadin-padding));
148
+ }
149
+
150
+ [part='footer'] {
151
+ background: var(--vaadin-crud-footer-background, transparent);
152
+ border-top: var(--vaadin-crud-border-width, 1px) solid var(--vaadin-crud-border-color, var(--vaadin-border-color));
153
+ display: flex;
154
+ flex: none;
155
+ gap: var(--vaadin-crud-footer-gap, var(--vaadin-gap-container-inline));
156
+ padding: var(--vaadin-crud-footer-padding, var(--vaadin-padding));
157
+ }
158
+
159
+ ::slotted([slot='delete-button']) {
160
+ margin-inline-start: auto;
161
+ }
162
+ `;
@@ -0,0 +1,13 @@
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 crudStyles: CSSResult;
@@ -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 { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
+ import { css } from 'lit';
12
12
 
13
13
  export const crudStyles = css`
14
14
  :host {
@@ -91,35 +91,3 @@ export const crudStyles = css`
91
91
  flex-direction: row-reverse;
92
92
  }
93
93
  `;
94
-
95
- export const crudDialogOverlayStyles = css`
96
- [part='overlay'] {
97
- max-width: 54em;
98
- min-width: 20em;
99
- }
100
-
101
- [part='footer'] {
102
- justify-content: flex-start;
103
- flex-direction: row-reverse;
104
- }
105
-
106
- /* Make buttons clickable */
107
- [part='footer'] ::slotted(:not([disabled])) {
108
- pointer-events: all;
109
- }
110
-
111
- :host([fullscreen]) {
112
- inset: 0;
113
- padding: 0;
114
- }
115
-
116
- :host([fullscreen]) [part='overlay'] {
117
- height: 100vh;
118
- width: 100vw;
119
- border-radius: 0 !important;
120
- }
121
-
122
- :host([fullscreen]) [part='content'] {
123
- flex: 1;
124
- }
125
- `;
@@ -0,0 +1,13 @@
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 declare const crudDialogOverlayStyles: CSSResult;
@@ -0,0 +1,48 @@
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 '@vaadin/component-base/src/style-props.js';
12
+ import { css } from 'lit';
13
+ import { dialogOverlayStyles } from '@vaadin/dialog/src/styles/vaadin-dialog-overlay-base-styles.js';
14
+
15
+ const crudDialogOverlay = css`
16
+ [part='header'] {
17
+ color: var(--vaadin-crud-dialog-header-color, var(--vaadin-color));
18
+ font-size: var(--vaadin-crud-dialog-header-font-size, 1em);
19
+ font-weight: var(--vaadin-crud-dialog-header-font-weight, 600);
20
+ line-height: var(--vaadin-crud-dialog-header-line-height, inherit);
21
+ padding: var(--vaadin-crud-header-padding, var(--vaadin-padding));
22
+ }
23
+
24
+ ::slotted([slot='header']) {
25
+ color: inherit !important;
26
+ display: contents;
27
+ font: inherit !important;
28
+ overflow-wrap: anywhere;
29
+ }
30
+
31
+ :host(:is(*, #id)) [part='content'] {
32
+ overflow: auto;
33
+ overscroll-behavior: contain;
34
+ padding: var(--vaadin-crud-form-padding, var(--vaadin-padding));
35
+ }
36
+
37
+ ::slotted([slot='form']) {
38
+ --vaadin-crud-form-padding: 0;
39
+ }
40
+
41
+ [part='footer'] {
42
+ justify-content: normal;
43
+ background: var(--vaadin-crud-footer-background, transparent);
44
+ border-top: var(--vaadin-crud-border-width, 1px) solid var(--vaadin-crud-border-color, var(--vaadin-border-color));
45
+ }
46
+ `;
47
+
48
+ export const crudDialogOverlayStyles = [...dialogOverlayStyles, crudDialogOverlay];
@@ -0,0 +1,13 @@
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 declare const crudDialogOverlayStyles: CSSResult;
@@ -0,0 +1,54 @@
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 { css } from 'lit';
12
+ import { dialogOverlayBase } from '@vaadin/dialog/src/styles/vaadin-dialog-overlay-core-styles.js';
13
+ import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-core-styles.js';
14
+
15
+ const crudDialogOverlay = css`
16
+ [part='overlay'] {
17
+ max-width: 54em;
18
+ min-width: 20em;
19
+ display: flex;
20
+ }
21
+
22
+ .resizer-container {
23
+ display: flex;
24
+ flex-direction: column;
25
+ flex-grow: 1;
26
+ }
27
+
28
+ [part='footer'] {
29
+ justify-content: flex-start;
30
+ flex-direction: row-reverse;
31
+ }
32
+
33
+ /* Make buttons clickable */
34
+ [part='footer'] ::slotted(:not([disabled])) {
35
+ pointer-events: all;
36
+ }
37
+
38
+ :host([fullscreen]) {
39
+ inset: 0;
40
+ padding: 0;
41
+ }
42
+
43
+ :host([fullscreen]) [part='overlay'] {
44
+ height: 100vh;
45
+ width: 100vw;
46
+ border-radius: 0 !important;
47
+ }
48
+
49
+ :host([fullscreen]) [part='content'] {
50
+ flex: 1;
51
+ }
52
+ `;
53
+
54
+ export const crudDialogOverlayStyles = [overlayStyles, dialogOverlayBase, crudDialogOverlay];
@@ -0,0 +1,28 @@
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 '@vaadin/component-base/src/style-props.js';
12
+ import { css } from 'lit';
13
+
14
+ export const crudEditStyles = css`
15
+ [part='icon'] {
16
+ background: currentColor;
17
+ display: block;
18
+ height: var(--vaadin-icon-size, 1lh);
19
+ mask-image: var(--_vaadin-icon-edit);
20
+ width: var(--vaadin-icon-size, 1lh);
21
+ }
22
+
23
+ @media (forced-colors: active) {
24
+ [part='icon'] {
25
+ background: CanvasText;
26
+ }
27
+ }
28
+ `;
@@ -0,0 +1,17 @@
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 { css } from 'lit';
12
+
13
+ export const crudEditStyles = css`
14
+ :host {
15
+ display: block;
16
+ }
17
+ `;
@@ -0,0 +1,13 @@
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 crudGridStyles: CSSResult;
@@ -0,0 +1,21 @@
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 '@vaadin/component-base/src/style-props.js';
12
+ import { css } from 'lit';
13
+ import { gridStyles } from '@vaadin/grid/src/styles/vaadin-grid-base-styles.js';
14
+
15
+ const crudGrid = css`
16
+ #scroller {
17
+ border-radius: inherit;
18
+ }
19
+ `;
20
+
21
+ export const crudGridStyles = [gridStyles, crudGrid];
@@ -0,0 +1,13 @@
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 crudGridStyles: CSSResult;
@@ -0,0 +1,13 @@
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 crudGridStyles = [gridStyles];
@@ -42,7 +42,7 @@ export class ButtonSlotController extends SlotController {
42
42
  }
43
43
 
44
44
  // Respect default theme attribute set by the Flow counterpart
45
- if (node === this.defaultNode && !node.hasAttribute('theme')) {
45
+ if (node === this.defaultNode && this.theme && !node.hasAttribute('theme')) {
46
46
  node.setAttribute('theme', this.theme);
47
47
  }
48
48