@vaadin/custom-field 24.9.0-alpha2 → 24.9.0-beta2

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.9.0-alpha2",
3
+ "version": "24.9.0-beta2",
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.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",
39
+ "@vaadin/a11y-base": "24.9.0-beta2",
40
+ "@vaadin/component-base": "24.9.0-beta2",
41
+ "@vaadin/field-base": "24.9.0-beta2",
42
+ "@vaadin/vaadin-lumo-styles": "24.9.0-beta2",
43
+ "@vaadin/vaadin-material-styles": "24.9.0-beta2",
44
+ "@vaadin/vaadin-themable-mixin": "24.9.0-beta2",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
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",
48
+ "@vaadin/chai-plugins": "24.9.0-beta2",
49
+ "@vaadin/combo-box": "24.9.0-beta2",
50
+ "@vaadin/date-picker": "24.9.0-beta2",
51
+ "@vaadin/email-field": "24.9.0-beta2",
52
+ "@vaadin/form-layout": "24.9.0-beta2",
53
+ "@vaadin/number-field": "24.9.0-beta2",
54
+ "@vaadin/password-field": "24.9.0-beta2",
55
+ "@vaadin/select": "24.9.0-beta2",
56
+ "@vaadin/test-runner-commands": "24.9.0-beta2",
57
57
  "@vaadin/testing-helpers": "^1.1.0",
58
- "@vaadin/text-area": "24.9.0-alpha2",
59
- "@vaadin/text-field": "24.9.0-alpha2",
60
- "@vaadin/time-picker": "24.9.0-alpha2",
58
+ "@vaadin/text-area": "24.9.0-beta2",
59
+ "@vaadin/text-field": "24.9.0-beta2",
60
+ "@vaadin/time-picker": "24.9.0-beta2",
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": "dd99dece1b54942ab0e421892b089e506822c5f5"
67
+ "gitHead": "cf8def153fcf724b305f9ad823dc9af27e31ad07"
68
68
  }
@@ -144,10 +144,14 @@ export const CustomFieldMixin = (superClass) =>
144
144
  });
145
145
  }
146
146
 
147
- /** @protected */
148
- focus() {
147
+ /**
148
+ * @param {FocusOptions=} options
149
+ * @protected
150
+ * @override
151
+ */
152
+ focus(options) {
149
153
  if (this.inputs && this.inputs[0]) {
150
- this.inputs[0].focus();
154
+ this.inputs[0].focus(options);
151
155
  }
152
156
  }
153
157
 
@@ -77,14 +77,15 @@ export interface CustomFieldEventMap extends HTMLElementEventMap, CustomFieldCus
77
77
  *
78
78
  * The following state attributes are available for styling:
79
79
  *
80
- * Attribute | Description | Part name
81
- * --------------------|-------------------------------------------|------------
82
- * `invalid` | Set when the element is invalid | :host
83
- * `focused` | Set when the element is focused | :host
84
- * `has-label` | Set when the element has a label | :host
85
- * `has-value` | Set when the element has a value | :host
86
- * `has-helper` | Set when the element has helper text | :host
87
- * `has-error-message` | Set when the element has an error message | :host
80
+ * Attribute | Description
81
+ * --------------------|--------------------------------
82
+ * `invalid` | Set when the element is invalid
83
+ * `focused` | Set when the element is focused
84
+ * `has-label` | Set when the element has a label
85
+ * `has-value` | Set when the element has a value
86
+ * `has-helper` | Set when the element has helper text
87
+ * `has-error-message` | Set when the element has an error message
88
+ * `has-tooltip` | Set when the element has a slotted tooltip
88
89
  *
89
90
  * You may also manually set `disabled` or `readonly` attribute on this component to make the label
90
91
  * part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
@@ -36,14 +36,15 @@ registerStyles('vaadin-custom-field', customFieldStyles, { moduleId: 'vaadin-cus
36
36
  *
37
37
  * The following state attributes are available for styling:
38
38
  *
39
- * Attribute | Description | Part name
40
- * --------------------|-------------------------------------------|------------
41
- * `invalid` | Set when the element is invalid | :host
42
- * `focused` | Set when the element is focused | :host
43
- * `has-label` | Set when the element has a label | :host
44
- * `has-value` | Set when the element has a value | :host
45
- * `has-helper` | Set when the element has helper text | :host
46
- * `has-error-message` | Set when the element has an error message | :host
39
+ * Attribute | Description
40
+ * --------------------|--------------------------------
41
+ * `invalid` | Set when the element is invalid
42
+ * `focused` | Set when the element is focused
43
+ * `has-label` | Set when the element has a label
44
+ * `has-value` | Set when the element has a value
45
+ * `has-helper` | Set when the element has helper text
46
+ * `has-error-message` | Set when the element has an error message
47
+ * `has-tooltip` | Set when the element has a slotted tooltip
47
48
  *
48
49
  * You may also manually set `disabled` or `readonly` attribute on this component to make the label
49
50
  * part look visually the same as on a `<vaadin-text-field>` when it is disabled or readonly.
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": "24.9.0-alpha2",
4
+ "version": "24.9.0-beta2",
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```\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 | Part name\n--------------------|-------------------------------------------|------------\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\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```\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.",
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/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.",
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-beta2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-beta2/#/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.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.",
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-beta2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-beta2/#/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.9.0-alpha2",
4
+ "version": "24.9.0-beta2",
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```\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 | Part name\n--------------------|-------------------------------------------|------------\n`invalid` | Set when the element is invalid | :host\n`focused` | Set when the element is focused | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\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```\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.",
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/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.",
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-beta2/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/24.9.0-beta2/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
88
88
  "value": {
89
89
  "kind": "expression"
90
90
  }