@vaadin/crud 23.2.0-alpha2 → 23.2.0-alpha3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/crud",
|
|
3
|
-
"version": "23.2.0-
|
|
3
|
+
"version": "23.2.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,22 +36,21 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/button": "23.2.0-
|
|
40
|
-
"@vaadin/component-base": "23.2.0-
|
|
41
|
-
"@vaadin/confirm-dialog": "23.2.0-
|
|
42
|
-
"@vaadin/dialog": "23.2.0-
|
|
43
|
-
"@vaadin/form-layout": "23.2.0-
|
|
44
|
-
"@vaadin/grid": "23.2.0-
|
|
45
|
-
"@vaadin/text-field": "23.2.0-
|
|
46
|
-
"@vaadin/vaadin-
|
|
47
|
-
"@vaadin/vaadin-
|
|
48
|
-
"@vaadin/vaadin-
|
|
49
|
-
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha2"
|
|
39
|
+
"@vaadin/button": "23.2.0-alpha3",
|
|
40
|
+
"@vaadin/component-base": "23.2.0-alpha3",
|
|
41
|
+
"@vaadin/confirm-dialog": "23.2.0-alpha3",
|
|
42
|
+
"@vaadin/dialog": "23.2.0-alpha3",
|
|
43
|
+
"@vaadin/form-layout": "23.2.0-alpha3",
|
|
44
|
+
"@vaadin/grid": "23.2.0-alpha3",
|
|
45
|
+
"@vaadin/text-field": "23.2.0-alpha3",
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha3",
|
|
47
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha3",
|
|
48
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha3"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@esm-bundle/chai": "^4.3.4",
|
|
53
52
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
54
53
|
"sinon": "^13.0.2"
|
|
55
54
|
},
|
|
56
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "06e5875be93ca50da2846dafc65a8531010c0576"
|
|
57
56
|
}
|
package/src/vaadin-crud-form.js
CHANGED
|
@@ -98,7 +98,10 @@ class CrudForm extends IncludedMixin(FormLayout) {
|
|
|
98
98
|
path
|
|
99
99
|
.split('.')
|
|
100
100
|
.slice(0, -1)
|
|
101
|
-
.reduce((o, p) =>
|
|
101
|
+
.reduce((o, p) => {
|
|
102
|
+
o[p] = o[p] || {};
|
|
103
|
+
return o[p];
|
|
104
|
+
}, obj);
|
|
102
105
|
this.set(path, val, obj);
|
|
103
106
|
}
|
|
104
107
|
}
|
package/src/vaadin-crud-grid.js
CHANGED
|
@@ -222,7 +222,7 @@ class CrudGrid extends IncludedMixin(Grid) {
|
|
|
222
222
|
* @param {string} path The property path from the root item to the object.
|
|
223
223
|
* @param {number} depth The depth of the object in the object hierarchy.
|
|
224
224
|
* @private
|
|
225
|
-
|
|
225
|
+
*/
|
|
226
226
|
__createColumns(parent, object, path, depth) {
|
|
227
227
|
if (object && typeof object === 'object') {
|
|
228
228
|
// Iterate over the object properties
|
|
@@ -282,7 +282,10 @@ class CrudGrid extends IncludedMixin(Grid) {
|
|
|
282
282
|
path
|
|
283
283
|
.split('.')
|
|
284
284
|
.slice(0, -1)
|
|
285
|
-
.reduce((o, p) =>
|
|
285
|
+
.reduce((o, p) => {
|
|
286
|
+
o[p] = o[p] || {};
|
|
287
|
+
return o[p];
|
|
288
|
+
}, obj);
|
|
286
289
|
this.set(path, val, obj);
|
|
287
290
|
}
|
|
288
291
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
6
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
8
|
export declare function IncludedMixin<T extends Constructor<HTMLElement>>(base: T): T & Constructor<IncludedMixinClass>;
|
|
9
9
|
|
package/src/vaadin-crud.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
7
7
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
8
|
-
import { GridFilterDefinition, GridSorterDefinition } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
|
+
import type { GridFilterDefinition, GridSorterDefinition } from '@vaadin/grid/src/vaadin-grid.js';
|
|
9
9
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
10
|
|
|
11
11
|
export type CrudDataProviderCallback<T> = (items: T[], size?: number) => void;
|
package/src/vaadin-crud.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import '@vaadin/button/src/vaadin-button.js';
|
|
7
7
|
import '@vaadin/dialog/src/vaadin-dialog.js';
|
|
8
8
|
import '@vaadin/confirm-dialog/src/vaadin-confirm-dialog.js';
|
|
9
|
-
import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
|
|
10
9
|
import './vaadin-crud-dialog.js';
|
|
11
10
|
import './vaadin-crud-grid.js';
|
|
12
11
|
import './vaadin-crud-form.js';
|
|
@@ -615,17 +614,6 @@ class Crud extends SlotMixin(ControllerMixin(ElementMixin(ThemableMixin(PolymerE
|
|
|
615
614
|
];
|
|
616
615
|
}
|
|
617
616
|
|
|
618
|
-
/** @protected */
|
|
619
|
-
static _finalizeClass() {
|
|
620
|
-
super._finalizeClass();
|
|
621
|
-
|
|
622
|
-
const devModeCallback = window.Vaadin.developmentModeCallback;
|
|
623
|
-
const licenseChecker = devModeCallback && devModeCallback['vaadin-license-checker'];
|
|
624
|
-
if (typeof licenseChecker === 'function') {
|
|
625
|
-
licenseChecker(Crud);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
|
|
629
617
|
/** @private */
|
|
630
618
|
static _isValidEditorPosition(editorPosition) {
|
|
631
619
|
return ['bottom', 'aside'].includes(editorPosition);
|
|
@@ -1284,7 +1272,10 @@ class Crud extends SlotMixin(ControllerMixin(ElementMixin(ThemableMixin(PolymerE
|
|
|
1284
1272
|
path
|
|
1285
1273
|
.split('.')
|
|
1286
1274
|
.slice(0, -1)
|
|
1287
|
-
.reduce((o, p) =>
|
|
1275
|
+
.reduce((o, p) => {
|
|
1276
|
+
o[p] = o[p] || {};
|
|
1277
|
+
return o[p];
|
|
1278
|
+
}, obj);
|
|
1288
1279
|
this.set(path, val, obj);
|
|
1289
1280
|
}
|
|
1290
1281
|
}
|