-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experiment: add LitElement based version of vaadin-grid-pro (#6762)
- Loading branch information
1 parent
b34bc2f
commit 44ab9d5
Showing
27 changed files
with
277 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/grid-pro/src/vaadin-lit-grid-pro-edit-checkbox.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2000 - 2023 Vaadin Ltd. | ||
* | ||
* This program is available under Vaadin Commercial License and Service Terms. | ||
* | ||
* | ||
* See https://vaadin.com/commercial-license-and-service-terms for the full | ||
* license. | ||
*/ | ||
import { Checkbox } from '@vaadin/checkbox/src/vaadin-lit-checkbox.js'; | ||
import { defineCustomElement } from '@vaadin/component-base/src/define.js'; | ||
|
||
/** | ||
* LitElement based version of `<vaadin-grid-pro-edit-checkbox>` web component. | ||
* | ||
* ## Disclaimer | ||
* | ||
* This component is an experiment not intended for publishing to npm. | ||
* There is no ETA regarding specific Vaadin version where it'll land. | ||
* Feel free to try this code in your apps as per Apache 2.0 license. | ||
*/ | ||
class GridProEditCheckbox extends Checkbox { | ||
static get is() { | ||
return 'vaadin-grid-pro-edit-checkbox'; | ||
} | ||
} | ||
|
||
defineCustomElement(GridProEditCheckbox); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2000 - 2023 Vaadin Ltd. | ||
* | ||
* This program is available under Vaadin Commercial License and Service Terms. | ||
* | ||
* | ||
* See https://vaadin.com/commercial-license-and-service-terms for the full | ||
* license. | ||
*/ | ||
import './vaadin-lit-grid-pro-edit-checkbox.js'; | ||
import './vaadin-lit-grid-pro-edit-select.js'; | ||
import './vaadin-lit-grid-pro-edit-text-field.js'; | ||
import { defineCustomElement } from '@vaadin/component-base/src/define.js'; | ||
import { GridColumn } from '@vaadin/grid/src/vaadin-lit-grid-column.js'; | ||
import { GridProEditColumnMixin } from './vaadin-grid-pro-edit-column-mixin.js'; | ||
|
||
/** | ||
* LitElement based version of `<vaadin-grid-pro-edit-column>` web component. | ||
* | ||
* ## Disclaimer | ||
* | ||
* This component is an experiment not intended for publishing to npm. | ||
* There is no ETA regarding specific Vaadin version where it'll land. | ||
* Feel free to try this code in your apps as per Apache 2.0 license. | ||
*/ | ||
class GridProEditColumn extends GridProEditColumnMixin(GridColumn) { | ||
static get is() { | ||
return 'vaadin-grid-pro-edit-column'; | ||
} | ||
} | ||
|
||
defineCustomElement(GridProEditColumn); | ||
|
||
export { GridProEditColumn }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2000 - 2023 Vaadin Ltd. | ||
* | ||
* This program is available under Vaadin Commercial License and Service Terms. | ||
* | ||
* | ||
* See https://vaadin.com/commercial-license-and-service-terms for the full | ||
* license. | ||
*/ | ||
import { defineCustomElement } from '@vaadin/component-base/src/define.js'; | ||
import { Select } from '@vaadin/select/src/vaadin-lit-select.js'; | ||
import { GridProEditSelectMixin } from './vaadin-grid-pro-edit-select-mixin.js'; | ||
|
||
/** | ||
* LitElement based version of `<vaadin-grid-pro-edit-select>` web component. | ||
* | ||
* ## Disclaimer | ||
* | ||
* This component is an experiment not intended for publishing to npm. | ||
* There is no ETA regarding specific Vaadin version where it'll land. | ||
* Feel free to try this code in your apps as per Apache 2.0 license. | ||
*/ | ||
class GridProEditSelect extends GridProEditSelectMixin(Select) { | ||
static get is() { | ||
return 'vaadin-grid-pro-edit-select'; | ||
} | ||
} | ||
|
||
defineCustomElement(GridProEditSelect); |
34 changes: 34 additions & 0 deletions
34
packages/grid-pro/src/vaadin-lit-grid-pro-edit-text-field.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2000 - 2023 Vaadin Ltd. | ||
* | ||
* This program is available under Vaadin Commercial License and Service Terms. | ||
* | ||
* | ||
* See https://vaadin.com/commercial-license-and-service-terms for the full | ||
* license. | ||
*/ | ||
import { defineCustomElement } from '@vaadin/component-base/src/define.js'; | ||
import { TextField } from '@vaadin/text-field/src/vaadin-lit-text-field.js'; | ||
|
||
/** | ||
* LitElement based version of `<vaadin-grid-pro-edit-text-field>` web component. | ||
* | ||
* ## Disclaimer | ||
* | ||
* This component is an experiment not intended for publishing to npm. | ||
* There is no ETA regarding specific Vaadin version where it'll land. | ||
* Feel free to try this code in your apps as per Apache 2.0 license. | ||
*/ | ||
class GridProEditText extends TextField { | ||
static get is() { | ||
return 'vaadin-grid-pro-edit-text-field'; | ||
} | ||
|
||
ready() { | ||
super.ready(); | ||
this.setAttribute('theme', 'grid-pro-editor'); | ||
} | ||
} | ||
|
||
defineCustomElement(GridProEditText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2000 - 2023 Vaadin Ltd. | ||
* | ||
* This program is available under Vaadin Commercial License and Service Terms. | ||
* | ||
* | ||
* See https://vaadin.com/commercial-license-and-service-terms for the full | ||
* license. | ||
*/ | ||
import { defineCustomElement } from '@vaadin/component-base/src/define.js'; | ||
import { Grid } from '@vaadin/grid/src/vaadin-lit-grid.js'; | ||
import { InlineEditingMixin } from './vaadin-grid-pro-inline-editing-mixin.js'; | ||
|
||
/** | ||
* LitElement based version of `<vaadin-grid-pro>` web component. | ||
* | ||
* ## Disclaimer | ||
* | ||
* This component is an experiment not intended for publishing to npm. | ||
* There is no ETA regarding specific Vaadin version where it'll land. | ||
* Feel free to try this code in your apps as per Apache 2.0 license. | ||
*/ | ||
class GridPro extends InlineEditingMixin(Grid) { | ||
static get is() { | ||
return 'vaadin-grid-pro'; | ||
} | ||
|
||
static get cvdlName() { | ||
return 'vaadin-grid-pro'; | ||
} | ||
} | ||
|
||
defineCustomElement(GridPro); | ||
|
||
export { GridPro }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '../theme/lumo/vaadin-lit-grid-pro.js'; | ||
import '../theme/lumo/vaadin-lit-grid-pro-edit-column.js'; | ||
import './edit-column.common.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '../theme/lumo/vaadin-lit-grid-pro.js'; | ||
import '../theme/lumo/vaadin-lit-grid-pro-edit-column.js'; | ||
import './edit-column-renderer.common.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import './not-animated-styles.js'; | ||
import '../theme/lumo/vaadin-lit-grid-pro.js'; | ||
import '../theme/lumo/vaadin-lit-grid-pro-edit-column.js'; | ||
import './edit-column-type.common.js'; |
Oops, something went wrong.