Skip to content

Commit

Permalink
Set renderContents result type to any for remaining classes to make i…
Browse files Browse the repository at this point in the history
…t easier to override
  • Loading branch information
volkanceylan committed May 11, 2024
1 parent 66b98c8 commit 50427c2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions packages/corelib/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3277,7 +3277,7 @@ interface ToolbarOptions {
hotkeyContext?: any;
}
declare class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends Widget<P> {
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
destroy(): void;
protected mouseTrap: any;
createButton(container: Fluent, tb: ToolButton): void;
Expand Down Expand Up @@ -3383,7 +3383,7 @@ declare namespace ReflectionOptionsSetter {
declare class PropertyGrid<P extends PropertyGridOptions = PropertyGridOptions> extends Widget<P> {
private editors;
private items;
protected renderContents(): void;
protected renderContents(): any;
destroy(): void;
private createItems;
private createCategoryDiv;
Expand Down Expand Up @@ -3486,7 +3486,7 @@ declare class PropertyDialog<TItem, P> extends BaseDialog<P> {
protected validateBeforeSave(): boolean;
protected updateTitle(): void;
protected propertyGrid: PropertyGrid;
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
}

declare namespace EditorUtils {
Expand Down Expand Up @@ -4693,7 +4693,7 @@ declare class FilterDialog<P = {}> extends BaseDialog<P> {
}

declare class FilterDisplayBar<P = {}> extends FilterWidgetBase<P> {
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
protected filterStoreChanged(): void;
}

Expand Down Expand Up @@ -5111,7 +5111,7 @@ declare class ColumnPickerDialog<P = {}> extends BaseDialog<P> {
visibleColumns: string[];
defaultColumns: string[];
done: () => void;
protected renderContents(): Fluent<HTMLDivElement>;
protected renderContents(): any;
static createToolButton(grid: IDataGrid): ToolButton;
protected getDialogButtons(): DialogButton[];
protected getDialogOptions(): DialogOptions;
Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/datagrid/columnpickerdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ColumnPickerDialog<P = {}> extends BaseDialog<P> {
public defaultColumns: string[];
public done: () => void;

protected renderContents() {
protected renderContents(): any {
this.dialogTitle = localText("Controls.ColumnPickerDialog.Title");

var visibles = Fluent("div")
Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/dialogs/propertydialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class PropertyDialog<TItem, P> extends BaseDialog<P> {

protected propertyGrid: PropertyGrid;

protected renderContents() {
protected renderContents(): any {
if (this.legacyTemplateRender())
return void 0;

Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/filtering/filterdisplaybar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FilterWidgetBase } from "./filterwidgetbase";
@Decorators.registerClass('Serenity.FilterDisplayBar')
export class FilterDisplayBar<P = {}> extends FilterWidgetBase<P> {

protected renderContents() {
protected renderContents(): any {
var openFilterDialog = (e: Event) => {
e.preventDefault();
var dialog = new FilterDialog({});
Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/widgets/propertygrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class PropertyGrid<P extends PropertyGridOptions = PropertyGridOptions> e
private editors: Widget<any>[];
private items: PropertyItem[];

protected renderContents() {
protected renderContents(): any {

this.domNode.classList.add('s-PropertyGrid');

Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/widgets/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export interface ToolbarOptions {
@Decorators.registerClass('Serenity.Toolbar')
export class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends Widget<P> {

protected renderContents() {
protected renderContents(): any {

let group = Fluent("div").class("tool-group");

Expand Down
10 changes: 5 additions & 5 deletions packages/corelib/wwwroot/index.global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4566,7 +4566,7 @@ declare namespace Serenity {
hotkeyContext?: any;
}
class Toolbar<P extends ToolbarOptions = ToolbarOptions> extends Widget<P> {
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
destroy(): void;
protected mouseTrap: any;
createButton(container: Fluent, tb: ToolButton): void;
Expand Down Expand Up @@ -4672,7 +4672,7 @@ declare namespace Serenity {
class PropertyGrid<P extends PropertyGridOptions = PropertyGridOptions> extends Widget<P> {
private editors;
private items;
protected renderContents(): void;
protected renderContents(): any;
destroy(): void;
private createItems;
private createCategoryDiv;
Expand Down Expand Up @@ -4775,7 +4775,7 @@ declare namespace Serenity {
protected validateBeforeSave(): boolean;
protected updateTitle(): void;
protected propertyGrid: PropertyGrid;
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
}

namespace EditorUtils {
Expand Down Expand Up @@ -5982,7 +5982,7 @@ declare namespace Serenity {
}

class FilterDisplayBar<P = {}> extends FilterWidgetBase<P> {
protected renderContents(): HTMLDivElement;
protected renderContents(): any;
protected filterStoreChanged(): void;
}

Expand Down Expand Up @@ -6400,7 +6400,7 @@ declare namespace Serenity {
visibleColumns: string[];
defaultColumns: string[];
done: () => void;
protected renderContents(): Fluent<HTMLDivElement>;
protected renderContents(): any;
static createToolButton(grid: IDataGrid): ToolButton;
protected getDialogButtons(): DialogButton[];
protected getDialogOptions(): DialogOptions;
Expand Down

0 comments on commit 50427c2

Please sign in to comment.