@vaadin/crud 22.0.6 → 22.0.9

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 (2) hide show
  1. package/package.json +13 -13
  2. package/src/vaadin-crud.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/crud",
3
- "version": "22.0.6",
3
+ "version": "22.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,23 +35,23 @@
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
36
  "@polymer/iron-media-query": "^3.0.0",
37
37
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "^22.0.6",
39
- "@vaadin/component-base": "^22.0.6",
40
- "@vaadin/confirm-dialog": "^22.0.6",
41
- "@vaadin/dialog": "^22.0.6",
42
- "@vaadin/form-layout": "^22.0.6",
43
- "@vaadin/grid": "^22.0.6",
44
- "@vaadin/text-field": "^22.0.6",
38
+ "@vaadin/button": "^22.0.9",
39
+ "@vaadin/component-base": "^22.0.9",
40
+ "@vaadin/confirm-dialog": "^22.0.9",
41
+ "@vaadin/dialog": "^22.0.9",
42
+ "@vaadin/form-layout": "^22.0.9",
43
+ "@vaadin/grid": "^22.0.9",
44
+ "@vaadin/text-field": "^22.0.9",
45
45
  "@vaadin/vaadin-license-checker": "^2.1.0",
46
- "@vaadin/vaadin-lumo-styles": "^22.0.6",
47
- "@vaadin/vaadin-material-styles": "^22.0.6",
48
- "@vaadin/vaadin-themable-mixin": "^22.0.6"
46
+ "@vaadin/vaadin-lumo-styles": "^22.0.9",
47
+ "@vaadin/vaadin-material-styles": "^22.0.9",
48
+ "@vaadin/vaadin-themable-mixin": "^22.0.9"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@esm-bundle/chai": "^4.3.4",
52
- "@vaadin/polymer-legacy-adapter": "^22.0.6",
52
+ "@vaadin/polymer-legacy-adapter": "^22.0.9",
53
53
  "@vaadin/testing-helpers": "^0.3.2",
54
54
  "sinon": "^9.2.1"
55
55
  },
56
- "gitHead": "18c55872d764e338e0f98e65826cbe895156251a"
56
+ "gitHead": "56629dcfa0612f6cc5e91112505fc19d03144784"
57
57
  }
@@ -724,6 +724,9 @@ class Crud extends ElementMixin(ThemableMixin(PolymerElement)) {
724
724
  old.removeEventListener('edit', this.__editListener);
725
725
  old.removeEventListener('size-changed', this.__gridSizeListener);
726
726
  }
727
+ if (this.dataProvider) {
728
+ this.__onDataProviderChange(this.dataProvider);
729
+ }
727
730
  if (this.items) {
728
731
  this.__onItemsChange(this.items);
729
732
  }
@@ -1031,6 +1034,7 @@ class Crud extends ElementMixin(ThemableMixin(PolymerElement)) {
1031
1034
  this.items.push(item);
1032
1035
  }
1033
1036
  } else {
1037
+ this.editedItem = this.editedItem || {};
1034
1038
  Object.assign(this.editedItem, item);
1035
1039
  }
1036
1040
  this._grid.clearCache();