Skip to content

Commit

Permalink
chore: fix CEM error
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Jan 4, 2024
1 parent fd77289 commit db849c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/lib/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export class OverlayComponent extends BaseOverlay<OverlayFoundation> implements
}

@FoundationProperty()
public arrowElement: HTMLElement;
public declare arrowElement: HTMLElement;

@FoundationProperty()
public arrowElementOffset: number;
public declare arrowElementOffset: number;
}
4 changes: 3 additions & 1 deletion src/lib/popover/popover-foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export interface IPopoverFoundation extends IOverlayAwareFoundation {
dispatchBeforeToggleEvent(state: IDismissibleStackState): boolean;
}

export class PopoverFoundation extends WithLongpressListener(OverlayAwareFoundation<IPopoverAdapter>) implements IPopoverFoundation {
const BaseClass = WithLongpressListener(OverlayAwareFoundation<IPopoverAdapter>);

export class PopoverFoundation extends BaseClass implements IPopoverFoundation {
private _targetElement: HTMLElement;
private _target: string | null = null;
private _arrow = false;
Expand Down
10 changes: 5 additions & 5 deletions src/lib/popover/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare global {
/**
* @tag forge-popover
*
* @description Popovers are used to render content in an element that is above all other content on the page.
* @summary Popovers are used to render content in an element that is above all other content on the page.
*
* @property {boolean} arrow - Whether or not the popover should render an arrow.
* @property {PopoverAnimationType} animationType - The animation type to use for the popover. Valid values are `'none'`, `'fade'`, `'slide'`, and `'zoom'` (default).
Expand Down Expand Up @@ -128,14 +128,14 @@ export class PopoverComponent extends OverlayAware<IPopoverFoundation> implement
}

@FoundationProperty()
public arrow: boolean;
public declare arrow: boolean;

@FoundationProperty()
public animationType: PopoverAnimationType;
public declare animationType: PopoverAnimationType;

@FoundationProperty()
public triggerType: PopoverTriggerType | PopoverTriggerType[];
public declare triggerType: PopoverTriggerType | PopoverTriggerType[];

@FoundationProperty()
public longpressDelay: number;
public declare longpressDelay: number;
}

0 comments on commit db849c2

Please sign in to comment.