@vaadin/vaadin-grid-pro
Advanced tools
Comparing version 1.0.0-alpha3 to 1.0.0-alpha4
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-grid-pro", | ||
"version": "1.0.0-alpha3", | ||
"version": "1.0.0-alpha4", | ||
"main": "vaadin-grid-pro.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -11,5 +11,5 @@ /** | ||
import { GridColumnElement } from '@vaadin/vaadin-grid/src/vaadin-grid-column.js'; | ||
import './vaadin-grid-pro-edit-column-checkbox.js'; | ||
import './vaadin-grid-pro-edit-column-select.js'; | ||
import './vaadin-grid-pro-edit-column-text-field.js'; | ||
import './vaadin-grid-pro-edit-checkbox.js'; | ||
import './vaadin-grid-pro-edit-select.js'; | ||
import './vaadin-grid-pro-edit-text-field.js'; | ||
/** | ||
@@ -67,3 +67,3 @@ * `<vaadin-grid-pro-edit-column>` is a helper element for the `<vaadin-grid-pro>` | ||
* - `text` (default) - renders a text field | ||
* - `boolean` - renders a checkbox | ||
* - `checkbox` - renders a checkbox | ||
* - `select` - renders a select with a list of items passed as `editorOptions` | ||
@@ -211,3 +211,3 @@ * | ||
switch (this.editorType) { | ||
case 'boolean': | ||
case 'checkbox': | ||
type = 'checkbox'; | ||
@@ -223,3 +223,3 @@ break; | ||
} | ||
return `${this.constructor.is}-${type}`; | ||
return this.constructor.is.replace('column', type); | ||
} | ||
@@ -237,3 +237,3 @@ | ||
_getEditorValue(editor) { | ||
const path = this.editorType === 'boolean' ? 'checked' : this.editorValuePath; | ||
const path = this.editorType === 'checkbox' ? 'checked' : this.editorValuePath; | ||
return get(editor, path); | ||
@@ -278,3 +278,3 @@ } | ||
_setEditorValue(editor, value) { | ||
const path = this.editorType === 'boolean' ? 'checked' : this.editorValuePath; | ||
const path = this.editorType === 'checkbox' ? 'checked' : this.editorValuePath; | ||
set(editor, path, value); | ||
@@ -281,0 +281,0 @@ editor.notifyPath && editor.notifyPath(path, value); |
@@ -35,3 +35,3 @@ /** | ||
static get version() { | ||
return '1.0.0-alpha3'; | ||
return '1.0.0-alpha4'; | ||
} | ||
@@ -38,0 +38,0 @@ } |
@@ -1,4 +0,4 @@ | ||
import './vaadin-grid-pro-edit-column-checkbox.js'; | ||
import './vaadin-grid-pro-edit-column-select.js'; | ||
import './vaadin-grid-pro-edit-column-text-field.js'; | ||
import './vaadin-grid-pro-edit-checkbox.js'; | ||
import './vaadin-grid-pro-edit-select.js'; | ||
import './vaadin-grid-pro-edit-text-field.js'; | ||
import '../../src/vaadin-grid-pro-edit-column.js'; |
@@ -1,4 +0,4 @@ | ||
import './vaadin-grid-pro-edit-column-checkbox.js'; | ||
import './vaadin-grid-pro-edit-column-select.js'; | ||
import './vaadin-grid-pro-edit-column-text-field.js'; | ||
import './vaadin-grid-pro-edit-checkbox.js'; | ||
import './vaadin-grid-pro-edit-select.js'; | ||
import './vaadin-grid-pro-edit-text-field.js'; | ||
import '../../src/vaadin-grid-pro-edit-column.js'; |
896
52615