@vaadin/vaadin-crud
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-crud", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "vaadin-crud.js", | ||
@@ -50,4 +50,4 @@ "author": "Vaadin Ltd", | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^3.0.0-pre.18", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.18", | ||
"@polymer/iron-component-page": "^4.0.0", | ||
"@polymer/iron-demo-helpers": "^3.0.0", | ||
"@webcomponents/webcomponentsjs": "^2.0.0", | ||
@@ -54,0 +54,0 @@ "wct-browser-legacy": "^1.0.1", |
@@ -98,3 +98,3 @@ [](https://www.npmjs.com/package/@vaadin/vaadin-crud) | ||
1. Run `polymer serve --open`, browser will automatically open the component API documentation. | ||
1. Run `npm start`, browser will automatically open the component API documentation. | ||
@@ -101,0 +101,0 @@ 1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example: |
@@ -162,7 +162,5 @@ /** | ||
<vaadin-confirm-dialog theme\$="[[theme]]" id="confirmCancel" on-confirm="__confirmCancel" cancel="" confirm-text="[[i18n.confirm.cancel.button.confirm]]" cancel-text="[[i18n.confirm.cancel.button.dismiss]]" header="[[i18n.confirm.cancel.title]]" confirm-theme="primary"> | ||
[[i18n.confirm.cancel.content]] | ||
<vaadin-confirm-dialog theme\$="[[theme]]" id="confirmCancel" on-confirm="__confirmCancel" cancel="" confirm-text="[[i18n.confirm.cancel.button.confirm]]" cancel-text="[[i18n.confirm.cancel.button.dismiss]]" header="[[i18n.confirm.cancel.title]]" message="[[i18n.confirm.cancel.content]]" confirm-theme="primary"> | ||
</vaadin-confirm-dialog> | ||
<vaadin-confirm-dialog theme\$="[[theme]]" id="confirmDelete" on-confirm="__confirmDelete" cancel="" confirm-text="[[i18n.confirm.delete.button.confirm]]" cancel-text="[[i18n.confirm.delete.button.dismiss]]" header="[[i18n.confirm.delete.title]]" confirm-theme="primary error"> | ||
[[i18n.confirm.delete.content]] | ||
<vaadin-confirm-dialog theme\$="[[theme]]" id="confirmDelete" on-confirm="__confirmDelete" cancel="" confirm-text="[[i18n.confirm.delete.button.confirm]]" cancel-text="[[i18n.confirm.delete.button.dismiss]]" header="[[i18n.confirm.delete.title]]" message="[[i18n.confirm.delete.content]]" confirm-theme="primary error"> | ||
</vaadin-confirm-dialog> | ||
@@ -177,3 +175,3 @@ `; | ||
static get version() { | ||
return '1.0.1'; | ||
return '1.0.2'; | ||
} | ||
@@ -193,7 +191,2 @@ | ||
}, | ||
/** The theme to use and to apply to the generated elements */ | ||
theme: { | ||
type: String, | ||
reflectToAttribute: true | ||
}, | ||
/** | ||
@@ -554,6 +547,6 @@ * An array containing the items which will be stamped to the column template instances. | ||
const item = this.editedItem || {}; | ||
const item = Object.assign({}, this.editedItem); | ||
this._fields.forEach(e => { | ||
const path = e.path || e.getAttribute('path'); | ||
path && this.__set(path, e.value, this.editedItem); | ||
path && this.__set(path, e.value, item); | ||
}); | ||
@@ -568,2 +561,4 @@ const evt = this.dispatchEvent(new CustomEvent('save', {detail: {item: item}, cancelable: true})); | ||
} | ||
} else { | ||
Object.assign(this.editedItem, item); | ||
} | ||
@@ -570,0 +565,0 @@ this._grid.clearCache(); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
68138
1402