avances en plantillas

This commit is contained in:
JACS 2026-05-01 18:15:40 -05:00
parent 0f84beacf1
commit da0530d79b
2062 changed files with 598814 additions and 22 deletions

View file

@ -0,0 +1,31 @@
export type ElementEvent = 'selectionChange' | 'input' | 'drop' | 'click' | 'focus' | 'commit';
export type EventHandlers = {
[key in ElementEvent]: (...args: any[]) => void;
} & {
undo?: (...args: any[]) => void;
redo?: (...args: any[]) => void;
};
/** Generic element API to use with mask */
export default abstract class MaskElement {
/** */
abstract _unsafeSelectionStart: number | null;
/** */
abstract _unsafeSelectionEnd: number | null;
/** */
abstract value: string;
/** Safely returns selection start */
get selectionStart(): number;
/** Safely returns selection end */
get selectionEnd(): number;
/** Safely sets element selection */
select(start: number, end: number): void;
/** */
get isActive(): boolean;
/** */
abstract _unsafeSelect(start: number, end: number): void;
/** */
abstract bindEvents(handlers: EventHandlers): void;
/** */
abstract unbindEvents(): void;
}
//# sourceMappingURL=mask-element.d.ts.map