@gip-recia/esco-content-menu-lit
Version:
Web component to display into eyebrow menu a user information menu with profile picture and more.
72 lines • 2.58 kB
TypeScript
import { LitElement, TemplateResult } from 'lit';
import { type Response as OIDCResponse } from '@uportal/open-id-connect';
import './content-user';
import './content-favorites';
import './content-grid';
import './header-buttons';
import './lit-spinner';
declare const ContentMenu_base: (new (...args: any[]) => import("@mixins/litLoggable").LoggableInterface) & typeof LitElement;
export declare class ContentMenu extends ContentMenu_base {
messages: never[];
portalBaseUrl: string;
favoritesPortletCardSize: string;
gridPortletCardSize: string;
defaultOrgLogo: string;
forceOrgLogo: string;
contextApiUrl: string;
favoriteApiUrl: string;
layoutApiUrl: string;
portletApiUrl: string;
organizationApiUrl: string;
userInfoApiUrl: string;
userInfo: null;
signoutUrl: string;
userInfoPortletUrl: string;
switchOrgPortletUrl: string;
switchOrgEvent: boolean;
orgAttributeName: string;
orgLogoUrlAttributeName: string;
userAllOrgsIdAttributeName: string;
cardHoverSrc: string;
hideActionMode: string;
isHidden: boolean;
showFavoritesInSlider: boolean;
disableCache: boolean;
cacheTTL: number;
debug: boolean;
fakeAttribute: boolean;
_screenSize: string;
_hideAction: boolean;
_currentOrg: Organization | null;
_currentUser: UserInfo | null;
_currentUserOrgs: OrgInfo | null;
_portlets: Portlet[] | null;
_favorites: string[] | null;
_inError: boolean;
_forceOrgDisplayName: string;
private _errorMessage;
private _userInfos;
private _loading;
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
shouldUpdate(changedProperties: Map<string | number | symbol, unknown>): boolean;
updated(changedProperties: Map<string | number | symbol, unknown>): void;
loadDatas(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
fetchPortlets(userInfos: OIDCResponse | null): Promise<void>;
fetchFavorites(userInfos: OIDCResponse | null): Promise<void>;
fetchUserInfo(userInfos: OIDCResponse | null): Promise<void>;
calculateSize(): void;
updateStructureName(e: Event): void;
updateStructureLogo(e: Event): void;
onClose(e: Event): void;
isOtherOrgs(): boolean;
getOrgImage(): string;
actionToggleFav(e: CustomEvent): void;
toogleSwitchOrg(e: Event): void;
render(): TemplateResult;
static styles: import("lit").CSSResult[];
_error(errorMessage: string): void;
}
export {};
//# sourceMappingURL=content-menu.d.ts.map