@vaadin/crud 24.8.5 → 24.9.0-alpha2
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 +16 -16
- package/web-types.json +6 -6
- package/web-types.lit.json +4 -4
- package/src/vaadin-lit-crud-dialog.js +0 -128
- package/src/vaadin-lit-crud-edit-column.js +0 -70
- package/src/vaadin-lit-crud-edit.js +0 -75
- package/src/vaadin-lit-crud-form.js +0 -80
- package/src/vaadin-lit-crud-grid.js +0 -35
- package/src/vaadin-lit-crud.js +0 -121
- package/theme/lumo/vaadin-lit-crud.d.ts +0 -8
- package/theme/lumo/vaadin-lit-crud.js +0 -8
- package/theme/material/vaadin-lit-crud.d.ts +0 -8
- package/theme/material/vaadin-lit-crud.js +0 -8
- package/vaadin-lit-crud-edit .js +0 -1
- package/vaadin-lit-crud-edit-column.d.ts +0 -1
- package/vaadin-lit-crud-edit-column.js +0 -1
- package/vaadin-lit-crud-edit.d.ts +0 -1
- package/vaadin-lit-crud.d.ts +0 -1
- package/vaadin-lit-crud.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/crud",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/a11y-base": "
|
|
41
|
-
"@vaadin/button": "
|
|
42
|
-
"@vaadin/component-base": "
|
|
43
|
-
"@vaadin/confirm-dialog": "
|
|
44
|
-
"@vaadin/dialog": "
|
|
45
|
-
"@vaadin/form-layout": "
|
|
46
|
-
"@vaadin/grid": "
|
|
47
|
-
"@vaadin/overlay": "
|
|
48
|
-
"@vaadin/text-field": "
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
50
|
-
"@vaadin/vaadin-material-styles": "
|
|
51
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/a11y-base": "24.9.0-alpha2",
|
|
41
|
+
"@vaadin/button": "24.9.0-alpha2",
|
|
42
|
+
"@vaadin/component-base": "24.9.0-alpha2",
|
|
43
|
+
"@vaadin/confirm-dialog": "24.9.0-alpha2",
|
|
44
|
+
"@vaadin/dialog": "24.9.0-alpha2",
|
|
45
|
+
"@vaadin/form-layout": "24.9.0-alpha2",
|
|
46
|
+
"@vaadin/grid": "24.9.0-alpha2",
|
|
47
|
+
"@vaadin/overlay": "24.9.0-alpha2",
|
|
48
|
+
"@vaadin/text-field": "24.9.0-alpha2",
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-alpha2",
|
|
50
|
+
"@vaadin/vaadin-material-styles": "24.9.0-alpha2",
|
|
51
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
|
|
52
52
|
"lit": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vaadin/chai-plugins": "
|
|
56
|
-
"@vaadin/test-runner-commands": "
|
|
55
|
+
"@vaadin/chai-plugins": "24.9.0-alpha2",
|
|
56
|
+
"@vaadin/test-runner-commands": "24.9.0-alpha2",
|
|
57
57
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
58
58
|
"sinon": "^18.0.0"
|
|
59
59
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"web-types.json",
|
|
63
63
|
"web-types.lit.json"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
|
|
66
66
|
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/crud",
|
|
4
|
-
"version": "24.
|
|
4
|
+
"version": "24.9.0-alpha2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
"name": "vaadin-crud",
|
|
360
|
-
"description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
360
|
+
"description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-items) property.\n\nA grid and an editor will be automatically generated and configured based on the data structure provided.\n\n```html\n<vaadin-crud></vaadin-crud>\n```\n```js\nconst crud = document.querySelector('vaadin-crud');\n\ncrud.items = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n```\n\n### Data Provider Function\n\nOtherwise, you can provide a [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-dataProvider) function.\n\n```js\nconst crud = document.querySelector('vaadin-crud');\n\nconst users = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n\ncrud.dataProvider = (params, callback) => {\n const chunk = users.slice(params.page * params.pageSize, params.page * params.pageSize + params.pageSize);\n callback(chunk, people.length);\n};\n```\n\nNOTE: The auto-generated editor only supports string types. If you need to handle special cases\ncustomizing the editor is discussed below.\n\n### Customization\n\nAlternatively you can fully configure the component by using `slot` names.\n\nSlot name | Description\n---------------|----------------\n`grid` | To replace the auto-generated grid with a custom one.\n`form` | To replace the auto-generated form.\n`save-button` | To replace the \"Save\" button.\n`cancel-button`| To replace the \"Cancel\" button.\n`delete-button`| To replace the \"Delete\" button.\n`toolbar` | To provide the toolbar content (by default, it's empty).\n`new-button` | To replace the \"New item\" button.\n\n#### Example:\n\n```html\n<vaadin-crud id=\"crud\">\n <vaadin-grid slot=\"grid\">\n <vaadin-crud-edit-column></vaadin-crud-edit-column>\n <vaadin-grid-column id=\"column1\"></vaadin-grid-column>\n <vaadin-grid-column id=\"column2\"></vaadin-grid-column>\n </vaadin-grid>\n\n <vaadin-form-layout slot=\"form\">\n <vaadin-text-field label=\"First\" path=\"name\"></vaadin-text-field>\n <vaadin-text-field label=\"Surname\" path=\"surname\"></vaadin-text-field>\n </vaadin-form-layout>\n\n <div slot=\"toolbar\">Total singers: 2</div>\n <button slot=\"new-button\">New singer</button>\n\n <button slot=\"save-button\">Save changes</button>\n <button slot=\"cancel-button\">Discard changes</button>\n <button slot=\"delete-button\">Delete singer</button>\n</vaadin-crud>\n```\n```js\nconst crud = document.querySelector('#crud');\n\nconst column1 = document.querySelector('#column1');\ncolumn1.headerRenderer = (root, column) => {\n root.textContent = 'Name';\n};\ncolumn1.renderer = (root, column, model) => {\n root.textContent = model.item.name;\n};\n\nconst column2 = document.querySelector('#column2');\ncolumn2.headerRenderer = (root, column) => {\n root.textContent = 'Surname';\n};\ncolumn2.renderer = (root, column, model) => {\n root.textContent = model.item.surname;\n};\n\ncrud.items = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n```\n\n### Helpers\n\nThe following elements are used to auto-configure the grid and the editor\n- [`<vaadin-crud-edit-column>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud-edit-column)\n- `<vaadin-crud-grid>` - can be replaced with custom [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-grid)\n- `<vaadin-crud-form>` - can be replaced with custom [`<vaadin-form-layout>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-form-layout)\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`toolbar` | Toolbar container at the bottom. By default it contains the the `new` button\n\nThe following custom properties are available:\n\nCustom Property | Description | Default\n----------------|----------------\n--vaadin-crud-editor-max-height | max height of editor when opened on the bottom | 40%\n--vaadin-crud-editor-max-width | max width of editor when opened on the side | 40%\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
361
361
|
"attributes": [
|
|
362
362
|
{
|
|
363
363
|
"name": "i18n",
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
"name": "include",
|
|
424
|
-
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
424
|
+
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
|
|
425
425
|
"value": {
|
|
426
426
|
"type": [
|
|
427
427
|
"string",
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
"name": "exclude",
|
|
435
|
-
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
435
|
+
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
|
|
436
436
|
"value": {
|
|
437
437
|
"type": [
|
|
438
438
|
"string",
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
},
|
|
569
569
|
{
|
|
570
570
|
"name": "include",
|
|
571
|
-
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
571
|
+
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
|
|
572
572
|
"value": {
|
|
573
573
|
"type": [
|
|
574
574
|
"string",
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
581
|
"name": "exclude",
|
|
582
|
-
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
582
|
+
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
|
|
583
583
|
"value": {
|
|
584
584
|
"type": [
|
|
585
585
|
"string",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/crud",
|
|
4
|
-
"version": "24.
|
|
4
|
+
"version": "24.9.0-alpha2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"name": "vaadin-crud",
|
|
145
|
-
"description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
145
|
+
"description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-items) property.\n\nA grid and an editor will be automatically generated and configured based on the data structure provided.\n\n```html\n<vaadin-crud></vaadin-crud>\n```\n```js\nconst crud = document.querySelector('vaadin-crud');\n\ncrud.items = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n```\n\n### Data Provider Function\n\nOtherwise, you can provide a [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-dataProvider) function.\n\n```js\nconst crud = document.querySelector('vaadin-crud');\n\nconst users = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n\ncrud.dataProvider = (params, callback) => {\n const chunk = users.slice(params.page * params.pageSize, params.page * params.pageSize + params.pageSize);\n callback(chunk, people.length);\n};\n```\n\nNOTE: The auto-generated editor only supports string types. If you need to handle special cases\ncustomizing the editor is discussed below.\n\n### Customization\n\nAlternatively you can fully configure the component by using `slot` names.\n\nSlot name | Description\n---------------|----------------\n`grid` | To replace the auto-generated grid with a custom one.\n`form` | To replace the auto-generated form.\n`save-button` | To replace the \"Save\" button.\n`cancel-button`| To replace the \"Cancel\" button.\n`delete-button`| To replace the \"Delete\" button.\n`toolbar` | To provide the toolbar content (by default, it's empty).\n`new-button` | To replace the \"New item\" button.\n\n#### Example:\n\n```html\n<vaadin-crud id=\"crud\">\n <vaadin-grid slot=\"grid\">\n <vaadin-crud-edit-column></vaadin-crud-edit-column>\n <vaadin-grid-column id=\"column1\"></vaadin-grid-column>\n <vaadin-grid-column id=\"column2\"></vaadin-grid-column>\n </vaadin-grid>\n\n <vaadin-form-layout slot=\"form\">\n <vaadin-text-field label=\"First\" path=\"name\"></vaadin-text-field>\n <vaadin-text-field label=\"Surname\" path=\"surname\"></vaadin-text-field>\n </vaadin-form-layout>\n\n <div slot=\"toolbar\">Total singers: 2</div>\n <button slot=\"new-button\">New singer</button>\n\n <button slot=\"save-button\">Save changes</button>\n <button slot=\"cancel-button\">Discard changes</button>\n <button slot=\"delete-button\">Delete singer</button>\n</vaadin-crud>\n```\n```js\nconst crud = document.querySelector('#crud');\n\nconst column1 = document.querySelector('#column1');\ncolumn1.headerRenderer = (root, column) => {\n root.textContent = 'Name';\n};\ncolumn1.renderer = (root, column, model) => {\n root.textContent = model.item.name;\n};\n\nconst column2 = document.querySelector('#column2');\ncolumn2.headerRenderer = (root, column) => {\n root.textContent = 'Surname';\n};\ncolumn2.renderer = (root, column, model) => {\n root.textContent = model.item.surname;\n};\n\ncrud.items = [\n { name: 'John', surname: 'Lennon', role: 'singer' },\n { name: 'Ringo', surname: 'Starr', role: 'drums' },\n // ... more items\n];\n```\n\n### Helpers\n\nThe following elements are used to auto-configure the grid and the editor\n- [`<vaadin-crud-edit-column>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud-edit-column)\n- `<vaadin-crud-grid>` - can be replaced with custom [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-grid)\n- `<vaadin-crud-form>` - can be replaced with custom [`<vaadin-form-layout>`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-form-layout)\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`toolbar` | Toolbar container at the bottom. By default it contains the the `new` button\n\nThe following custom properties are available:\n\nCustom Property | Description | Default\n----------------|----------------\n--vaadin-crud-editor-max-height | max height of editor when opened on the bottom | 40%\n--vaadin-crud-editor-max-width | max width of editor when opened on the side | 40%\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
146
146
|
"extension": true,
|
|
147
147
|
"attributes": [
|
|
148
148
|
{
|
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
"name": ".include",
|
|
227
|
-
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
227
|
+
"description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
|
|
228
228
|
"value": {
|
|
229
229
|
"kind": "expression"
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"name": ".exclude",
|
|
234
|
-
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.
|
|
234
|
+
"description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
|
|
235
235
|
"value": {
|
|
236
236
|
"kind": "expression"
|
|
237
237
|
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import { css, html, LitElement } from 'lit';
|
|
12
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
13
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
14
|
-
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
15
|
-
import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
|
|
16
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
17
|
-
import { DialogBaseMixin } from '@vaadin/dialog/src/vaadin-dialog-base-mixin.js';
|
|
18
|
-
import { dialogOverlay, resizableOverlay } from '@vaadin/dialog/src/vaadin-dialog-styles.js';
|
|
19
|
-
import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
|
|
20
|
-
import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
|
|
21
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
22
|
-
import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
|
|
23
|
-
import { crudDialogOverlayStyles } from './vaadin-crud-styles.js';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* An element used internally by `<vaadin-crud>`. Not intended to be used separately.
|
|
27
|
-
*
|
|
28
|
-
* @extends HTMLElement
|
|
29
|
-
* @mixes DirMixin
|
|
30
|
-
* @mixes OverlayMixin
|
|
31
|
-
* @mixes ThemableMixin
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
class CrudDialogOverlay extends OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
35
|
-
static get is() {
|
|
36
|
-
return 'vaadin-crud-dialog-overlay';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static get styles() {
|
|
40
|
-
return [overlayStyles, dialogOverlay, resizableOverlay, crudDialogOverlayStyles];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** @protected */
|
|
44
|
-
render() {
|
|
45
|
-
return html`
|
|
46
|
-
<div part="backdrop" id="backdrop" ?hidden="${!this.withBackdrop}"></div>
|
|
47
|
-
<div part="overlay" id="overlay" tabindex="0">
|
|
48
|
-
<section id="resizerContainer" class="resizer-container">
|
|
49
|
-
<header part="header"><slot name="header"></slot></header>
|
|
50
|
-
<div part="content" id="content">
|
|
51
|
-
<slot name="form"></slot>
|
|
52
|
-
</div>
|
|
53
|
-
<footer part="footer" role="toolbar">
|
|
54
|
-
<slot name="save-button"></slot>
|
|
55
|
-
<slot name="cancel-button"></slot>
|
|
56
|
-
<slot name="delete-button"></slot>
|
|
57
|
-
</footer>
|
|
58
|
-
</section>
|
|
59
|
-
</div>
|
|
60
|
-
`;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @protected
|
|
65
|
-
* @override
|
|
66
|
-
*/
|
|
67
|
-
ready() {
|
|
68
|
-
super.ready();
|
|
69
|
-
|
|
70
|
-
// CRUD has header and footer but does not use renderers
|
|
71
|
-
this.setAttribute('has-header', '');
|
|
72
|
-
this.setAttribute('has-footer', '');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
defineCustomElement(CrudDialogOverlay);
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* An element used internally by `<vaadin-crud>`. Not intended to be used separately.
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
class CrudDialog extends DialogBaseMixin(OverlayClassMixin(ThemePropertyMixin(PolylitMixin(LitElement)))) {
|
|
83
|
-
static get is() {
|
|
84
|
-
return 'vaadin-crud-dialog';
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
static get styles() {
|
|
88
|
-
return css`
|
|
89
|
-
:host {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
`;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
static get properties() {
|
|
96
|
-
return {
|
|
97
|
-
ariaLabel: {
|
|
98
|
-
type: String,
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
fullscreen: {
|
|
102
|
-
type: Boolean,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** @protected */
|
|
108
|
-
render() {
|
|
109
|
-
return html`
|
|
110
|
-
<vaadin-crud-dialog-overlay
|
|
111
|
-
id="overlay"
|
|
112
|
-
.opened="${this.opened}"
|
|
113
|
-
aria-label="${ifDefined(this.ariaLabel)}"
|
|
114
|
-
@opened-changed="${this._onOverlayOpened}"
|
|
115
|
-
@mousedown="${this._bringOverlayToFront}"
|
|
116
|
-
@touchstart="${this._bringOverlayToFront}"
|
|
117
|
-
theme="${ifDefined(this._theme)}"
|
|
118
|
-
.modeless="${this.modeless}"
|
|
119
|
-
.withBackdrop="${!this.modeless}"
|
|
120
|
-
?fullscreen="${this.fullscreen}"
|
|
121
|
-
role="dialog"
|
|
122
|
-
focus-trap
|
|
123
|
-
></vaadin-crud-dialog-overlay>
|
|
124
|
-
`;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
defineCustomElement(CrudDialog);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import './vaadin-lit-crud-edit.js';
|
|
12
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
|
-
import { GridColumn } from '@vaadin/grid/src/vaadin-lit-grid-column.js';
|
|
14
|
-
import { editColumnDefaultRenderer } from './vaadin-crud-helpers.js';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* LitElement based version of `<vaadin-crud-edit-column>` web component.
|
|
18
|
-
*
|
|
19
|
-
* ## Disclaimer
|
|
20
|
-
*
|
|
21
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
22
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
23
|
-
*/
|
|
24
|
-
class CrudEditColumn extends GridColumn {
|
|
25
|
-
static get is() {
|
|
26
|
-
return 'vaadin-crud-edit-column';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static get properties() {
|
|
30
|
-
return {
|
|
31
|
-
/**
|
|
32
|
-
* Width of the cells for this column.
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
width: {
|
|
36
|
-
type: String,
|
|
37
|
-
value: '4rem',
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Flex grow ratio for the cell widths. When set to 0, cell width is fixed.
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
flexGrow: {
|
|
45
|
-
type: Number,
|
|
46
|
-
value: 0,
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
/** The arial-label for the edit button */
|
|
50
|
-
ariaLabel: String,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static get observers() {
|
|
55
|
-
return ['_onRendererOrBindingChanged(_renderer, _cells, _bodyContentHidden, _cells.*, path, ariaLabel)'];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Renders the crud edit element to the body cell.
|
|
60
|
-
*
|
|
61
|
-
* @override
|
|
62
|
-
*/
|
|
63
|
-
_defaultRenderer(root, column) {
|
|
64
|
-
editColumnDefaultRenderer(root, column);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
defineCustomElement(CrudEditColumn);
|
|
69
|
-
|
|
70
|
-
export { CrudEditColumn };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { html } from 'lit';
|
|
13
|
-
import { Button } from '@vaadin/button/src/vaadin-lit-button.js';
|
|
14
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
15
|
-
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* LitElement based version of `<vaadin-crud-edit>` web component.
|
|
19
|
-
*
|
|
20
|
-
* ## Disclaimer
|
|
21
|
-
*
|
|
22
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
23
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
24
|
-
*/
|
|
25
|
-
class CrudEdit extends Button {
|
|
26
|
-
static get is() {
|
|
27
|
-
return 'vaadin-crud-edit';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static get styles() {
|
|
31
|
-
return [
|
|
32
|
-
super.styles,
|
|
33
|
-
css`
|
|
34
|
-
:host {
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
`,
|
|
38
|
-
];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** @protected */
|
|
42
|
-
render() {
|
|
43
|
-
return html`
|
|
44
|
-
<div part="icon"></div>
|
|
45
|
-
<slot name="tooltip"></slot>
|
|
46
|
-
`;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** @protected */
|
|
50
|
-
ready() {
|
|
51
|
-
super.ready();
|
|
52
|
-
this.addEventListener('click', this.__onClick);
|
|
53
|
-
this.setAttribute('aria-label', 'Edit');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** @private */
|
|
57
|
-
__onClick(e) {
|
|
58
|
-
const tr = e.target.parentElement.assignedSlot.parentElement.parentElement;
|
|
59
|
-
tr.dispatchEvent(
|
|
60
|
-
new CustomEvent('edit', { detail: { item: tr._item, index: tr.index }, bubbles: true, composed: true }),
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Fired when user on the icon.
|
|
66
|
-
*
|
|
67
|
-
* @event edit
|
|
68
|
-
* @param {Object} detail.item the item to edit
|
|
69
|
-
* @param {Object} detail.index the index of the item in the data set
|
|
70
|
-
*/
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
defineCustomElement(CrudEdit);
|
|
74
|
-
|
|
75
|
-
export { CrudEdit };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import '@vaadin/text-field/src/vaadin-lit-text-field.js';
|
|
12
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
|
-
import { FormLayout } from '@vaadin/form-layout/src/vaadin-lit-form-layout.js';
|
|
14
|
-
import { createField, createFields } from './vaadin-crud-helpers.js';
|
|
15
|
-
import { IncludedMixin } from './vaadin-crud-include-mixin.js';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* An element used internally by `<vaadin-crud>`. Not intended to be used separately.
|
|
19
|
-
*
|
|
20
|
-
* @extends FormLayout
|
|
21
|
-
* @mixes IncludedMixin
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
class CrudForm extends IncludedMixin(FormLayout) {
|
|
25
|
-
static get is() {
|
|
26
|
-
return 'vaadin-crud-form';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static get properties() {
|
|
30
|
-
return {
|
|
31
|
-
/**
|
|
32
|
-
* The item being edited.
|
|
33
|
-
* @type {unknown}
|
|
34
|
-
*/
|
|
35
|
-
item: {
|
|
36
|
-
type: Object,
|
|
37
|
-
sync: true,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static get observers() {
|
|
43
|
-
return ['__onItemChange(item)'];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Auto-generate form fields based on the JSON structure of the object provided.
|
|
48
|
-
*
|
|
49
|
-
* If not called, the method will be executed the first time an item is assigned.
|
|
50
|
-
* @param {unknown} object
|
|
51
|
-
* @protected
|
|
52
|
-
*/
|
|
53
|
-
_configure(object) {
|
|
54
|
-
this.innerHTML = '';
|
|
55
|
-
this._fields = [];
|
|
56
|
-
this.__createFields(this, object);
|
|
57
|
-
this._updateLayout();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** @private */
|
|
61
|
-
__onItemChange(item) {
|
|
62
|
-
if (!this._fields) {
|
|
63
|
-
this._configure(item);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/** @private */
|
|
68
|
-
__createField(parent, path) {
|
|
69
|
-
return createField(this, parent, path);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** @private */
|
|
73
|
-
__createFields(parent, object, path) {
|
|
74
|
-
return createFields(this, parent, object, path);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
defineCustomElement(CrudForm);
|
|
79
|
-
|
|
80
|
-
export { CrudForm };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import '@vaadin/grid/src/vaadin-lit-grid-column-group.js';
|
|
12
|
-
import '@vaadin/grid/src/vaadin-lit-grid-column.js';
|
|
13
|
-
import '@vaadin/grid/src/vaadin-lit-grid-filter.js';
|
|
14
|
-
import '@vaadin/grid/src/vaadin-lit-grid-sorter.js';
|
|
15
|
-
import './vaadin-lit-crud-edit-column.js';
|
|
16
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
17
|
-
import { Grid } from '@vaadin/grid/src/vaadin-lit-grid.js';
|
|
18
|
-
import { CrudGridMixin } from './vaadin-crud-grid-mixin.js';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* An element used internally by `<vaadin-crud>`. Not intended to be used separately.
|
|
22
|
-
*
|
|
23
|
-
* @extends Grid
|
|
24
|
-
* @mixes CrudGridMixin
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
|
-
class CrudGrid extends CrudGridMixin(Grid) {
|
|
28
|
-
static get is() {
|
|
29
|
-
return 'vaadin-crud-grid';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
defineCustomElement(CrudGrid);
|
|
34
|
-
|
|
35
|
-
export { CrudGrid };
|
package/src/vaadin-lit-crud.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import '@vaadin/button/src/vaadin-lit-button.js';
|
|
12
|
-
import '@vaadin/confirm-dialog/src/vaadin-lit-confirm-dialog.js';
|
|
13
|
-
import './vaadin-lit-crud-dialog.js';
|
|
14
|
-
import './vaadin-lit-crud-grid.js';
|
|
15
|
-
import './vaadin-lit-crud-form.js';
|
|
16
|
-
import { html, LitElement } from 'lit';
|
|
17
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
18
|
-
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
19
|
-
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
20
|
-
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
21
|
-
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
22
|
-
import { CrudMixin } from './vaadin-crud-mixin.js';
|
|
23
|
-
import { crudStyles } from './vaadin-crud-styles.js';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* LitElement based version of `<vaadin-crud>` web component.
|
|
27
|
-
*
|
|
28
|
-
* ## Disclaimer
|
|
29
|
-
*
|
|
30
|
-
* This component is an experiment and not yet a part of Vaadin platform.
|
|
31
|
-
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
32
|
-
*/
|
|
33
|
-
class Crud extends CrudMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
34
|
-
static get styles() {
|
|
35
|
-
return crudStyles;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** @protected */
|
|
39
|
-
render() {
|
|
40
|
-
return html`
|
|
41
|
-
<div id="container">
|
|
42
|
-
<div id="main">
|
|
43
|
-
<slot name="grid"></slot>
|
|
44
|
-
|
|
45
|
-
<div id="toolbar" part="toolbar">
|
|
46
|
-
<slot name="toolbar"></slot>
|
|
47
|
-
<slot name="new-button"></slot>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div
|
|
52
|
-
part="editor"
|
|
53
|
-
id="editor"
|
|
54
|
-
role="group"
|
|
55
|
-
aria-labelledby="header"
|
|
56
|
-
?hidden="${this.__computeEditorHidden(this.editorOpened, this._fullscreen, this.editorPosition)}"
|
|
57
|
-
>
|
|
58
|
-
<div part="scroller" id="scroller">
|
|
59
|
-
<div part="header" id="header">
|
|
60
|
-
<slot name="header"></slot>
|
|
61
|
-
</div>
|
|
62
|
-
<slot name="form"></slot>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<div part="footer" role="toolbar">
|
|
66
|
-
<slot name="save-button"></slot>
|
|
67
|
-
<slot name="cancel-button"></slot>
|
|
68
|
-
<slot name="delete-button"></slot>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<vaadin-crud-dialog
|
|
74
|
-
id="dialog"
|
|
75
|
-
.opened="${this.__computeDialogOpened(this.editorOpened, this._fullscreen, this.editorPosition)}"
|
|
76
|
-
.fullscreen="${this._fullscreen}"
|
|
77
|
-
.ariaLabel="${this.__dialogAriaLabel}"
|
|
78
|
-
.noCloseOnOutsideClick="${this.__isDirty}"
|
|
79
|
-
.noCloseOnEsc="${this.__isDirty}"
|
|
80
|
-
theme="${ifDefined(this._theme)}"
|
|
81
|
-
@opened-changed="${this.__onDialogOpened}"
|
|
82
|
-
></vaadin-crud-dialog>
|
|
83
|
-
|
|
84
|
-
<vaadin-confirm-dialog
|
|
85
|
-
theme="${ifDefined(this._theme)}"
|
|
86
|
-
id="confirmCancel"
|
|
87
|
-
@confirm="${this.__confirmCancel}"
|
|
88
|
-
cancel-button-visible
|
|
89
|
-
.confirmText="${this.__effectiveI18n.confirm.cancel.button.confirm}"
|
|
90
|
-
.cancelText="${this.__effectiveI18n.confirm.cancel.button.dismiss}"
|
|
91
|
-
.header="${this.__effectiveI18n.confirm.cancel.title}"
|
|
92
|
-
.message="${this.__effectiveI18n.confirm.cancel.content}"
|
|
93
|
-
confirm-theme="primary"
|
|
94
|
-
></vaadin-confirm-dialog>
|
|
95
|
-
|
|
96
|
-
<vaadin-confirm-dialog
|
|
97
|
-
theme="${ifDefined(this._theme)}"
|
|
98
|
-
id="confirmDelete"
|
|
99
|
-
@confirm="${this.__confirmDelete}"
|
|
100
|
-
cancel-button-visible
|
|
101
|
-
.confirmText="${this.__effectiveI18n.confirm.delete.button.confirm}"
|
|
102
|
-
.cancelText="${this.__effectiveI18n.confirm.delete.button.dismiss}"
|
|
103
|
-
.header="${this.__effectiveI18n.confirm.delete.title}"
|
|
104
|
-
.message="${this.__effectiveI18n.confirm.delete.content}"
|
|
105
|
-
confirm-theme="primary error"
|
|
106
|
-
></vaadin-confirm-dialog>
|
|
107
|
-
`;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
static get is() {
|
|
111
|
-
return 'vaadin-crud';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
static get cvdlName() {
|
|
115
|
-
return 'vaadin-crud';
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
defineCustomElement(Crud);
|
|
120
|
-
|
|
121
|
-
export { Crud };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@vaadin/button/theme/lumo/vaadin-lit-button.js';
|
|
2
|
-
import '@vaadin/confirm-dialog/theme/lumo/vaadin-lit-confirm-dialog.js';
|
|
3
|
-
import '@vaadin/form-layout/theme/lumo/vaadin-lit-form-layout.js';
|
|
4
|
-
import '@vaadin/grid/theme/lumo/vaadin-lit-grid.js';
|
|
5
|
-
import '@vaadin/grid/theme/lumo/vaadin-lit-grid-sorter.js';
|
|
6
|
-
import '@vaadin/text-field/theme/lumo/vaadin-lit-text-field.js';
|
|
7
|
-
import './vaadin-crud-styles.js';
|
|
8
|
-
import '../../src/vaadin-lit-crud.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@vaadin/button/theme/lumo/vaadin-lit-button.js';
|
|
2
|
-
import '@vaadin/confirm-dialog/theme/lumo/vaadin-lit-confirm-dialog.js';
|
|
3
|
-
import '@vaadin/form-layout/theme/lumo/vaadin-lit-form-layout.js';
|
|
4
|
-
import '@vaadin/grid/theme/lumo/vaadin-lit-grid.js';
|
|
5
|
-
import '@vaadin/grid/theme/lumo/vaadin-lit-grid-sorter.js';
|
|
6
|
-
import '@vaadin/text-field/theme/lumo/vaadin-lit-text-field.js';
|
|
7
|
-
import './vaadin-crud-styles.js';
|
|
8
|
-
import '../../src/vaadin-lit-crud.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@vaadin/button/theme/material/vaadin-lit-button.js';
|
|
2
|
-
import '@vaadin/confirm-dialog/theme/material/vaadin-lit-confirm-dialog.js';
|
|
3
|
-
import '@vaadin/form-layout/theme/material/vaadin-lit-form-layout.js';
|
|
4
|
-
import '@vaadin/grid/theme/material/vaadin-lit-grid.js';
|
|
5
|
-
import '@vaadin/grid/theme/material/vaadin-lit-grid-sorter.js';
|
|
6
|
-
import '@vaadin/text-field/theme/material/vaadin-lit-text-field.js';
|
|
7
|
-
import './vaadin-crud-styles.js';
|
|
8
|
-
import '../../src/vaadin-lit-crud.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@vaadin/button/theme/material/vaadin-lit-button.js';
|
|
2
|
-
import '@vaadin/confirm-dialog/theme/material/vaadin-lit-confirm-dialog.js';
|
|
3
|
-
import '@vaadin/form-layout/theme/material/vaadin-lit-form-layout.js';
|
|
4
|
-
import '@vaadin/grid/theme/material/vaadin-lit-grid.js';
|
|
5
|
-
import '@vaadin/grid/theme/material/vaadin-lit-grid-sorter.js';
|
|
6
|
-
import '@vaadin/text-field/theme/material/vaadin-lit-text-field.js';
|
|
7
|
-
import './vaadin-crud-styles.js';
|
|
8
|
-
import '../../src/vaadin-lit-crud.js';
|
package/vaadin-lit-crud-edit .js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-lit-crud-edit.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-crud-edit-column.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-lit-crud-edit-column.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-crud-edit.js';
|
package/vaadin-lit-crud.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-crud.js';
|
package/vaadin-lit-crud.js
DELETED