@vaadin/upload 25.0.0-alpha2 → 25.0.0-alpha4
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 +10 -10
- package/src/styles/vaadin-upload-file-list-styles.d.ts +8 -0
- package/src/styles/vaadin-upload-file-list-styles.js +22 -0
- package/src/styles/vaadin-upload-styles.d.ts +8 -0
- package/src/styles/vaadin-upload-styles.js +22 -0
- package/src/vaadin-upload-file-list.js +3 -16
- package/src/vaadin-upload-file.js +1 -1
- package/src/vaadin-upload.js +3 -16
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- /package/src/{vaadin-upload-file-styles.d.ts → styles/vaadin-upload-file-styles.d.ts} +0 -0
- /package/src/{vaadin-upload-file-styles.js → styles/vaadin-upload-file-styles.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
39
|
-
"@vaadin/button": "25.0.0-
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/progress-bar": "25.0.0-
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.0.0-alpha4",
|
|
39
|
+
"@vaadin/button": "25.0.0-alpha4",
|
|
40
|
+
"@vaadin/component-base": "25.0.0-alpha4",
|
|
41
|
+
"@vaadin/progress-bar": "25.0.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
47
|
+
"@vaadin/chai-plugins": "25.0.0-alpha4",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha4",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
50
|
"sinon": "^18.0.0"
|
|
51
51
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
|
|
57
57
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
|
|
8
|
+
export const uploadFileListStyles = css`
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([hidden]) {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part='list'] {
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
list-style-type: none;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
|
|
8
|
+
export const uploadStyles = css`
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
position: relative;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([hidden]) {
|
|
16
|
+
display: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[hidden] {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-upload-file.js';
|
|
7
|
-
import {
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
|
+
import { uploadFileListStyles } from './styles/vaadin-upload-file-list-styles.js';
|
|
11
12
|
import { UploadFileListMixin } from './vaadin-upload-file-list-mixin.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -25,21 +26,7 @@ class UploadFileList extends UploadFileListMixin(ThemableMixin(PolylitMixin(LitE
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
static get styles() {
|
|
28
|
-
return
|
|
29
|
-
:host {
|
|
30
|
-
display: block;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([hidden]) {
|
|
34
|
-
display: none !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part='list'] {
|
|
38
|
-
padding: 0;
|
|
39
|
-
margin: 0;
|
|
40
|
-
list-style-type: none;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
29
|
+
return uploadFileListStyles;
|
|
43
30
|
}
|
|
44
31
|
|
|
45
32
|
/** @protected */
|
|
@@ -9,8 +9,8 @@ import { html, LitElement, nothing } from 'lit';
|
|
|
9
9
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
10
10
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
+
import { uploadFileStyles } from './styles/vaadin-upload-file-styles.js';
|
|
12
13
|
import { UploadFileMixin } from './vaadin-upload-file-mixin.js';
|
|
13
|
-
import { uploadFileStyles } from './vaadin-upload-file-styles.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* `<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.
|
package/src/vaadin-upload.js
CHANGED
|
@@ -7,12 +7,13 @@ import '@vaadin/button/src/vaadin-button.js';
|
|
|
7
7
|
import './vaadin-upload-icon.js';
|
|
8
8
|
import './vaadin-upload-icons.js';
|
|
9
9
|
import './vaadin-upload-file-list.js';
|
|
10
|
-
import {
|
|
10
|
+
import { html, LitElement } from 'lit';
|
|
11
11
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
12
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
13
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
14
14
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
15
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
16
|
+
import { uploadStyles } from './styles/vaadin-upload-styles.js';
|
|
16
17
|
import { UploadMixin } from './vaadin-upload-mixin.js';
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -70,21 +71,7 @@ class Upload extends UploadMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
static get styles() {
|
|
73
|
-
return
|
|
74
|
-
:host {
|
|
75
|
-
display: block;
|
|
76
|
-
position: relative;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:host([hidden]) {
|
|
81
|
-
display: none !important;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[hidden] {
|
|
85
|
-
display: none !important;
|
|
86
|
-
}
|
|
87
|
-
`;
|
|
74
|
+
return uploadStyles;
|
|
88
75
|
}
|
|
89
76
|
|
|
90
77
|
/** @protected */
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
File without changes
|
|
File without changes
|