scandit-web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
57 lines (54 loc) • 1.74 kB
TypeScript
import { ScanditHTMLElement } from 'scandit-web-datacapture-core/build/js/private/utils/index.js';
import { Card } from './Card.js';
declare enum CardListEvents {
Collapsed = "collapsed",
WillCollapse = "willcollapse",
Expanded = "expanded",
WillExpand = "willexpand",
Tap = "cardtap"
}
declare class CardList extends ScanditHTMLElement {
static tag: "scandit-find-card-list";
private static readonly observedAttributes;
private onCardClickHandler;
private updateFadeMaskHandler;
constructor();
set collapsed(value: boolean);
get collapsed(): boolean;
private get items();
private get root();
static create(): CardList;
static register(): void;
private static createStyleElement;
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: keyof this, _oldValue: this[keyof this], _newValue: this[keyof this]): void;
renderCards(items: Card[]): void;
clearCards(): void;
/**
* put the card on the top of the list and animate it
*/
unshift(item: Card): Promise<void>;
private onCardClick;
private updateFadeMask;
private toggle;
private expand;
private collapse;
}
declare global {
interface HTMLElementTagNameMap {
[]: CardList;
}
interface HTMLElementEventMap {
[]: CustomEvent<void>;
[]: CustomEvent<void>;
[]: CustomEvent<void>;
[]: CustomEvent<void>;
[]: CustomEvent<{
detail: {
card: Card;
};
}>;
}
}
export { CardList, CardListEvents };