item_slider.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import { AbstractVariableItem } from './abstract_variable_item.js';
  2. import { Menu } from './menu.js';
  3. import { ParserFactory } from './parser_factory.js';
  4. export declare class Slider extends AbstractVariableItem<string> {
  5. protected role: string;
  6. private labelSpan;
  7. private valueSpan;
  8. private labelId;
  9. private valueId;
  10. private input;
  11. private inputEvent;
  12. static fromJson(_factory: ParserFactory, { content: content, variable: variable, id: id }: {
  13. content: string;
  14. variable: string;
  15. id: string;
  16. }, menu: Menu): Slider;
  17. constructor(menu: Menu, content: string, variable: string, id?: string);
  18. executeAction(): void;
  19. space(event: KeyboardEvent): void;
  20. focus(): void;
  21. unfocus(): void;
  22. generateHtml(): void;
  23. generateSpan(): void;
  24. inputKey(_event: KeyboardEvent): void;
  25. mousedown(event: MouseEvent): void;
  26. mouseup(_event: MouseEvent): void;
  27. keydown(event: KeyboardEvent): void;
  28. protected updateAria(): void;
  29. protected updateSpan(): void;
  30. toJson(): {
  31. type: string;
  32. };
  33. }