@vaadin/field-highlighter 25.0.0-alpha8 → 25.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 +21 -22
- package/src/fields/outline.js +1 -6
- package/src/styles/{vaadin-field-outline-core-styles.js → vaadin-field-outline-base-styles.js} +9 -4
- package/src/styles/vaadin-user-tag-base-styles.js +36 -0
- package/src/styles/{vaadin-user-tags-overlay-core-styles.js → vaadin-user-tags-overlay-base-styles.js} +9 -14
- package/src/vaadin-field-outline.js +1 -1
- package/src/vaadin-user-tag.js +1 -1
- package/src/vaadin-user-tags-overlay.js +1 -1
- package/src/vaadin-user-tags.js +16 -21
- package/vaadin-field-highlighter.js +1 -1
- package/src/styles/vaadin-user-tag-core-styles.js +0 -41
- package/theme/lumo/vaadin-field-highlighter.d.ts +0 -9
- package/theme/lumo/vaadin-field-highlighter.js +0 -9
- package/theme/lumo/vaadin-field-outline-styles.d.ts +0 -7
- package/theme/lumo/vaadin-field-outline-styles.js +0 -45
- package/theme/lumo/vaadin-user-tags-styles.d.ts +0 -9
- package/theme/lumo/vaadin-user-tags-styles.js +0 -74
- package/theme/lumo/vaadin-user-tags.d.ts +0 -7
- package/theme/lumo/vaadin-user-tags.js +0 -7
- /package/src/styles/{vaadin-field-outline-core-styles.d.ts → vaadin-field-outline-base-styles.d.ts} +0 -0
- /package/src/styles/{vaadin-user-tag-core-styles.d.ts → vaadin-user-tag-base-styles.d.ts} +0 -0
- /package/src/styles/{vaadin-user-tags-overlay-core-styles.d.ts → vaadin-user-tags-overlay-base-styles.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-highlighter",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"theme",
|
|
25
24
|
"vaadin-*.d.ts",
|
|
26
25
|
"vaadin-*.js"
|
|
27
26
|
],
|
|
@@ -33,29 +32,29 @@
|
|
|
33
32
|
"field"
|
|
34
33
|
],
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
37
|
-
"@vaadin/component-base": "25.0.0-
|
|
38
|
-
"@vaadin/overlay": "25.0.0-
|
|
39
|
-
"@vaadin/vaadin-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha8",
|
|
35
|
+
"@vaadin/a11y-base": "25.0.0-beta1",
|
|
36
|
+
"@vaadin/component-base": "25.0.0-beta1",
|
|
37
|
+
"@vaadin/overlay": "25.0.0-beta1",
|
|
38
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta1",
|
|
41
39
|
"lit": "^3.0.0"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
45
|
-
"@vaadin/checkbox": "25.0.0-
|
|
46
|
-
"@vaadin/checkbox-group": "25.0.0-
|
|
47
|
-
"@vaadin/date-picker": "25.0.0-
|
|
48
|
-
"@vaadin/date-time-picker": "25.0.0-
|
|
49
|
-
"@vaadin/item": "25.0.0-
|
|
50
|
-
"@vaadin/list-box": "25.0.0-
|
|
51
|
-
"@vaadin/radio-group": "25.0.0-
|
|
52
|
-
"@vaadin/select": "25.0.0-
|
|
53
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
42
|
+
"@vaadin/chai-plugins": "25.0.0-beta1",
|
|
43
|
+
"@vaadin/checkbox": "25.0.0-beta1",
|
|
44
|
+
"@vaadin/checkbox-group": "25.0.0-beta1",
|
|
45
|
+
"@vaadin/date-picker": "25.0.0-beta1",
|
|
46
|
+
"@vaadin/date-time-picker": "25.0.0-beta1",
|
|
47
|
+
"@vaadin/item": "25.0.0-beta1",
|
|
48
|
+
"@vaadin/list-box": "25.0.0-beta1",
|
|
49
|
+
"@vaadin/radio-group": "25.0.0-beta1",
|
|
50
|
+
"@vaadin/select": "25.0.0-beta1",
|
|
51
|
+
"@vaadin/test-runner-commands": "25.0.0-beta1",
|
|
54
52
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
55
|
-
"@vaadin/text-area": "25.0.0-
|
|
56
|
-
"@vaadin/text-field": "25.0.0-
|
|
57
|
-
"@vaadin/time-picker": "25.0.0-
|
|
58
|
-
"
|
|
53
|
+
"@vaadin/text-area": "25.0.0-beta1",
|
|
54
|
+
"@vaadin/text-field": "25.0.0-beta1",
|
|
55
|
+
"@vaadin/time-picker": "25.0.0-beta1",
|
|
56
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta1",
|
|
57
|
+
"sinon": "^21.0.0"
|
|
59
58
|
},
|
|
60
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1d20cf54e582d1f2e209126d4586f8b4c01c50e0"
|
|
61
60
|
}
|
package/src/fields/outline.js
CHANGED
|
@@ -48,12 +48,7 @@ export const initOutline = (field) => {
|
|
|
48
48
|
|
|
49
49
|
const style = document.createElement('style');
|
|
50
50
|
style.textContent = `
|
|
51
|
-
:host([focused]) [part="outline"] {
|
|
52
|
-
opacity: calc(1 - var(--lumo-input-field-pointer-focus-visible, 0));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host([active]) [part="outline"],
|
|
56
|
-
:host([focus-ring]) [part="outline"] {
|
|
51
|
+
:host(:is([active], [focused])) [part="outline"] {
|
|
57
52
|
display: none;
|
|
58
53
|
}
|
|
59
54
|
`;
|
package/src/styles/{vaadin-field-outline-core-styles.js → vaadin-field-outline-base-styles.js}
RENAMED
|
@@ -3,23 +3,28 @@
|
|
|
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 '@vaadin/component-base/src/styles/user-colors.js';
|
|
6
7
|
import { css } from 'lit';
|
|
7
8
|
|
|
8
9
|
export const fieldOutlineStyles = css`
|
|
9
10
|
:host {
|
|
10
11
|
display: block;
|
|
11
|
-
box-sizing: border-box;
|
|
12
12
|
position: absolute;
|
|
13
13
|
inset: 0;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
14
|
pointer-events: none;
|
|
17
|
-
user-select: none;
|
|
18
15
|
opacity: 0;
|
|
19
16
|
--_active-user-color: transparent;
|
|
17
|
+
outline: 3px solid var(--_active-user-color);
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
/* TODO doesn't inherit correctly from vaadin-input-container for some reason, so we use the internal _radius property */
|
|
20
|
+
border-radius: var(--_radius, inherit);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
:host([has-active-user]) {
|
|
23
24
|
opacity: 1;
|
|
24
25
|
}
|
|
26
|
+
|
|
27
|
+
:host([context$='item']) {
|
|
28
|
+
inset: 2px;
|
|
29
|
+
}
|
|
25
30
|
`;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 '@vaadin/component-base/src/styles/style-props.js';
|
|
7
|
+
import '@vaadin/component-base/src/styles/user-colors.js';
|
|
8
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
export const userTagStyles = css`
|
|
11
|
+
:host {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
padding: var(--vaadin-user-tag-padding, 0.3em);
|
|
16
|
+
background-color: var(--vaadin-user-tag-color);
|
|
17
|
+
color: oklch(from var(--vaadin-user-tag-color) clamp(0, (0.62 - l) * 1000, 1) 0 0);
|
|
18
|
+
font-size: var(--vaadin-user-tag-font-size, 0.75em);
|
|
19
|
+
font-weight: var(--vaadin-user-tag-font-weight, 500);
|
|
20
|
+
line-height: var(--vaadin-user-tag-line-height, 1);
|
|
21
|
+
border: var(--vaadin-user-tag-border-width, 0) solid
|
|
22
|
+
var(--vaadin-user-tag-border-color, var(--vaadin-border-color-secondary));
|
|
23
|
+
border-radius: var(--vaadin-user-tag-border-radius, var(--vaadin-radius-m));
|
|
24
|
+
cursor: default;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host(.show) {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part='name'] {
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
@@ -4,26 +4,21 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { css } from 'lit';
|
|
7
|
-
import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-
|
|
7
|
+
import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-base-styles.js';
|
|
8
8
|
|
|
9
9
|
const userTagsOverlay = css`
|
|
10
10
|
[part='overlay'] {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
overflow: visible;
|
|
11
|
+
all: initial;
|
|
12
|
+
display: block;
|
|
13
|
+
font: inherit;
|
|
14
|
+
color: inherit;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
[part='content'] {
|
|
19
18
|
display: flex;
|
|
20
|
-
flex-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
:host([dir='rtl']) [part='overlay'] {
|
|
25
|
-
left: auto;
|
|
26
|
-
right: -4px;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
gap: var(--vaadin-user-tag-overlay-gap, 0.2em);
|
|
21
|
+
padding: 0.5em 0;
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
:host([opening]),
|
|
@@ -9,7 +9,7 @@ import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { fieldOutlineStyles } from './styles/vaadin-field-outline-
|
|
12
|
+
import { fieldOutlineStyles } from './styles/vaadin-field-outline-base-styles.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An element used internally by `<vaadin-field-highlighter>`. Not intended to be used separately.
|
package/src/vaadin-user-tag.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { userTagStyles } from './styles/vaadin-user-tag-
|
|
12
|
+
import { userTagStyles } from './styles/vaadin-user-tag-base-styles.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An element used internally by `<vaadin-field-highlighter>`. Not intended to be used separately.
|
|
@@ -11,7 +11,7 @@ import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
|
|
|
11
11
|
import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin.js';
|
|
12
12
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
13
13
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
14
|
-
import { userTagsOverlayStyles } from './styles/vaadin-user-tags-overlay-
|
|
14
|
+
import { userTagsOverlayStyles } from './styles/vaadin-user-tags-overlay-base-styles.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* An element used internally by `<vaadin-field-highlighter>`. Not intended to be used separately.
|
package/src/vaadin-user-tags.js
CHANGED
|
@@ -46,11 +46,14 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
46
46
|
return html`
|
|
47
47
|
<vaadin-user-tags-overlay
|
|
48
48
|
id="overlay"
|
|
49
|
+
exportparts="overlay:user-tags-overlay, content:user-tags-content"
|
|
49
50
|
modeless
|
|
50
51
|
.opened="${this.opened}"
|
|
51
52
|
no-vertical-overlap
|
|
52
53
|
@vaadin-overlay-open="${this._onOverlayOpen}"
|
|
53
|
-
|
|
54
|
+
>
|
|
55
|
+
<slot></slot>
|
|
56
|
+
</vaadin-user-tags-overlay>
|
|
54
57
|
`;
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -137,7 +140,8 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
137
140
|
|
|
138
141
|
/** @protected */
|
|
139
142
|
get wrapper() {
|
|
140
|
-
|
|
143
|
+
// Used by Collaboration Kit util
|
|
144
|
+
return this;
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
/** @protected */
|
|
@@ -162,15 +166,8 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
162
166
|
ready() {
|
|
163
167
|
super.ready();
|
|
164
168
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const tags = document.createElement('div');
|
|
168
|
-
tags.setAttribute('part', 'tags');
|
|
169
|
-
root.appendChild(tags);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
this.$.overlay.requestContentUpdate();
|
|
169
|
+
// Export user tags overlay parts for styling
|
|
170
|
+
this.setAttribute('exportparts', 'user-tags-overlay, user-tags-content');
|
|
174
171
|
}
|
|
175
172
|
|
|
176
173
|
/** @private */
|
|
@@ -222,6 +219,7 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
222
219
|
|
|
223
220
|
createUserTag(user) {
|
|
224
221
|
const tag = document.createElement('vaadin-user-tag');
|
|
222
|
+
tag.setAttribute('part', 'user-tag');
|
|
225
223
|
tag.name = user.name;
|
|
226
224
|
tag.uid = user.id;
|
|
227
225
|
tag.colorIndex = user.colorIndex;
|
|
@@ -229,7 +227,7 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
229
227
|
}
|
|
230
228
|
|
|
231
229
|
getTagForUser(user) {
|
|
232
|
-
return Array.from(this.
|
|
230
|
+
return Array.from(this.children).find((tag) => tag.uid === user.id);
|
|
233
231
|
}
|
|
234
232
|
|
|
235
233
|
getChangedTags(addedUsers, removedUsers) {
|
|
@@ -239,21 +237,19 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
239
237
|
}
|
|
240
238
|
|
|
241
239
|
applyTagsStart({ added, removed }) {
|
|
242
|
-
const wrapper = this.wrapper;
|
|
243
240
|
removed.forEach((tag) => {
|
|
244
241
|
if (tag) {
|
|
245
242
|
tag.classList.add('removing');
|
|
246
243
|
tag.classList.remove('show');
|
|
247
244
|
}
|
|
248
245
|
});
|
|
249
|
-
added.forEach((tag) =>
|
|
246
|
+
added.forEach((tag) => this.insertBefore(tag, this.firstChild));
|
|
250
247
|
}
|
|
251
248
|
|
|
252
249
|
applyTagsEnd({ added, removed }) {
|
|
253
|
-
const wrapper = this.wrapper;
|
|
254
250
|
removed.forEach((tag) => {
|
|
255
|
-
if (tag && tag.parentNode ===
|
|
256
|
-
|
|
251
|
+
if (tag && tag.parentNode === this) {
|
|
252
|
+
this.removeChild(tag);
|
|
257
253
|
}
|
|
258
254
|
});
|
|
259
255
|
added.forEach((tag) => tag && tag.classList.add('show'));
|
|
@@ -329,7 +325,7 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
329
325
|
/** @private */
|
|
330
326
|
_onOverlayOpen() {
|
|
331
327
|
// Animate all tags except removing ones
|
|
332
|
-
Array.from(this.
|
|
328
|
+
Array.from(this.children).forEach((tag) => {
|
|
333
329
|
if (!tag.classList.contains('removing')) {
|
|
334
330
|
tag.classList.add('show');
|
|
335
331
|
}
|
|
@@ -338,17 +334,16 @@ export class UserTags extends PolylitMixin(LitElement) {
|
|
|
338
334
|
|
|
339
335
|
flashTags(added) {
|
|
340
336
|
this.flashing = true;
|
|
341
|
-
const wrapper = this.wrapper;
|
|
342
337
|
|
|
343
338
|
// Hide existing tags
|
|
344
|
-
const hidden = Array.from(
|
|
339
|
+
const hidden = Array.from(this.children);
|
|
345
340
|
hidden.forEach((tag) => {
|
|
346
341
|
tag.style.display = 'none';
|
|
347
342
|
});
|
|
348
343
|
|
|
349
344
|
// Render new tags
|
|
350
345
|
added.forEach((tag) => {
|
|
351
|
-
|
|
346
|
+
this.insertBefore(tag, this.firstChild);
|
|
352
347
|
});
|
|
353
348
|
|
|
354
349
|
this.flashPromise = new Promise((resolve) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-field-highlighter.js';
|
|
2
2
|
export * from './src/vaadin-field-highlighter.js';
|
|
@@ -1,41 +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 userTagStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
margin: 0 0 var(--vaadin-user-tag-offset);
|
|
13
|
-
opacity: 0;
|
|
14
|
-
height: 1.3rem;
|
|
15
|
-
transition: opacity 0.2s ease-in-out;
|
|
16
|
-
background-color: var(--vaadin-user-tag-color);
|
|
17
|
-
color: #fff;
|
|
18
|
-
cursor: default;
|
|
19
|
-
-webkit-user-select: none;
|
|
20
|
-
user-select: none;
|
|
21
|
-
--vaadin-user-tag-offset: 4px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host(.show) {
|
|
25
|
-
opacity: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host(:last-of-type) {
|
|
29
|
-
margin-bottom: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
[part='name'] {
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
text-overflow: ellipsis;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
padding: 2px 4px;
|
|
38
|
-
height: 1.3rem;
|
|
39
|
-
font-size: 13px;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
@@ -1,9 +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 '@vaadin/vaadin-lumo-styles/user-colors.js';
|
|
7
|
-
import './vaadin-field-outline-styles.js';
|
|
8
|
-
import './vaadin-user-tags.js';
|
|
9
|
-
import '../../src/vaadin-field-highlighter.js';
|
|
@@ -1,9 +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 '@vaadin/vaadin-lumo-styles/user-colors.js';
|
|
7
|
-
import './vaadin-field-outline-styles.js';
|
|
8
|
-
import './vaadin-user-tags.js';
|
|
9
|
-
import '../../src/vaadin-field-highlighter.js';
|
|
@@ -1,45 +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 '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
7
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
8
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
|
-
|
|
10
|
-
registerStyles(
|
|
11
|
-
'vaadin-field-outline',
|
|
12
|
-
css`
|
|
13
|
-
:host {
|
|
14
|
-
transition: opacity 0.3s;
|
|
15
|
-
mask-image: none !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host::before {
|
|
19
|
-
content: '';
|
|
20
|
-
position: absolute;
|
|
21
|
-
inset: 0;
|
|
22
|
-
box-shadow: 0 0 0 2px var(--_active-user-color);
|
|
23
|
-
border-radius: var(--lumo-border-radius-s);
|
|
24
|
-
transition: box-shadow 0.3s;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host([context$='checkbox'])::before {
|
|
28
|
-
box-shadow:
|
|
29
|
-
0 0 0 2px var(--lumo-base-color),
|
|
30
|
-
0 0 0 4px var(--_active-user-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([context$='radio-button'])::before {
|
|
34
|
-
border-radius: 50%;
|
|
35
|
-
box-shadow:
|
|
36
|
-
0 0 0 3px var(--lumo-base-color),
|
|
37
|
-
0 0 0 5px var(--_active-user-color);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([context$='item'])::before {
|
|
41
|
-
box-shadow: inset 0 0 0 2px var(--_active-user-color);
|
|
42
|
-
}
|
|
43
|
-
`,
|
|
44
|
-
{ moduleId: 'lumo-field-outline' },
|
|
45
|
-
);
|
|
@@ -1,9 +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 '@vaadin/vaadin-lumo-styles/color.js';
|
|
7
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
8
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
9
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
@@ -1,74 +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 '@vaadin/vaadin-lumo-styles/color.js';
|
|
7
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
8
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
9
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
10
|
-
import { overlay } from '@vaadin/vaadin-lumo-styles/mixins/overlay.js';
|
|
11
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
|
|
13
|
-
registerStyles(
|
|
14
|
-
'vaadin-user-tags-overlay',
|
|
15
|
-
[
|
|
16
|
-
overlay,
|
|
17
|
-
css`
|
|
18
|
-
[part='overlay'] {
|
|
19
|
-
box-shadow: none;
|
|
20
|
-
background: transparent;
|
|
21
|
-
will-change: opacity, transform;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part='content'] {
|
|
25
|
-
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host([opening]) [part='overlay'] {
|
|
29
|
-
animation: 0.1s lumo-user-tags-enter ease-out both;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@keyframes lumo-user-tags-enter {
|
|
33
|
-
0% {
|
|
34
|
-
opacity: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([closing]) [part='overlay'] {
|
|
39
|
-
animation: 0.1s lumo-user-tags-exit both;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@keyframes lumo-user-tags-exit {
|
|
43
|
-
100% {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`,
|
|
48
|
-
],
|
|
49
|
-
{
|
|
50
|
-
moduleId: 'lumo-user-tags-overlay',
|
|
51
|
-
},
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
registerStyles(
|
|
55
|
-
'vaadin-user-tag',
|
|
56
|
-
css`
|
|
57
|
-
:host {
|
|
58
|
-
font-family: var(--lumo-font-family);
|
|
59
|
-
font-size: var(--lumo-font-size-xxs);
|
|
60
|
-
border-radius: var(--lumo-border-radius-s);
|
|
61
|
-
box-shadow: var(--lumo-box-shadow-xs);
|
|
62
|
-
--vaadin-user-tag-offset: var(--lumo-space-xs);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[part='name'] {
|
|
66
|
-
color: var(--lumo-primary-contrast-color);
|
|
67
|
-
padding: 0.3em calc(0.3em + var(--lumo-border-radius-s) / 4);
|
|
68
|
-
line-height: 1;
|
|
69
|
-
font-weight: 500;
|
|
70
|
-
min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
|
|
71
|
-
}
|
|
72
|
-
`,
|
|
73
|
-
{ moduleId: 'lumo-user-tag' },
|
|
74
|
-
);
|
/package/src/styles/{vaadin-field-outline-core-styles.d.ts → vaadin-field-outline-base-styles.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|