@vaadin/text-field 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/text-field",
3
- "version": "24.8.5",
3
+ "version": "24.9.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,18 +36,18 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "~24.8.5",
40
- "@vaadin/component-base": "~24.8.5",
41
- "@vaadin/field-base": "~24.8.5",
42
- "@vaadin/input-container": "~24.8.5",
43
- "@vaadin/vaadin-lumo-styles": "~24.8.5",
44
- "@vaadin/vaadin-material-styles": "~24.8.5",
45
- "@vaadin/vaadin-themable-mixin": "~24.8.5",
39
+ "@vaadin/a11y-base": "24.9.0-alpha2",
40
+ "@vaadin/component-base": "24.9.0-alpha2",
41
+ "@vaadin/field-base": "24.9.0-alpha2",
42
+ "@vaadin/input-container": "24.9.0-alpha2",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-alpha2",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha2",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "~24.8.5",
50
- "@vaadin/test-runner-commands": "~24.8.5",
49
+ "@vaadin/chai-plugins": "24.9.0-alpha2",
50
+ "@vaadin/test-runner-commands": "24.9.0-alpha2",
51
51
  "@vaadin/testing-helpers": "^1.1.0",
52
52
  "sinon": "^18.0.0"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "a519b0d2b1d09d1ddaa4ff6829819f8a2be30ad8"
58
+ "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
59
59
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/text-field",
4
- "version": "24.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/text-field",
4
- "version": "24.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,88 +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/input-container/src/vaadin-lit-input-container.js';
7
- import { html, LitElement } from 'lit';
8
- import { ifDefined } from 'lit/directives/if-defined.js';
9
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
- import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
13
- import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
14
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
- import { TextFieldMixin } from './vaadin-text-field-mixin.js';
16
-
17
- /**
18
- * LitElement based version of `<vaadin-text-field>` 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
- * Feel free to try this code in your apps as per Apache 2.0 license.
25
- */
26
- export class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
27
- static get is() {
28
- return 'vaadin-text-field';
29
- }
30
-
31
- static get styles() {
32
- return [inputFieldShared];
33
- }
34
-
35
- /** @protected */
36
- render() {
37
- return html`
38
- <div class="vaadin-field-container">
39
- <div part="label">
40
- <slot name="label"></slot>
41
- <span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span>
42
- </div>
43
-
44
- <vaadin-input-container
45
- part="input-field"
46
- .readonly="${this.readonly}"
47
- .disabled="${this.disabled}"
48
- .invalid="${this.invalid}"
49
- theme="${ifDefined(this._theme)}"
50
- >
51
- <slot name="prefix" slot="prefix"></slot>
52
- <slot name="input"></slot>
53
- ${this._renderSuffix()}
54
- </vaadin-input-container>
55
-
56
- <div part="helper-text">
57
- <slot name="helper"></slot>
58
- </div>
59
-
60
- <div part="error-message">
61
- <slot name="error-message"></slot>
62
- </div>
63
- </div>
64
-
65
- <slot name="tooltip"></slot>
66
- `;
67
- }
68
-
69
- /** @protected */
70
- ready() {
71
- super.ready();
72
-
73
- this._tooltipController = new TooltipController(this);
74
- this._tooltipController.setPosition('top');
75
- this._tooltipController.setAriaTarget(this.inputElement);
76
- this.addController(this._tooltipController);
77
- }
78
-
79
- /** @protected */
80
- _renderSuffix() {
81
- return html`
82
- <slot name="suffix" slot="suffix"></slot>
83
- <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
84
- `;
85
- }
86
- }
87
-
88
- defineCustomElement(TextField);
@@ -1,7 +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 './vaadin-text-field-styles.js';
7
- import '../../src/vaadin-lit-text-field.js';
@@ -1,7 +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 './vaadin-text-field-styles.js';
7
- import '../../src/vaadin-lit-text-field.js';
@@ -1,7 +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 './vaadin-text-field-styles.js';
7
- import '../../src/vaadin-lit-text-field.js';
@@ -1,7 +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 './vaadin-text-field-styles.js';
7
- import '../../src/vaadin-lit-text-field.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-text-field.js';
@@ -1,3 +0,0 @@
1
- import './theme/lumo/vaadin-lit-text-field.js';
2
-
3
- export * from './src/vaadin-lit-text-field.js';