@vaadin/grid-pro 22.0.0-alpha7
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/LICENSE +262 -0
- package/README.md +72 -0
- package/package.json +58 -0
- package/src/interfaces.d.ts +1 -0
- package/src/vaadin-grid-pro-edit-checkbox.js +21 -0
- package/src/vaadin-grid-pro-edit-column.d.ts +85 -0
- package/src/vaadin-grid-pro-edit-column.js +282 -0
- package/src/vaadin-grid-pro-edit-select.js +128 -0
- package/src/vaadin-grid-pro-edit-text-field.js +26 -0
- package/src/vaadin-grid-pro-inline-editing-mixin.d.ts +40 -0
- package/src/vaadin-grid-pro-inline-editing-mixin.js +483 -0
- package/src/vaadin-grid-pro.d.ts +95 -0
- package/src/vaadin-grid-pro.js +68 -0
- package/theme/lumo/vaadin-grid-pro-edit-checkbox.js +2 -0
- package/theme/lumo/vaadin-grid-pro-edit-column.js +4 -0
- package/theme/lumo/vaadin-grid-pro-edit-select-styles.js +24 -0
- package/theme/lumo/vaadin-grid-pro-edit-select.js +5 -0
- package/theme/lumo/vaadin-grid-pro-edit-text-field-styles.js +6 -0
- package/theme/lumo/vaadin-grid-pro-edit-text-field.js +3 -0
- package/theme/lumo/vaadin-grid-pro-editor-styles.js +41 -0
- package/theme/lumo/vaadin-grid-pro-styles.js +19 -0
- package/theme/lumo/vaadin-grid-pro.js +3 -0
- package/theme/material/vaadin-grid-pro-edit-checkbox.js +2 -0
- package/theme/material/vaadin-grid-pro-edit-column.js +4 -0
- package/theme/material/vaadin-grid-pro-edit-select-styles.js +17 -0
- package/theme/material/vaadin-grid-pro-edit-select.js +5 -0
- package/theme/material/vaadin-grid-pro-edit-text-field-styles.js +6 -0
- package/theme/material/vaadin-grid-pro-edit-text-field.js +3 -0
- package/theme/material/vaadin-grid-pro-editor-styles.js +21 -0
- package/theme/material/vaadin-grid-pro-styles.js +13 -0
- package/theme/material/vaadin-grid-pro.js +3 -0
- package/vaadin-grid-pro-edit-column.d.ts +1 -0
- package/vaadin-grid-pro-edit-column.js +3 -0
- package/vaadin-grid-pro.d.ts +2 -0
- package/vaadin-grid-pro.js +3 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
3
|
+
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
4
|
+
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
5
|
+
|
|
6
|
+
const gridProEditor = css`
|
|
7
|
+
:host([theme~='grid-pro-editor']) {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
will-change: transform;
|
|
15
|
+
font-size: inherit;
|
|
16
|
+
--lumo-text-field-size: 27px;
|
|
17
|
+
/* outline similar to what grid uses */
|
|
18
|
+
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([theme~='grid-pro-editor']) [part='input-field'] {
|
|
22
|
+
padding: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* reset outline inherited from text-field */
|
|
29
|
+
:host([theme~='grid-pro-editor'][focus-ring]) [part='input-field'] {
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([theme~='grid-pro-editor']) ::slotted(input) {
|
|
34
|
+
padding: 0 var(--lumo-space-m);
|
|
35
|
+
font-size: inherit;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
registerStyles('', gridProEditor, { moduleId: 'lumo-grid-pro-editor' });
|
|
40
|
+
|
|
41
|
+
export { gridProEditor };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
3
|
+
|
|
4
|
+
registerStyles(
|
|
5
|
+
'vaadin-grid-pro',
|
|
6
|
+
css`
|
|
7
|
+
:host([navigating]) [part~='cell']:active::before {
|
|
8
|
+
content: '';
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
16
|
+
}
|
|
17
|
+
`,
|
|
18
|
+
{ moduleId: 'lumo-grid-pro' }
|
|
19
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
|
|
3
|
+
|
|
4
|
+
const gridProEditSelect = css`
|
|
5
|
+
:host([theme~='grid-pro-editor']) [part='input-field'] ::slotted([slot='value']) {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
font-size: inherit;
|
|
8
|
+
/* prevent selection on editor focus */
|
|
9
|
+
-webkit-user-select: none;
|
|
10
|
+
-moz-user-select: none;
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
registerStyles('vaadin-grid-pro-edit-select', [gridProEditor, gridProEditSelect], {
|
|
16
|
+
moduleId: 'material-grid-pro-edit-select'
|
|
17
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import '@vaadin/item/theme/material/vaadin-item.js';
|
|
2
|
+
import '@vaadin/list-box/theme/material/vaadin-list-box.js';
|
|
3
|
+
import '@vaadin/select/theme/material/vaadin-select.js';
|
|
4
|
+
import './vaadin-grid-pro-edit-select-styles.js';
|
|
5
|
+
import '../../src/vaadin-grid-pro-edit-select.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
import { gridProEditor } from './vaadin-grid-pro-editor-styles.js';
|
|
3
|
+
|
|
4
|
+
registerStyles('vaadin-grid-pro-edit-text-field', gridProEditor, {
|
|
5
|
+
moduleId: 'material-grid-pro-edit-text-field'
|
|
6
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
|
|
3
|
+
const gridProEditor = css`
|
|
4
|
+
:host([theme~='grid-pro-editor']) {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin: -6px 0 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
top: 6px;
|
|
9
|
+
will-change: transform;
|
|
10
|
+
font-size: inherit;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([theme~='grid-pro-editor']) ::slotted(input) {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
font-size: inherit;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
registerStyles('', gridProEditor, { moduleId: 'material-grid-pro-editor' });
|
|
20
|
+
|
|
21
|
+
export { gridProEditor };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
|
+
import '@vaadin/vaadin-material-styles/color.js';
|
|
3
|
+
import '@vaadin/grid/theme/material/vaadin-grid-styles.js';
|
|
4
|
+
|
|
5
|
+
registerStyles(
|
|
6
|
+
'vaadin-grid-pro',
|
|
7
|
+
css`
|
|
8
|
+
:host([navigating]) [part~='cell']:active {
|
|
9
|
+
box-shadow: inset 0 0 0 2px var(--material-primary-color);
|
|
10
|
+
}
|
|
11
|
+
`,
|
|
12
|
+
{ moduleId: 'material-grid-pro' }
|
|
13
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/vaadin-grid-pro-edit-column.js';
|