@vaadin/time-picker 25.0.0-alpha15 → 25.0.0-alpha17

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/time-picker",
3
- "version": "25.0.0-alpha15",
3
+ "version": "25.0.0-alpha17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,25 +34,25 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/combo-box": "25.0.0-alpha15",
38
- "@vaadin/component-base": "25.0.0-alpha15",
39
- "@vaadin/field-base": "25.0.0-alpha15",
40
- "@vaadin/input-container": "25.0.0-alpha15",
41
- "@vaadin/item": "25.0.0-alpha15",
42
- "@vaadin/overlay": "25.0.0-alpha15",
43
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha15",
37
+ "@vaadin/combo-box": "25.0.0-alpha17",
38
+ "@vaadin/component-base": "25.0.0-alpha17",
39
+ "@vaadin/field-base": "25.0.0-alpha17",
40
+ "@vaadin/input-container": "25.0.0-alpha17",
41
+ "@vaadin/item": "25.0.0-alpha17",
42
+ "@vaadin/overlay": "25.0.0-alpha17",
43
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha17",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/chai-plugins": "25.0.0-alpha15",
48
- "@vaadin/test-runner-commands": "25.0.0-alpha15",
47
+ "@vaadin/chai-plugins": "25.0.0-alpha17",
48
+ "@vaadin/test-runner-commands": "25.0.0-alpha17",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha15",
51
- "sinon": "^18.0.0"
50
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha17",
51
+ "sinon": "^21.0.0"
52
52
  },
53
53
  "web-types": [
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "1ad98437e7600769bf66f870929feefbeef16edf"
57
+ "gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
58
58
  }
@@ -73,22 +73,35 @@ export interface TimePickerEventMap extends HTMLElementEventMap, TimePickerCusto
73
73
  * `--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`
74
74
  * `--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`
75
75
  *
76
- * `<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
77
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
78
- *
79
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
80
- *
81
- * Part name | Description
82
- * -----------------|----------------
83
- * `toggle-button` | The toggle button
84
- * `overlay` | The overlay container
85
- * `content` | The overlay content
86
- *
87
- * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
88
- *
89
- * Attribute | Description
90
- * ----------|------------------------------------------
91
- * `opened` | Set when the time-picker dropdown is open
76
+ * The following shadow DOM parts are available for styling:
77
+ *
78
+ * Part name | Description
79
+ * ---------------------|----------------
80
+ * `label` | The label element
81
+ * `input-field` | The element that wraps prefix, value and buttons
82
+ * `clear-button` | The clear button
83
+ * `error-message` | The error message element
84
+ * `helper-text` | The helper text element wrapper
85
+ * `required-indicator` | The `required` state indicator element
86
+ * `toggle-button` | The toggle button
87
+ * `overlay` | The overlay container
88
+ * `content` | The overlay content
89
+ *
90
+ * The following state attributes are available for styling:
91
+ *
92
+ * Attribute | Description
93
+ * ---------------------|---------------------------------
94
+ * `disabled` | Set when the element is disabled
95
+ * `has-value` | Set when the element has a value
96
+ * `has-label` | Set when the element has a label
97
+ * `has-helper` | Set when the element has helper text or slot
98
+ * `has-error-message` | Set when the element has an error message
99
+ * `has-tooltip` | Set when the element has a slotted tooltip
100
+ * `invalid` | Set when the element is invalid
101
+ * `focused` | Set when the element is focused
102
+ * `focus-ring` | Set when the element is keyboard focused
103
+ * `readonly` | Set when the element is readonly
104
+ * `opened` | Set when the overlay is opened
92
105
  *
93
106
  * ### Internal components
94
107
  *
@@ -40,22 +40,35 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
40
40
  * `--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`
41
41
  * `--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`
42
42
  *
43
- * `<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
44
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
45
- *
46
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
47
- *
48
- * Part name | Description
49
- * -----------------|----------------
50
- * `toggle-button` | The toggle button
51
- * `overlay` | The overlay container
52
- * `content` | The overlay content
53
- *
54
- * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
55
- *
56
- * Attribute | Description
57
- * ----------|------------------------------------------
58
- * `opened` | Set when the time-picker dropdown is open
43
+ * The following shadow DOM parts are available for styling:
44
+ *
45
+ * Part name | Description
46
+ * ---------------------|----------------
47
+ * `label` | The label element
48
+ * `input-field` | The element that wraps prefix, value and buttons
49
+ * `clear-button` | The clear button
50
+ * `error-message` | The error message element
51
+ * `helper-text` | The helper text element wrapper
52
+ * `required-indicator` | The `required` state indicator element
53
+ * `toggle-button` | The toggle button
54
+ * `overlay` | The overlay container
55
+ * `content` | The overlay content
56
+ *
57
+ * The following state attributes are available for styling:
58
+ *
59
+ * Attribute | Description
60
+ * ---------------------|---------------------------------
61
+ * `disabled` | Set when the element is disabled
62
+ * `has-value` | Set when the element has a value
63
+ * `has-label` | Set when the element has a label
64
+ * `has-helper` | Set when the element has helper text or slot
65
+ * `has-error-message` | Set when the element has an error message
66
+ * `has-tooltip` | Set when the element has a slotted tooltip
67
+ * `invalid` | Set when the element is invalid
68
+ * `focused` | Set when the element is focused
69
+ * `focus-ring` | Set when the element is keyboard focused
70
+ * `readonly` | Set when the element is readonly
71
+ * `opened` | Set when the overlay is opened
59
72
  *
60
73
  * ### Internal components
61
74
  *
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.0.0-alpha15",
4
+ "version": "25.0.0-alpha17",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-time-picker",
11
- "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\n`<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha15/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|----------------\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n----------|------------------------------------------\n`opened` | Set when the time-picker dropdown is open\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha15/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
11
+ "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha17/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.0.0-alpha15",
4
+ "version": "25.0.0-alpha17",
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-time-picker",
19
- "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\n`<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha15/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|----------------\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n----------|------------------------------------------\n`opened` | Set when the time-picker dropdown is open\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha15/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
19
+ "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha17/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {