@vaadin/custom-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/custom-field",
3
- "version": "24.8.5",
3
+ "version": "24.9.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,33 +36,33 @@
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/vaadin-lumo-styles": "~24.8.5",
43
- "@vaadin/vaadin-material-styles": "~24.8.5",
44
- "@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/vaadin-lumo-styles": "24.9.0-alpha2",
43
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha2",
44
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/chai-plugins": "~24.8.5",
49
- "@vaadin/combo-box": "~24.8.5",
50
- "@vaadin/date-picker": "~24.8.5",
51
- "@vaadin/email-field": "~24.8.5",
52
- "@vaadin/form-layout": "~24.8.5",
53
- "@vaadin/number-field": "~24.8.5",
54
- "@vaadin/password-field": "~24.8.5",
55
- "@vaadin/select": "~24.8.5",
56
- "@vaadin/test-runner-commands": "~24.8.5",
48
+ "@vaadin/chai-plugins": "24.9.0-alpha2",
49
+ "@vaadin/combo-box": "24.9.0-alpha2",
50
+ "@vaadin/date-picker": "24.9.0-alpha2",
51
+ "@vaadin/email-field": "24.9.0-alpha2",
52
+ "@vaadin/form-layout": "24.9.0-alpha2",
53
+ "@vaadin/number-field": "24.9.0-alpha2",
54
+ "@vaadin/password-field": "24.9.0-alpha2",
55
+ "@vaadin/select": "24.9.0-alpha2",
56
+ "@vaadin/test-runner-commands": "24.9.0-alpha2",
57
57
  "@vaadin/testing-helpers": "^1.1.0",
58
- "@vaadin/text-area": "~24.8.5",
59
- "@vaadin/text-field": "~24.8.5",
60
- "@vaadin/time-picker": "~24.8.5",
58
+ "@vaadin/text-area": "24.9.0-alpha2",
59
+ "@vaadin/text-field": "24.9.0-alpha2",
60
+ "@vaadin/time-picker": "24.9.0-alpha2",
61
61
  "sinon": "^18.0.0"
62
62
  },
63
63
  "web-types": [
64
64
  "web-types.json",
65
65
  "web-types.lit.json"
66
66
  ],
67
- "gitHead": "a519b0d2b1d09d1ddaa4ff6829819f8a2be30ad8"
67
+ "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
68
68
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/custom-field",
4
- "version": "24.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -111,7 +111,7 @@
111
111
  },
112
112
  {
113
113
  "name": "value",
114
- "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
114
+ "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
115
115
  "value": {
116
116
  "type": [
117
117
  "string",
@@ -235,7 +235,7 @@
235
235
  },
236
236
  {
237
237
  "name": "value",
238
- "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
238
+ "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
239
239
  "value": {
240
240
  "type": [
241
241
  "string",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/custom-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": {
@@ -84,7 +84,7 @@
84
84
  },
85
85
  {
86
86
  "name": ".value",
87
- "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.8.5/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
87
+ "description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-alpha2/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
88
88
  "value": {
89
89
  "kind": "expression"
90
90
  }
@@ -1,67 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { html, LitElement } from 'lit';
7
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
- import { CustomFieldMixin } from './vaadin-custom-field-mixin.js';
12
- import { customFieldStyles } from './vaadin-custom-field-styles.js';
13
-
14
- /**
15
- * LitElement based version of `<vaadin-custom-field>` web component.
16
- *
17
- * ## Disclaimer
18
- *
19
- * This component is an experiment and not yet a part of Vaadin platform.
20
- * There is no ETA regarding specific Vaadin version where it'll land.
21
- * Feel free to try this code in your apps as per Apache 2.0 license.
22
- */
23
- class CustomField extends CustomFieldMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
24
- static get is() {
25
- return 'vaadin-custom-field';
26
- }
27
-
28
- static get styles() {
29
- return customFieldStyles;
30
- }
31
-
32
- /** @protected */
33
- render() {
34
- return html`
35
- <div class="vaadin-custom-field-container">
36
- <div part="label" @click="${this.focus}">
37
- <slot name="label"></slot>
38
- <span part="required-indicator" aria-hidden="true"></span>
39
- </div>
40
-
41
- <div class="inputs-wrapper" part="input-fields" @change="${this._onInputChange}">
42
- <slot id="slot"></slot>
43
- </div>
44
-
45
- <div part="helper-text">
46
- <slot name="helper"></slot>
47
- </div>
48
-
49
- <div part="error-message">
50
- <slot name="error-message"></slot>
51
- </div>
52
- </div>
53
-
54
- <slot name="tooltip"></slot>
55
- `;
56
- }
57
-
58
- /**
59
- * Fired when the user commits a value change for any of the internal inputs.
60
- *
61
- * @event change
62
- */
63
- }
64
-
65
- defineCustomElement(CustomField);
66
-
67
- export { CustomField };
@@ -1,2 +0,0 @@
1
- import './vaadin-custom-field-styles.js';
2
- import '../../src/vaadin-lit-custom-field.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-custom-field-styles.js';
2
- import '../../src/vaadin-lit-custom-field.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-custom-field-styles.js';
2
- import '../../src/vaadin-lit-custom-field.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-custom-field-styles.js';
2
- import '../../src/vaadin-lit-custom-field.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-custom-field.js';
@@ -1,3 +0,0 @@
1
- import './theme/lumo/vaadin-lit-custom-field.js';
2
-
3
- export * from './src/vaadin-lit-custom-field.js';