@vaadin/crud 23.1.0-rc3 → 23.2.0-alpha1
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/package.json +12 -12
- package/src/vaadin-crud-dialog.js +10 -0
- package/src/vaadin-crud.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/crud",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/button": "23.
|
|
40
|
-
"@vaadin/component-base": "23.
|
|
41
|
-
"@vaadin/confirm-dialog": "23.
|
|
42
|
-
"@vaadin/dialog": "23.
|
|
43
|
-
"@vaadin/form-layout": "23.
|
|
44
|
-
"@vaadin/grid": "23.
|
|
45
|
-
"@vaadin/text-field": "23.
|
|
39
|
+
"@vaadin/button": "23.2.0-alpha1",
|
|
40
|
+
"@vaadin/component-base": "23.2.0-alpha1",
|
|
41
|
+
"@vaadin/confirm-dialog": "23.2.0-alpha1",
|
|
42
|
+
"@vaadin/dialog": "23.2.0-alpha1",
|
|
43
|
+
"@vaadin/form-layout": "23.2.0-alpha1",
|
|
44
|
+
"@vaadin/grid": "23.2.0-alpha1",
|
|
45
|
+
"@vaadin/text-field": "23.2.0-alpha1",
|
|
46
46
|
"@vaadin/vaadin-license-checker": "^2.1.0",
|
|
47
|
-
"@vaadin/vaadin-lumo-styles": "23.
|
|
48
|
-
"@vaadin/vaadin-material-styles": "23.
|
|
49
|
-
"@vaadin/vaadin-themable-mixin": "23.
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha1",
|
|
48
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha1",
|
|
49
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@esm-bundle/chai": "^4.3.4",
|
|
53
53
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
54
54
|
"sinon": "^13.0.2"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "f226a2976c270d3d53c824f6e0a740a5d3382d91"
|
|
57
57
|
}
|
|
@@ -54,6 +54,11 @@ const footerTemplate = html`
|
|
|
54
54
|
<slot name="delete-button"></slot>
|
|
55
55
|
`;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* An extension of `<vaadin-dialog-overlay>` used internally by `<vaadin-crud>`.
|
|
59
|
+
* Not intended to be used separately.
|
|
60
|
+
* @private
|
|
61
|
+
*/
|
|
57
62
|
class CrudDialogOverlay extends DialogOverlay {
|
|
58
63
|
static get is() {
|
|
59
64
|
return 'vaadin-crud-dialog-overlay';
|
|
@@ -100,6 +105,11 @@ class CrudDialogOverlay extends DialogOverlay {
|
|
|
100
105
|
|
|
101
106
|
customElements.define('vaadin-crud-dialog-overlay', CrudDialogOverlay);
|
|
102
107
|
|
|
108
|
+
/**
|
|
109
|
+
* An extension of `<vaadin-dialog>` used internally by `<vaadin-crud>`.
|
|
110
|
+
* Not intended to be used separately.
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
103
113
|
class CrudDialog extends Dialog {
|
|
104
114
|
/**
|
|
105
115
|
* Override template to provide custom overlay tag name.
|
package/src/vaadin-crud.js
CHANGED
|
@@ -1141,7 +1141,7 @@ class Crud extends SlotMixin(ControllerMixin(ElementMixin(ThemableMixin(PolymerE
|
|
|
1141
1141
|
}
|
|
1142
1142
|
});
|
|
1143
1143
|
|
|
1144
|
-
this.__isNew = this.__isNew || (this.items && this.items.indexOf(item) < 0);
|
|
1144
|
+
this.__isNew = !!(this.__isNew || (this.items && this.items.indexOf(item) < 0));
|
|
1145
1145
|
this.editorOpened = true;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|