@vaadin/custom-field 25.0.1 → 25.0.2

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": "25.0.1",
3
+ "version": "25.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,32 +34,32 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "~25.0.1",
38
- "@vaadin/component-base": "~25.0.1",
39
- "@vaadin/field-base": "~25.0.1",
40
- "@vaadin/vaadin-themable-mixin": "~25.0.1",
37
+ "@vaadin/a11y-base": "~25.0.2",
38
+ "@vaadin/component-base": "~25.0.2",
39
+ "@vaadin/field-base": "~25.0.2",
40
+ "@vaadin/vaadin-themable-mixin": "~25.0.2",
41
41
  "lit": "^3.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@vaadin/chai-plugins": "~25.0.1",
45
- "@vaadin/combo-box": "~25.0.1",
46
- "@vaadin/date-picker": "~25.0.1",
47
- "@vaadin/email-field": "~25.0.1",
48
- "@vaadin/form-layout": "~25.0.1",
49
- "@vaadin/number-field": "~25.0.1",
50
- "@vaadin/password-field": "~25.0.1",
51
- "@vaadin/select": "~25.0.1",
52
- "@vaadin/test-runner-commands": "~25.0.1",
44
+ "@vaadin/chai-plugins": "~25.0.2",
45
+ "@vaadin/combo-box": "~25.0.2",
46
+ "@vaadin/date-picker": "~25.0.2",
47
+ "@vaadin/email-field": "~25.0.2",
48
+ "@vaadin/form-layout": "~25.0.2",
49
+ "@vaadin/number-field": "~25.0.2",
50
+ "@vaadin/password-field": "~25.0.2",
51
+ "@vaadin/select": "~25.0.2",
52
+ "@vaadin/test-runner-commands": "~25.0.2",
53
53
  "@vaadin/testing-helpers": "^2.0.0",
54
- "@vaadin/text-area": "~25.0.1",
55
- "@vaadin/text-field": "~25.0.1",
56
- "@vaadin/time-picker": "~25.0.1",
57
- "@vaadin/vaadin-lumo-styles": "~25.0.1",
54
+ "@vaadin/text-area": "~25.0.2",
55
+ "@vaadin/text-field": "~25.0.2",
56
+ "@vaadin/time-picker": "~25.0.2",
57
+ "@vaadin/vaadin-lumo-styles": "~25.0.2",
58
58
  "sinon": "^21.0.0"
59
59
  },
60
60
  "web-types": [
61
61
  "web-types.json",
62
62
  "web-types.lit.json"
63
63
  ],
64
- "gitHead": "ced28c07a8abee586510349b312452c8a555fd10"
64
+ "gitHead": "d17c1f8b7c6f3f991cafd9dbdbe5759caa57afcd"
65
65
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2019 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2019 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2019 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
@@ -80,6 +80,25 @@ export interface CustomFieldEventMap extends HTMLElementEventMap, CustomFieldCus
80
80
  * You may also manually set `disabled` or `readonly` attribute on this component to make the label
81
81
  * part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
82
82
  *
83
+ * The following custom CSS properties are available for styling:
84
+ *
85
+ * Custom CSS property |
86
+ * :--------------------------------------------------|
87
+ * | `--vaadin-input-field-error-color` |
88
+ * | `--vaadin-input-field-error-font-size` |
89
+ * | `--vaadin-input-field-error-font-weight` |
90
+ * | `--vaadin-input-field-error-line-height` |
91
+ * | `--vaadin-input-field-label-color` |
92
+ * | `--vaadin-input-field-label-font-size` |
93
+ * | `--vaadin-input-field-label-font-weight` |
94
+ * | `--vaadin-input-field-label-line-height` |
95
+ * | `--vaadin-input-field-helper-color` |
96
+ * | `--vaadin-input-field-helper-font-size` |
97
+ * | `--vaadin-input-field-helper-font-weight` |
98
+ * | `--vaadin-input-field-helper-line-height` |
99
+ * | `--vaadin-input-field-required-indicator-color` |
100
+ * | `--vaadin-input-field-required-indicator` |
101
+ *
83
102
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
84
103
  *
85
104
  * @fires {Event} change - Fired when the user commits a value change for any of the internal inputs.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2019 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2019 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, LitElement } from 'lit';
@@ -49,6 +49,25 @@ import { CustomFieldMixin } from './vaadin-custom-field-mixin.js';
49
49
  * You may also manually set `disabled` or `readonly` attribute on this component to make the label
50
50
  * part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
51
51
  *
52
+ * The following custom CSS properties are available for styling:
53
+ *
54
+ * Custom CSS property |
55
+ * :--------------------------------------------------|
56
+ * | `--vaadin-input-field-error-color` |
57
+ * | `--vaadin-input-field-error-font-size` |
58
+ * | `--vaadin-input-field-error-font-weight` |
59
+ * | `--vaadin-input-field-error-line-height` |
60
+ * | `--vaadin-input-field-label-color` |
61
+ * | `--vaadin-input-field-label-font-size` |
62
+ * | `--vaadin-input-field-label-font-weight` |
63
+ * | `--vaadin-input-field-label-line-height` |
64
+ * | `--vaadin-input-field-helper-color` |
65
+ * | `--vaadin-input-field-helper-font-size` |
66
+ * | `--vaadin-input-field-helper-font-weight` |
67
+ * | `--vaadin-input-field-helper-line-height` |
68
+ * | `--vaadin-input-field-required-indicator-color` |
69
+ * | `--vaadin-input-field-required-indicator` |
70
+ *
52
71
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
53
72
  *
54
73
  * @fires {Event} change - Fired when the user commits a value change for any of the internal inputs.
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/custom-field",
4
- "version": "25.0.1",
4
+ "version": "25.0.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-custom-field",
11
- "description": "`<vaadin-custom-field>` is a web component for wrapping multiple components as a single field.\n\n```html\n<vaadin-custom-field label=\"Appointment time\">\n <vaadin-date-picker></vaadin-date-picker>\n <vaadin-time-picker></vaadin-time-picker>\n</vaadin-custom-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n`input-fields` | The slotted input elements wrapper\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|--------------------------------\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`has-label` | Set when the element has a label\n`has-value` | Set when the element has a value\n`has-helper` | Set when the element has helper text\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n\nYou may also manually set `disabled` or `readonly` attribute on this component to make the label\npart look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-custom-field>` is a web component for wrapping multiple components as a single field.\n\n```html\n<vaadin-custom-field label=\"Appointment time\">\n <vaadin-date-picker></vaadin-date-picker>\n <vaadin-time-picker></vaadin-time-picker>\n</vaadin-custom-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n`input-fields` | The slotted input elements wrapper\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|--------------------------------\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`has-label` | Set when the element has a label\n`has-value` | Set when the element has a value\n`has-helper` | Set when the element has helper text\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n\nYou may also manually set `disabled` or `readonly` attribute on this component to make the label\npart look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-required-indicator` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "label",
@@ -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/25.0.1/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.1/#/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/25.0.2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.2/#/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/25.0.1/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.1/#/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/25.0.2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.2/#/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": "25.0.1",
4
+ "version": "25.0.2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-custom-field",
19
- "description": "`<vaadin-custom-field>` is a web component for wrapping multiple components as a single field.\n\n```html\n<vaadin-custom-field label=\"Appointment time\">\n <vaadin-date-picker></vaadin-date-picker>\n <vaadin-time-picker></vaadin-time-picker>\n</vaadin-custom-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n`input-fields` | The slotted input elements wrapper\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|--------------------------------\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`has-label` | Set when the element has a label\n`has-value` | Set when the element has a value\n`has-helper` | Set when the element has helper text\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n\nYou may also manually set `disabled` or `readonly` attribute on this component to make the label\npart look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-custom-field>` is a web component for wrapping multiple components as a single field.\n\n```html\n<vaadin-custom-field label=\"Appointment time\">\n <vaadin-date-picker></vaadin-date-picker>\n <vaadin-time-picker></vaadin-time-picker>\n</vaadin-custom-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n`input-fields` | The slotted input elements wrapper\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|--------------------------------\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`has-label` | Set when the element has a label\n`has-value` | Set when the element has a value\n`has-helper` | Set when the element has helper text\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n\nYou may also manually set `disabled` or `readonly` attribute on this component to make the label\npart look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:--------------------------------------------------|\n| `--vaadin-input-field-error-color` |\n| `--vaadin-input-field-error-font-size` |\n| `--vaadin-input-field-error-font-weight` |\n| `--vaadin-input-field-error-line-height` |\n| `--vaadin-input-field-label-color` |\n| `--vaadin-input-field-label-font-size` |\n| `--vaadin-input-field-label-font-weight` |\n| `--vaadin-input-field-label-line-height` |\n| `--vaadin-input-field-helper-color` |\n| `--vaadin-input-field-helper-font-size` |\n| `--vaadin-input-field-helper-font-weight` |\n| `--vaadin-input-field-helper-line-height` |\n| `--vaadin-input-field-required-indicator-color` |\n| `--vaadin-input-field-required-indicator` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -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/25.0.1/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.1/#/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/25.0.2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.0.2/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
88
88
  "value": {
89
89
  "kind": "expression"
90
90
  }