/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { MenubarItem, SearchEvent } from "./utils"; import { SearchEnv } from "./utils/subjects.api"; export { MenubarItem, SearchEvent } from "./utils"; export { SearchEnv } from "./utils/subjects.api"; export namespace Components { /** * Back to top floating action button component. * Appears on scroll, given a min height for both scroll height and page height. */ interface ZanitBackToTop { /** * Min page height from which the back-to-top button must appear. * @default 1600 */ "pageMinHeight": number; /** * Min scroll height from which the back-to-top button must appear. * @default 800 */ "scrollMinHeight": number; } /** * Main menubar component. Each item can have a menu with subitems * When a main menubar item is the current active one, a sub-menubar is shown and each subitem can have a menu with subitems. * @cssprop {--zanit-menubar-max-width} Maximum width of the menubar. */ interface ZanitMenubar { /** * Path of the current item. * @default undefined */ "current": string | undefined; /** * The data to build the menu (as an array of `MenubarItem` or a JSON array) or the url to fetch to retrieve it. */ "data": Promise | MenubarItem[] | URL | string; /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv": SearchEnv; /** * Initial search query. * @default undefined */ "searchQuery": string | undefined; } /** * Mobile menubar component. */ interface ZanitMobileMenubar { /** * IDs path of the current item. * @default [] */ "currentPath": string[]; /** * Menubar items. * @default [] */ "items": MenubarItem[]; /** * Whether the menubar is loading the data. * @default false */ "loading": boolean; /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv": SearchEnv; /** * Initial search query. * @default undefined */ "searchQuery": string | undefined; } interface ZanitSearchForm { /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv": SearchEnv; /** * Initial search query * @default undefined */ "searchQuery": string | undefined; } } export interface ZanitSearchFormCustomEvent extends CustomEvent { detail: T; target: HTMLZanitSearchFormElement; } declare global { /** * Back to top floating action button component. * Appears on scroll, given a min height for both scroll height and page height. */ interface HTMLZanitBackToTopElement extends Components.ZanitBackToTop, HTMLStencilElement { } var HTMLZanitBackToTopElement: { prototype: HTMLZanitBackToTopElement; new (): HTMLZanitBackToTopElement; }; /** * Main menubar component. Each item can have a menu with subitems * When a main menubar item is the current active one, a sub-menubar is shown and each subitem can have a menu with subitems. * @cssprop {--zanit-menubar-max-width} Maximum width of the menubar. */ interface HTMLZanitMenubarElement extends Components.ZanitMenubar, HTMLStencilElement { } var HTMLZanitMenubarElement: { prototype: HTMLZanitMenubarElement; new (): HTMLZanitMenubarElement; }; /** * Mobile menubar component. */ interface HTMLZanitMobileMenubarElement extends Components.ZanitMobileMenubar, HTMLStencilElement { } var HTMLZanitMobileMenubarElement: { prototype: HTMLZanitMobileMenubarElement; new (): HTMLZanitMobileMenubarElement; }; interface HTMLZanitSearchFormElementEventMap { "search": SearchEvent; "resetSearch": void; } interface HTMLZanitSearchFormElement extends Components.ZanitSearchForm, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLZanitSearchFormElement, ev: ZanitSearchFormCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLZanitSearchFormElement, ev: ZanitSearchFormCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLZanitSearchFormElement: { prototype: HTMLZanitSearchFormElement; new (): HTMLZanitSearchFormElement; }; interface HTMLElementTagNameMap { "zanit-back-to-top": HTMLZanitBackToTopElement; "zanit-menubar": HTMLZanitMenubarElement; "zanit-mobile-menubar": HTMLZanitMobileMenubarElement; "zanit-search-form": HTMLZanitSearchFormElement; } } declare namespace LocalJSX { /** * Back to top floating action button component. * Appears on scroll, given a min height for both scroll height and page height. */ interface ZanitBackToTop { /** * Min page height from which the back-to-top button must appear. * @default 1600 */ "pageMinHeight"?: number; /** * Min scroll height from which the back-to-top button must appear. * @default 800 */ "scrollMinHeight"?: number; } /** * Main menubar component. Each item can have a menu with subitems * When a main menubar item is the current active one, a sub-menubar is shown and each subitem can have a menu with subitems. * @cssprop {--zanit-menubar-max-width} Maximum width of the menubar. */ interface ZanitMenubar { /** * Path of the current item. * @default undefined */ "current"?: string | undefined; /** * The data to build the menu (as an array of `MenubarItem` or a JSON array) or the url to fetch to retrieve it. */ "data"?: Promise | MenubarItem[] | URL | string; /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv"?: SearchEnv; /** * Initial search query. * @default undefined */ "searchQuery"?: string | undefined; } /** * Mobile menubar component. */ interface ZanitMobileMenubar { /** * IDs path of the current item. * @default [] */ "currentPath"?: string[]; /** * Menubar items. * @default [] */ "items"?: MenubarItem[]; /** * Whether the menubar is loading the data. * @default false */ "loading"?: boolean; /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv"?: SearchEnv; /** * Initial search query. * @default undefined */ "searchQuery"?: string | undefined; } interface ZanitSearchForm { /** * Emitted when the search query is reset by the user (e.g. by clicking the reset button). */ "onResetSearch"?: (event: ZanitSearchFormCustomEvent) => void; /** * Emitted on search form submission. */ "onSearch"?: (event: ZanitSearchFormCustomEvent) => void; /** * Search area (e.g. "SCUOLA", "UNIVERSITÀ", "DIZIONARI"). */ "searchArea"?: string | undefined; /** * Environment for search suggestions * @default SearchEnv.PROD */ "searchEnv"?: SearchEnv; /** * Initial search query * @default undefined */ "searchQuery"?: string | undefined; } interface ZanitBackToTopAttributes { "pageMinHeight": number; "scrollMinHeight": number; } interface ZanitMenubarAttributes { "data": Promise | MenubarItem[] | URL | string; "current": string | undefined; "searchQuery": string | undefined; "searchEnv": SearchEnv; "searchArea": string | undefined; } interface ZanitMobileMenubarAttributes { "searchQuery": string | undefined; "loading": boolean; "searchEnv": SearchEnv; "searchArea": string | undefined; } interface ZanitSearchFormAttributes { "searchQuery": string | undefined; "searchEnv": SearchEnv; "searchArea": string | undefined; } interface IntrinsicElements { "zanit-back-to-top": Omit & { [K in keyof ZanitBackToTop & keyof ZanitBackToTopAttributes]?: ZanitBackToTop[K] } & { [K in keyof ZanitBackToTop & keyof ZanitBackToTopAttributes as `attr:${K}`]?: ZanitBackToTopAttributes[K] } & { [K in keyof ZanitBackToTop & keyof ZanitBackToTopAttributes as `prop:${K}`]?: ZanitBackToTop[K] }; "zanit-menubar": Omit & { [K in keyof ZanitMenubar & keyof ZanitMenubarAttributes]?: ZanitMenubar[K] } & { [K in keyof ZanitMenubar & keyof ZanitMenubarAttributes as `attr:${K}`]?: ZanitMenubarAttributes[K] } & { [K in keyof ZanitMenubar & keyof ZanitMenubarAttributes as `prop:${K}`]?: ZanitMenubar[K] }; "zanit-mobile-menubar": Omit & { [K in keyof ZanitMobileMenubar & keyof ZanitMobileMenubarAttributes]?: ZanitMobileMenubar[K] } & { [K in keyof ZanitMobileMenubar & keyof ZanitMobileMenubarAttributes as `attr:${K}`]?: ZanitMobileMenubarAttributes[K] } & { [K in keyof ZanitMobileMenubar & keyof ZanitMobileMenubarAttributes as `prop:${K}`]?: ZanitMobileMenubar[K] }; "zanit-search-form": Omit & { [K in keyof ZanitSearchForm & keyof ZanitSearchFormAttributes]?: ZanitSearchForm[K] } & { [K in keyof ZanitSearchForm & keyof ZanitSearchFormAttributes as `attr:${K}`]?: ZanitSearchFormAttributes[K] } & { [K in keyof ZanitSearchForm & keyof ZanitSearchFormAttributes as `prop:${K}`]?: ZanitSearchForm[K] }; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { /** * Back to top floating action button component. * Appears on scroll, given a min height for both scroll height and page height. */ "zanit-back-to-top": LocalJSX.IntrinsicElements["zanit-back-to-top"] & JSXBase.HTMLAttributes; /** * Main menubar component. Each item can have a menu with subitems * When a main menubar item is the current active one, a sub-menubar is shown and each subitem can have a menu with subitems. * @cssprop {--zanit-menubar-max-width} Maximum width of the menubar. */ "zanit-menubar": LocalJSX.IntrinsicElements["zanit-menubar"] & JSXBase.HTMLAttributes; /** * Mobile menubar component. */ "zanit-mobile-menubar": LocalJSX.IntrinsicElements["zanit-mobile-menubar"] & JSXBase.HTMLAttributes; "zanit-search-form": LocalJSX.IntrinsicElements["zanit-search-form"] & JSXBase.HTMLAttributes; } } }