@vaadin/field-base 25.0.0-alpha10 → 25.0.0-alpha11
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 +6 -6
- package/src/styles/input-field-shared-styles.js +3 -3
- package/src/styles/button-core-styles.d.ts +0 -8
- package/src/styles/button-core-styles.js +0 -21
- package/src/styles/checkable-core-styles.d.ts +0 -8
- package/src/styles/checkable-core-styles.js +0 -64
- package/src/styles/container-core-styles.d.ts +0 -8
- package/src/styles/container-core-styles.js +0 -16
- package/src/styles/field-core-styles.d.ts +0 -8
- package/src/styles/field-core-styles.js +0 -44
- package/src/styles/group-core-styles.d.ts +0 -8
- package/src/styles/group-core-styles.js +0 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-base",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
36
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
37
|
-
"@vaadin/component-base": "25.0.0-
|
|
36
|
+
"@vaadin/a11y-base": "25.0.0-alpha11",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-alpha11",
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
41
|
+
"@vaadin/chai-plugins": "25.0.0-alpha11",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha11",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^18.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "abfd315ba5a7484a613e0768635a4e8fe945a44b"
|
|
47
47
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright (c) 2021 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { button } from './button-
|
|
7
|
-
import { container } from './container-
|
|
8
|
-
import { field } from './field-
|
|
6
|
+
import { button } from './button-base-styles.js';
|
|
7
|
+
import { container } from './container-base-styles.js';
|
|
8
|
+
import { field } from './field-base-styles.js';
|
|
9
9
|
|
|
10
10
|
export const inputFieldShared = [field, container, button];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 - 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 button = css`
|
|
9
|
-
[part='clear-button'] {
|
|
10
|
-
display: none;
|
|
11
|
-
cursor: default;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part='clear-button']::before {
|
|
15
|
-
content: '\\2715';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
19
|
-
display: block;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import type { CSSResult } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const checkable: (part: string, propName?: string) => CSSResult;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import { css, unsafeCSS } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const checkable = (part, propName = part) => css`
|
|
9
|
-
:host {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([hidden]) {
|
|
14
|
-
display: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host([disabled]) {
|
|
18
|
-
-webkit-tap-highlight-color: transparent;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.vaadin-${unsafeCSS(propName)}-container {
|
|
22
|
-
display: grid;
|
|
23
|
-
grid-template-columns: auto 1fr;
|
|
24
|
-
align-items: baseline;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part='${unsafeCSS(part)}'],
|
|
28
|
-
::slotted(input),
|
|
29
|
-
[part='label'],
|
|
30
|
-
::slotted(label) {
|
|
31
|
-
grid-row: 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part='${unsafeCSS(part)}'],
|
|
35
|
-
::slotted(input) {
|
|
36
|
-
grid-column: 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* Control container (checkbox, radio button) */
|
|
40
|
-
[part='${unsafeCSS(part)}'] {
|
|
41
|
-
width: var(--vaadin-${unsafeCSS(propName)}-size, 1em);
|
|
42
|
-
height: var(--vaadin-${unsafeCSS(propName)}-size, 1em);
|
|
43
|
-
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
44
|
-
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
45
|
-
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part='${unsafeCSS(part)}']::before {
|
|
49
|
-
display: block;
|
|
50
|
-
content: '\\202F';
|
|
51
|
-
line-height: var(--vaadin-${unsafeCSS(propName)}-size, 1em);
|
|
52
|
-
contain: paint;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* visually hidden */
|
|
56
|
-
::slotted(input) {
|
|
57
|
-
cursor: inherit;
|
|
58
|
-
margin: 0;
|
|
59
|
-
align-self: stretch;
|
|
60
|
-
appearance: none;
|
|
61
|
-
width: initial;
|
|
62
|
-
height: initial;
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 - 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 container = css`
|
|
9
|
-
[class$='container'] {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
min-width: 100%;
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
width: var(--vaadin-field-default-width, 12em);
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2021 - 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 field = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: inline-flex;
|
|
11
|
-
outline: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host::before {
|
|
15
|
-
content: '\\2003';
|
|
16
|
-
width: 0;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
/* Size and position this element on the same vertical position as the input-field element
|
|
19
|
-
to make vertical align for the host element work as expected */
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([hidden]) {
|
|
23
|
-
display: none !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host(:not([has-label])) [part='label'] {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@media (forced-colors: active) {
|
|
31
|
-
:host(:not([readonly])) [part='input-field'] {
|
|
32
|
-
outline: 1px solid;
|
|
33
|
-
outline-offset: -1px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([focused]) [part='input-field'] {
|
|
37
|
-
outline-width: 2px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([disabled]) [part='input-field'] {
|
|
41
|
-
outline-color: GrayText;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 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 group = () => css`
|
|
9
|
-
:host {
|
|
10
|
-
display: inline-flex;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host::before {
|
|
14
|
-
content: '\\2003';
|
|
15
|
-
width: 0;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host([hidden]) {
|
|
20
|
-
display: none !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.vaadin-group-field-container {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part='group-field'] {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host(:not([has-label])) [part='label'] {
|
|
35
|
-
display: none;
|
|
36
|
-
}
|
|
37
|
-
`;
|