Skip to content

Commit f998f86

Browse files
committed
fix: remove duped code
1 parent 3871c00 commit f998f86

File tree

6 files changed

+33
-38
lines changed

6 files changed

+33
-38
lines changed

packages/ui-webc/src/components/checkbox/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
## Events
2020

21-
| Event | Description | Type |
22-
| ----------------- | ----------------------------------------------- | --------------------------------------------------------------- |
23-
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24-
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25-
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26-
| `scoutBlur` | | `CustomEvent<void>` |
27-
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
21+
| Event | Description | Type |
22+
| ------------------ | ----------------------------------------------- | --------------------------------------------------------------- |
23+
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24+
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25+
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26+
| `scoutBlur` | | `CustomEvent<void>` |
27+
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
2828
| `scoutInputChange` | | `CustomEvent<{ value: string; element: HTMLElement; }>` |
2929

3030

packages/ui-webc/src/components/input/readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
## Events
2020

21-
| Event | Description | Type |
22-
| ----------------- | ----------------------------------------------- | ------------------------------------------------------- |
23-
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24-
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25-
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26-
| `scoutBlur` | | `CustomEvent<void>` |
21+
| Event | Description | Type |
22+
| ------------------ | ----------------------------------------------- | ------------------------------------------------------- |
23+
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24+
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25+
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26+
| `scoutBlur` | | `CustomEvent<void>` |
2727
| `scoutInputChange` | | `CustomEvent<{ value: string; element: HTMLElement; }>` |
2828

2929

packages/ui-webc/src/components/radio-button/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
## Events
2020

21-
| Event | Description | Type |
22-
| ----------------- | ----------------------------------------------- | --------------------------------------------------------------- |
23-
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24-
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25-
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26-
| `scoutBlur` | | `CustomEvent<void>` |
27-
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
21+
| Event | Description | Type |
22+
| ------------------ | ----------------------------------------------- | --------------------------------------------------------------- |
23+
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
24+
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
25+
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
26+
| `scoutBlur` | | `CustomEvent<void>` |
27+
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
2828
| `scoutInputChange` | | `CustomEvent<{ value: string; element: HTMLElement; }>` |
2929

3030

packages/ui-webc/src/components/select/readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ A styled native select component for choosing from a list of options.
4040

4141
## Events
4242

43-
| Event | Description | Type |
44-
| ----------------- | ----------------------------------------------- | ------------------------------------------------------- |
45-
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
46-
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
47-
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
48-
| `scoutBlur` | | `CustomEvent<void>` |
43+
| Event | Description | Type |
44+
| ------------------ | ----------------------------------------------- | ------------------------------------------------------- |
45+
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
46+
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
47+
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
48+
| `scoutBlur` | | `CustomEvent<void>` |
4949
| `scoutInputChange` | | `CustomEvent<{ value: string; element: HTMLElement; }>` |
5050

5151

packages/ui-webc/src/components/select/select.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ export class ScoutSelect
3030

3131
@Prop() name: string;
3232

33-
componentWillLoad(): Promise<void> | void {
34-
this.ariaId = `_${Math.random().toString(36).substring(2, 9)}`;
35-
this._scoutFieldId.emit(this.ariaId);
36-
}
37-
3833
render() {
3934
return (
4035
<div class="select-wrapper">

packages/ui-webc/src/components/switch/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
## Events
1818

19-
| Event | Description | Type |
20-
| ----------------- | ----------------------------------------------- | --------------------------------------------------------------- |
21-
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
22-
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
23-
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
24-
| `scoutBlur` | | `CustomEvent<void>` |
25-
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
19+
| Event | Description | Type |
20+
| ------------------ | ----------------------------------------------- | --------------------------------------------------------------- |
21+
| `_scoutFieldId` | Internal event used for form field association. | `CustomEvent<string>` |
22+
| `_scoutInvalid` | Internal event used for form field validation. | `CustomEvent<void>` |
23+
| `_scoutValidate` | Internal event used for form field validation. | `CustomEvent<{ element: HTMLElement; }>` |
24+
| `scoutBlur` | | `CustomEvent<void>` |
25+
| `scoutChecked` | | `CustomEvent<{ checked: boolean; element: HTMLInputElement; }>` |
2626
| `scoutInputChange` | | `CustomEvent<{ value: string; element: HTMLElement; }>` |
2727

2828

0 commit comments

Comments
 (0)