Skip to content

Commit

Permalink
Remove deprecated focus methods
Browse files Browse the repository at this point in the history
Refs: #7015
  • Loading branch information
sdvg committed Dec 17, 2024
1 parent cef72ec commit 617f1d7
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 144 deletions.
8 changes: 0 additions & 8 deletions packages/components/src/components/accordion/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ export class KolAccordion implements AccordionAPI, FocusableElement {
this.buttonWcRef = ref;
};

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
public async kolFocus() {
await this.buttonWcRef?.kolFocus();
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/button-link/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ export class KolButtonLink implements ButtonLinkProps, FocusableElement {
return this._value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
public async kolFocus() {
await this.buttonWcRef?.kolFocus();
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/button/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ export class KolButton implements ButtonProps, FocusableElement {
return this._value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
public async kolFocus() {
await this.buttonWcRef?.kolFocus();
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/details/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ export class KolDetails implements DetailsAPI, FocusableElement {
this.buttonWcRef = ref;
};

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-checkbox/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ export class KolInputCheckbox implements InputCheckboxAPI, FocusableElement {
return this.getModelValue();
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-color/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ export class KolInputColor implements InputColorAPI, FocusableElement {
return this.inputRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-date/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ export class KolInputDate implements InputDateAPI, FocusableElement {
return this.inputRef && this.remapValue(this.inputRef?.value);
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-email/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ export class KolInputEmail implements InputEmailAPI, FocusableElement {
return this.inputRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-file/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ export class KolInputFile implements InputFileAPI, FocusableElement {
return this.inputRef?.files;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-number/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ export class KolInputNumber implements InputNumberAPI, FocusableElement {
return this.inputRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-password/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ export class KolInputPassword implements InputPasswordAPI, FocusableElement {
return this.inputRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-radio/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ export class KolInputRadio implements InputRadioAPI, FocusableElement {
return this.currentValue;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-range/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ export class KolInputRange implements InputRangeAPI, FocusableElement {
private refInputNumber?: HTMLInputElement;
private refInputRange?: HTMLInputElement;

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/input-text/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ export class KolInputText implements InputTextAPI, FocusableElement {
return this.inputRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/link-button/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ export class KolLinkButton implements LinkButtonProps, FocusableElement {
this.linkWcRef = ref;
};

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
public async kolFocus() {
await this.linkWcRef?.kolFocus();
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/link/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ export class KolLink implements LinkProps, FocusableElement {
this.linkWcRef = ref;
};

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
public async kolFocus() {
await this.linkWcRef?.kolFocus();
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/select/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ export class KolSelect implements SelectAPI, FocusableElement {
return this.state._value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down
8 changes: 0 additions & 8 deletions packages/components/src/components/textarea/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ export class KolTextarea implements TextareaAPI, FocusableElement {
return this.textareaRef?.value;
}

/**
* @deprecated Use kolFocus instead.
*/
@Method()
public async focus() {
await this.kolFocus();
}

@Method()
// eslint-disable-next-line @typescript-eslint/require-await
public async kolFocus() {
Expand Down

0 comments on commit 617f1d7

Please sign in to comment.