@vaadin/field-base 25.2.4 → 25.2.6

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.
@@ -150,7 +150,7 @@
150
150
  "type": {
151
151
  "text": "boolean"
152
152
  },
153
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
153
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
154
154
  "attribute": "clear-button-visible"
155
155
  },
156
156
  {
@@ -174,7 +174,7 @@
174
174
  "type": {
175
175
  "text": "boolean"
176
176
  },
177
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
177
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
178
178
  "fieldName": "clearButtonVisible"
179
179
  },
180
180
  {
@@ -782,7 +782,7 @@
782
782
  "type": {
783
783
  "text": "boolean"
784
784
  },
785
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
785
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
786
786
  "attribute": "clear-button-visible",
787
787
  "inheritedFrom": {
788
788
  "name": "ClearButtonMixin",
@@ -1014,7 +1014,7 @@
1014
1014
  "type": {
1015
1015
  "text": "boolean"
1016
1016
  },
1017
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
1017
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1018
1018
  "fieldName": "clearButtonVisible",
1019
1019
  "inheritedFrom": {
1020
1020
  "name": "ClearButtonMixin",
@@ -1355,7 +1355,7 @@
1355
1355
  "type": {
1356
1356
  "text": "boolean"
1357
1357
  },
1358
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
1358
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1359
1359
  "attribute": "clear-button-visible",
1360
1360
  "inheritedFrom": {
1361
1361
  "name": "ClearButtonMixin",
@@ -1635,7 +1635,7 @@
1635
1635
  "type": {
1636
1636
  "text": "boolean"
1637
1637
  },
1638
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
1638
+ "description": "Set to true to display the clear icon which clears the input.\nThis also enables clearing the input when pressing Esc key.",
1639
1639
  "fieldName": "clearButtonVisible",
1640
1640
  "inheritedFrom": {
1641
1641
  "name": "ClearButtonMixin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/field-base",
3
- "version": "25.2.4",
3
+ "version": "25.2.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,17 +32,17 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@open-wc/dedupe-mixin": "^1.3.0",
35
- "@vaadin/a11y-base": "~25.2.4",
36
- "@vaadin/component-base": "~25.2.4",
35
+ "@vaadin/a11y-base": "~25.2.6",
36
+ "@vaadin/component-base": "~25.2.6",
37
37
  "lit": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@vaadin/chai-plugins": "~25.2.4",
41
- "@vaadin/input-container": "~25.2.4",
42
- "@vaadin/test-runner-commands": "~25.2.4",
40
+ "@vaadin/chai-plugins": "~25.2.6",
41
+ "@vaadin/input-container": "~25.2.6",
42
+ "@vaadin/test-runner-commands": "~25.2.6",
43
43
  "@vaadin/testing-helpers": "^2.0.0",
44
44
  "sinon": "^22.0.0"
45
45
  },
46
46
  "customElements": "custom-elements.json",
47
- "gitHead": "8671e6394dd539f76cd5e3ec885c7abf133ce3e7"
47
+ "gitHead": "c352225ff025e6163c5e290d6028a42003696441"
48
48
  }
@@ -17,10 +17,7 @@ export declare function ClearButtonMixin<T extends Constructor<HTMLElement>>(
17
17
  export declare class ClearButtonMixinClass {
18
18
  /**
19
19
  * Set to true to display the clear icon which clears the input.
20
- *
21
- * It is up to the component to choose where to place the clear icon:
22
- * in the Shadow DOM or in the light DOM. In any way, a reference to
23
- * the clear icon element should be provided via the `clearElement` getter.
20
+ * This also enables clearing the input when pressing Esc key.
24
21
  *
25
22
  * @attr {boolean} clear-button-visible
26
23
  */
@@ -17,10 +17,7 @@ export const ClearButtonMixin = (superclass) =>
17
17
  return {
18
18
  /**
19
19
  * Set to true to display the clear icon which clears the input.
20
- *
21
- * It is up to the component to choose where to place the clear icon:
22
- * in the Shadow DOM or in the light DOM. In any way, a reference to
23
- * the clear icon element should be provided via the `clearElement` getter.
20
+ * This also enables clearing the input when pressing Esc key.
24
21
  *
25
22
  * @attr {boolean} clear-button-visible
26
23
  */
@@ -41,7 +41,6 @@ export const checkable = (part, propName = part) => css`
41
41
  color: var(--vaadin-${unsafeCSS(propName)}-label-color, var(--vaadin-input-field-label-color, var(--vaadin-text-color)));
42
42
  word-break: break-word;
43
43
  cursor: var(--_cursor);
44
- /* TODO clicking the label part doesn't toggle the checked state, even though it triggers the active state */
45
44
  }
46
45
 
47
46
  [part='${unsafeCSS(part)}'],