@vaadin/crud 23.0.0-alpha2 → 23.0.0-beta1

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.0.0-alpha2",
3
+ "version": "23.0.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "main": "vaadin-crud.js",
20
20
  "module": "vaadin-crud.js",
21
+ "type": "module",
21
22
  "files": [
22
23
  "src",
23
24
  "theme",
@@ -35,22 +36,22 @@
35
36
  "@open-wc/dedupe-mixin": "^1.3.0",
36
37
  "@polymer/iron-media-query": "^3.0.0",
37
38
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "23.0.0-alpha2",
39
- "@vaadin/component-base": "23.0.0-alpha2",
40
- "@vaadin/confirm-dialog": "23.0.0-alpha2",
41
- "@vaadin/dialog": "23.0.0-alpha2",
42
- "@vaadin/form-layout": "23.0.0-alpha2",
43
- "@vaadin/grid": "23.0.0-alpha2",
44
- "@vaadin/text-field": "23.0.0-alpha2",
39
+ "@vaadin/button": "23.0.0-beta1",
40
+ "@vaadin/component-base": "23.0.0-beta1",
41
+ "@vaadin/confirm-dialog": "23.0.0-beta1",
42
+ "@vaadin/dialog": "23.0.0-beta1",
43
+ "@vaadin/form-layout": "23.0.0-beta1",
44
+ "@vaadin/grid": "23.0.0-beta1",
45
+ "@vaadin/text-field": "23.0.0-beta1",
45
46
  "@vaadin/vaadin-license-checker": "^2.1.0",
46
- "@vaadin/vaadin-lumo-styles": "23.0.0-alpha2",
47
- "@vaadin/vaadin-material-styles": "23.0.0-alpha2",
48
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha2"
47
+ "@vaadin/vaadin-lumo-styles": "23.0.0-beta1",
48
+ "@vaadin/vaadin-material-styles": "23.0.0-beta1",
49
+ "@vaadin/vaadin-themable-mixin": "23.0.0-beta1"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@esm-bundle/chai": "^4.3.4",
52
53
  "@vaadin/testing-helpers": "^0.3.2",
53
54
  "sinon": "^9.2.1"
54
55
  },
55
- "gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
56
+ "gitHead": "467244b76021176c109df675799b07029b293e58"
56
57
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import { html } from '@polymer/polymer/lib/utils/html-tag.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { GridColumn } from '@vaadin/grid/src/vaadin-grid-column.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import './vaadin-crud-edit.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { Button } from '@vaadin/button/src/vaadin-button.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import { html } from '@polymer/polymer/polymer-element.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { FormLayout } from '@vaadin/form-layout/src/vaadin-form-layout.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import '@vaadin/text-field/src/vaadin-text-field.js';
@@ -44,7 +44,7 @@ class CrudForm extends IncludedMixin(FormLayout) {
44
44
  this.innerHTML = '';
45
45
  this._fields = [];
46
46
  this.__createFields(this, object);
47
- this.notifyResize();
47
+ this._updateLayout();
48
48
  }
49
49
 
50
50
  /** @private */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import '@vaadin/grid/src/vaadin-grid-column.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
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
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
@@ -335,7 +335,7 @@ declare class Crud<Item> extends ElementMixin(ThemableMixin(HTMLElement)) {
335
335
  readonly size: number | null | undefined;
336
336
 
337
337
  /**
338
- * Controls visiblity state of toolbar.
338
+ * Controls visibility state of toolbar.
339
339
  * When set to false toolbar is hidden and shown when set to true.
340
340
  * @attr {boolean} no-toolbar
341
341
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2021 Vaadin Ltd.
3
+ * Copyright (c) 2018 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
6
  import '@polymer/iron-media-query/iron-media-query.js';
@@ -38,13 +38,12 @@ registerStyles(
38
38
  * They are applied to both `vaadin-crud` and `vaadin-crud-dialog-overlay` components.
39
39
  */
40
40
  const editorStyles = css`
41
- [part='scroller'] {
42
- padding: var(--lumo-space-l);
41
+ [part='header'] ::slotted(h3) {
42
+ margin-top: 0 !important;
43
43
  }
44
44
 
45
- ::slotted([slot='header']) {
46
- margin-top: var(--lumo-space-s);
47
- margin-bottom: var(--lumo-space-s);
45
+ [part='scroller'] {
46
+ padding: var(--lumo-space-l);
48
47
  }
49
48
 
50
49
  [part='footer'] {
@@ -127,4 +126,6 @@ registerStyles(
127
126
  { moduleId: 'lumo-crud' }
128
127
  );
129
128
 
130
- registerStyles('vaadin-crud-dialog-overlay', editorStyles, { moduleId: 'lumo-crud-dialog-overlay' });
129
+ registerStyles('vaadin-crud-dialog-overlay', editorStyles, {
130
+ moduleId: 'lumo-crud-dialog-overlay'
131
+ });