From 1f2ac02605bd71a92f5cce62bf1fe1df9a5cbea6 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Wed, 10 Apr 2024 13:10:53 +0300 Subject: [PATCH] docs: add readonly to the list of state attributes --- packages/checkbox-group/src/vaadin-checkbox-group.d.ts | 1 + packages/checkbox-group/src/vaadin-checkbox-group.js | 1 + packages/checkbox/src/vaadin-checkbox.d.ts | 1 + packages/checkbox/src/vaadin-checkbox.js | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/checkbox-group/src/vaadin-checkbox-group.d.ts b/packages/checkbox-group/src/vaadin-checkbox-group.d.ts index af44f5da24..5c24613b2a 100644 --- a/packages/checkbox-group/src/vaadin-checkbox-group.d.ts +++ b/packages/checkbox-group/src/vaadin-checkbox-group.d.ts @@ -61,6 +61,7 @@ export interface CheckboxGroupEventMap extends HTMLElementEventMap, CheckboxGrou * Attribute | Description | Part name * --------------------|-------------------------------------------|------------ * `disabled` | Set when the element is disabled | :host + * `readonly` | Set when the element is readonly | :host * `invalid` | Set when the element is invalid | :host * `focused` | Set when the element is focused | :host * `has-label` | Set when the element has a label | :host diff --git a/packages/checkbox-group/src/vaadin-checkbox-group.js b/packages/checkbox-group/src/vaadin-checkbox-group.js index 935cd8fc59..2c692e4144 100644 --- a/packages/checkbox-group/src/vaadin-checkbox-group.js +++ b/packages/checkbox-group/src/vaadin-checkbox-group.js @@ -42,6 +42,7 @@ registerStyles('vaadin-checkbox-group', checkboxGroupStyles, { moduleId: 'vaadin * Attribute | Description | Part name * --------------------|-------------------------------------------|------------ * `disabled` | Set when the element is disabled | :host + * `readonly` | Set when the element is readonly | :host * `invalid` | Set when the element is invalid | :host * `focused` | Set when the element is focused | :host * `has-label` | Set when the element has a label | :host diff --git a/packages/checkbox/src/vaadin-checkbox.d.ts b/packages/checkbox/src/vaadin-checkbox.d.ts index e609a8fef8..478391da02 100644 --- a/packages/checkbox/src/vaadin-checkbox.d.ts +++ b/packages/checkbox/src/vaadin-checkbox.d.ts @@ -60,6 +60,7 @@ export interface CheckboxEventMap extends HTMLElementEventMap, CheckboxCustomEve * `active` | Set when the checkbox is activated with mouse, touch or the keyboard. * `checked` | Set when the checkbox is checked. * `disabled` | Set when the checkbox is disabled. + * `readonly` | Set when the checkbox is readonly. * `focus-ring` | Set when the checkbox is focused using the keyboard. * `focused` | Set when the checkbox is focused. * `indeterminate` | Set when the checkbox is in the indeterminate state. diff --git a/packages/checkbox/src/vaadin-checkbox.js b/packages/checkbox/src/vaadin-checkbox.js index 8a520bf9b8..d5fbe99cff 100644 --- a/packages/checkbox/src/vaadin-checkbox.js +++ b/packages/checkbox/src/vaadin-checkbox.js @@ -39,6 +39,7 @@ registerStyles('vaadin-checkbox', checkboxStyles, { moduleId: 'vaadin-checkbox-s * `active` | Set when the checkbox is activated with mouse, touch or the keyboard. * `checked` | Set when the checkbox is checked. * `disabled` | Set when the checkbox is disabled. + * `readonly` | Set when the checkbox is readonly. * `focus-ring` | Set when the checkbox is focused using the keyboard. * `focused` | Set when the checkbox is focused. * `indeterminate` | Set when the checkbox is in the indeterminate state.