@vaadin/checkbox 24.4.0-alpha9 → 24.4.0-dev.4b20a0c55

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/README.md CHANGED
@@ -5,7 +5,6 @@ An input field representing a binary choice.
5
5
  [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/checkbox)
6
6
 
7
7
  [![npm version](https://badgen.net/npm/v/@vaadin/checkbox)](https://www.npmjs.com/package/@vaadin/checkbox)
8
- [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
9
8
 
10
9
  ```html
11
10
  <vaadin-checkbox label="Checked" checked></vaadin-checkbox>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/checkbox",
3
- "version": "24.4.0-alpha9",
3
+ "version": "24.4.0-dev.4b20a0c55",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,12 +37,12 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "24.4.0-alpha9",
41
- "@vaadin/component-base": "24.4.0-alpha9",
42
- "@vaadin/field-base": "24.4.0-alpha9",
43
- "@vaadin/vaadin-lumo-styles": "24.4.0-alpha9",
44
- "@vaadin/vaadin-material-styles": "24.4.0-alpha9",
45
- "@vaadin/vaadin-themable-mixin": "24.4.0-alpha9",
40
+ "@vaadin/a11y-base": "24.4.0-dev.4b20a0c55",
41
+ "@vaadin/component-base": "24.4.0-dev.4b20a0c55",
42
+ "@vaadin/field-base": "24.4.0-dev.4b20a0c55",
43
+ "@vaadin/vaadin-lumo-styles": "24.4.0-dev.4b20a0c55",
44
+ "@vaadin/vaadin-material-styles": "24.4.0-dev.4b20a0c55",
45
+ "@vaadin/vaadin-themable-mixin": "24.4.0-dev.4b20a0c55",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "effb81abe3c6283a6ec620cc0cee56069af58226"
57
+ "gitHead": "b79c81e5f6fd24684b34ee0dc434e94d943ea13e"
58
58
  }
@@ -3,13 +3,9 @@
3
3
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { ActiveMixin } from '@vaadin/a11y-base/src/active-mixin.js';
7
- import { DelegateFocusMixin } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
8
- import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
9
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
- import { CheckedMixin } from '@vaadin/field-base/src/checked-mixin.js';
11
- import { LabelMixin } from '@vaadin/field-base/src/label-mixin.js';
12
7
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
8
+ import { CheckboxMixin } from './vaadin-checkbox-mixin.js';
13
9
 
14
10
  /**
15
11
  * Fired when the checkbox is checked or unchecked by the user.
@@ -71,23 +67,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve
71
67
  * @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
72
68
  * @fires {CustomEvent} indeterminate-changed - Fired when the `indeterminate` property changes.
73
69
  */
74
- declare class Checkbox extends LabelMixin(
75
- CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement)))))),
76
- ) {
77
- /**
78
- * True if the checkbox is in the indeterminate state which means
79
- * it is not possible to say whether it is checked or unchecked.
80
- * The state is reset once the user switches the checkbox by hand.
81
- *
82
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes
83
- */
84
- indeterminate: boolean;
85
-
86
- /**
87
- * The name of the checkbox.
88
- */
89
- name: string;
90
-
70
+ declare class Checkbox extends CheckboxMixin(ElementMixin(ThemableMixin(HTMLElement))) {
91
71
  addEventListener<K extends keyof CheckboxEventMap>(
92
72
  type: K,
93
73
  listener: (this: Checkbox, ev: CheckboxEventMap[K]) => void,
@@ -1,6 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/font-icons.js';
3
- import '@vaadin/vaadin-lumo-styles/sizing.js';
4
- import '@vaadin/vaadin-lumo-styles/spacing.js';
5
- import '@vaadin/vaadin-lumo-styles/style.js';
6
- import '@vaadin/vaadin-lumo-styles/typography.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-checkbox-styles.js';
2
- import '../../src/vaadin-checkbox.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-checkbox-styles.js';
2
- import '../../src/vaadin-lit-checkbox.js';
@@ -1 +0,0 @@
1
- import '@vaadin/vaadin-material-styles/color.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-checkbox-styles.js';
2
- import '../../src/vaadin-checkbox.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-checkbox-styles.js';
2
- import '../../src/vaadin-lit-checkbox.js';
package/web-types.json DELETED
@@ -1,193 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/checkbox",
4
- "version": "24.4.0-alpha9",
5
- "description-markup": "markdown",
6
- "contributions": {
7
- "html": {
8
- "elements": [
9
- {
10
- "name": "vaadin-checkbox",
11
- "description": "`<vaadin-checkbox>` is an input field representing a binary choice.\n\n```html\n<vaadin-checkbox label=\"I accept the terms and conditions\"></vaadin-checkbox>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------|-------------\n`checkbox` | The element representing a stylable custom checkbox.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n----------------|-------------\n`active` | Set when the checkbox is activated with mouse, touch or the keyboard.\n`checked` | Set when the checkbox is checked.\n`disabled` | Set when the checkbox is disabled.\n`focus-ring` | Set when the checkbox is focused using the keyboard.\n`focused` | Set when the checkbox is focused.\n`indeterminate` | Set when the checkbox is in the indeterminate state.\n`has-label` | Set when the checkbox has a label.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
- "attributes": [
13
- {
14
- "name": "disabled",
15
- "description": "If true, the user cannot interact with this element.",
16
- "value": {
17
- "type": [
18
- "boolean",
19
- "null",
20
- "undefined"
21
- ]
22
- }
23
- },
24
- {
25
- "name": "value",
26
- "description": "The value of the field.",
27
- "value": {
28
- "type": [
29
- "string",
30
- "null",
31
- "undefined"
32
- ]
33
- }
34
- },
35
- {
36
- "name": "checked",
37
- "description": "True if the element is checked.",
38
- "value": {
39
- "type": [
40
- "boolean"
41
- ]
42
- }
43
- },
44
- {
45
- "name": "autofocus",
46
- "description": "Specify that this control should have input focus when the page loads.",
47
- "value": {
48
- "type": [
49
- "boolean",
50
- "null",
51
- "undefined"
52
- ]
53
- }
54
- },
55
- {
56
- "name": "label",
57
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
58
- "value": {
59
- "type": [
60
- "string",
61
- "null",
62
- "undefined"
63
- ]
64
- }
65
- },
66
- {
67
- "name": "indeterminate",
68
- "description": "True if the checkbox is in the indeterminate state which means\nit is not possible to say whether it is checked or unchecked.\nThe state is reset once the user switches the checkbox by hand.\n\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes",
69
- "value": {
70
- "type": [
71
- "boolean"
72
- ]
73
- }
74
- },
75
- {
76
- "name": "name",
77
- "description": "The name of the checkbox.",
78
- "value": {
79
- "type": [
80
- "string"
81
- ]
82
- }
83
- },
84
- {
85
- "name": "theme",
86
- "description": "The theme variants to apply to the component.",
87
- "value": {
88
- "type": [
89
- "string",
90
- "null",
91
- "undefined"
92
- ]
93
- }
94
- }
95
- ],
96
- "js": {
97
- "properties": [
98
- {
99
- "name": "disabled",
100
- "description": "If true, the user cannot interact with this element.",
101
- "value": {
102
- "type": [
103
- "boolean",
104
- "null",
105
- "undefined"
106
- ]
107
- }
108
- },
109
- {
110
- "name": "value",
111
- "description": "The value of the field.",
112
- "value": {
113
- "type": [
114
- "string",
115
- "null",
116
- "undefined"
117
- ]
118
- }
119
- },
120
- {
121
- "name": "checked",
122
- "description": "True if the element is checked.",
123
- "value": {
124
- "type": [
125
- "boolean"
126
- ]
127
- }
128
- },
129
- {
130
- "name": "autofocus",
131
- "description": "Specify that this control should have input focus when the page loads.",
132
- "value": {
133
- "type": [
134
- "boolean",
135
- "null",
136
- "undefined"
137
- ]
138
- }
139
- },
140
- {
141
- "name": "label",
142
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
143
- "value": {
144
- "type": [
145
- "string",
146
- "null",
147
- "undefined"
148
- ]
149
- }
150
- },
151
- {
152
- "name": "indeterminate",
153
- "description": "True if the checkbox is in the indeterminate state which means\nit is not possible to say whether it is checked or unchecked.\nThe state is reset once the user switches the checkbox by hand.\n\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes",
154
- "value": {
155
- "type": [
156
- "boolean"
157
- ]
158
- }
159
- },
160
- {
161
- "name": "name",
162
- "description": "The name of the checkbox.",
163
- "value": {
164
- "type": [
165
- "string"
166
- ]
167
- }
168
- }
169
- ],
170
- "events": [
171
- {
172
- "name": "change",
173
- "description": "Fired when the checkbox is checked or unchecked by the user."
174
- },
175
- {
176
- "name": "value-changed",
177
- "description": "Fired when the `value` property changes."
178
- },
179
- {
180
- "name": "checked-changed",
181
- "description": "Fired when the `checked` property changes."
182
- },
183
- {
184
- "name": "indeterminate-changed",
185
- "description": "Fired when the `indeterminate` property changes."
186
- }
187
- ]
188
- }
189
- }
190
- ]
191
- }
192
- }
193
- }
@@ -1,104 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/checkbox",
4
- "version": "24.4.0-alpha9",
5
- "description-markup": "markdown",
6
- "framework": "lit",
7
- "framework-config": {
8
- "enable-when": {
9
- "node-packages": [
10
- "lit"
11
- ]
12
- }
13
- },
14
- "contributions": {
15
- "html": {
16
- "elements": [
17
- {
18
- "name": "vaadin-checkbox",
19
- "description": "`<vaadin-checkbox>` is an input field representing a binary choice.\n\n```html\n<vaadin-checkbox label=\"I accept the terms and conditions\"></vaadin-checkbox>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------|-------------\n`checkbox` | The element representing a stylable custom checkbox.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n----------------|-------------\n`active` | Set when the checkbox is activated with mouse, touch or the keyboard.\n`checked` | Set when the checkbox is checked.\n`disabled` | Set when the checkbox is disabled.\n`focus-ring` | Set when the checkbox is focused using the keyboard.\n`focused` | Set when the checkbox is focused.\n`indeterminate` | Set when the checkbox is in the indeterminate state.\n`has-label` | Set when the checkbox has a label.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
- "extension": true,
21
- "attributes": [
22
- {
23
- "name": "?disabled",
24
- "description": "If true, the user cannot interact with this element.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": "?checked",
31
- "description": "True if the element is checked.",
32
- "value": {
33
- "kind": "expression"
34
- }
35
- },
36
- {
37
- "name": "?autofocus",
38
- "description": "Specify that this control should have input focus when the page loads.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- },
43
- {
44
- "name": "?indeterminate",
45
- "description": "True if the checkbox is in the indeterminate state which means\nit is not possible to say whether it is checked or unchecked.\nThe state is reset once the user switches the checkbox by hand.\n\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes",
46
- "value": {
47
- "kind": "expression"
48
- }
49
- },
50
- {
51
- "name": ".value",
52
- "description": "The value of the field.",
53
- "value": {
54
- "kind": "expression"
55
- }
56
- },
57
- {
58
- "name": ".label",
59
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
60
- "value": {
61
- "kind": "expression"
62
- }
63
- },
64
- {
65
- "name": ".name",
66
- "description": "The name of the checkbox.",
67
- "value": {
68
- "kind": "expression"
69
- }
70
- },
71
- {
72
- "name": "@change",
73
- "description": "Fired when the checkbox is checked or unchecked by the user.",
74
- "value": {
75
- "kind": "expression"
76
- }
77
- },
78
- {
79
- "name": "@value-changed",
80
- "description": "Fired when the `value` property changes.",
81
- "value": {
82
- "kind": "expression"
83
- }
84
- },
85
- {
86
- "name": "@checked-changed",
87
- "description": "Fired when the `checked` property changes.",
88
- "value": {
89
- "kind": "expression"
90
- }
91
- },
92
- {
93
- "name": "@indeterminate-changed",
94
- "description": "Fired when the `indeterminate` property changes.",
95
- "value": {
96
- "kind": "expression"
97
- }
98
- }
99
- ]
100
- }
101
- ]
102
- }
103
- }
104
- }