UNPKG

@engie-group/fluid-design-system

Version:

The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.

27 lines (26 loc) 923 B
/** * -------------------------------------------------------------------------- * NJ: search.ts * -------------------------------------------------------------------------- */ import AbstractComponent from '../../globals/ts/abstract-component'; export default class Search extends AbstractComponent { static readonly NAME = "nj-search"; protected static readonly DATA_KEY = "nj.search"; protected static readonly EVENT_KEY: string; protected static readonly SELECTOR: { default: string; field: string; clearButton: string; }; private readonly root; private readonly field; private readonly clearButton; constructor(element: HTMLDivElement); static init(options?: {}): Search[]; dispose(): void; static getInstance(element: HTMLElement): Search; private setListeners; private toggleClearButtonIfNeeded; private toggleInertAttribute; }