123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.eventAliasMap = exports.eventMap = void 0;
- const eventMap = {
- // Clipboard Events
- copy: {
- EventType: 'ClipboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- cut: {
- EventType: 'ClipboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- paste: {
- EventType: 'ClipboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- // Composition Events
- compositionEnd: {
- EventType: 'CompositionEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- compositionStart: {
- EventType: 'CompositionEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- compositionUpdate: {
- EventType: 'CompositionEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- // Keyboard Events
- keyDown: {
- EventType: 'KeyboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- charCode: 0,
- composed: true
- }
- },
- keyPress: {
- EventType: 'KeyboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- charCode: 0,
- composed: true
- }
- },
- keyUp: {
- EventType: 'KeyboardEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- charCode: 0,
- composed: true
- }
- },
- // Focus Events
- focus: {
- EventType: 'FocusEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false,
- composed: true
- }
- },
- blur: {
- EventType: 'FocusEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false,
- composed: true
- }
- },
- focusIn: {
- EventType: 'FocusEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- focusOut: {
- EventType: 'FocusEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- // Form Events
- change: {
- EventType: 'Event',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- },
- input: {
- EventType: 'InputEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- invalid: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: true
- }
- },
- submit: {
- EventType: 'Event',
- defaultInit: {
- bubbles: true,
- cancelable: true
- }
- },
- reset: {
- EventType: 'Event',
- defaultInit: {
- bubbles: true,
- cancelable: true
- }
- },
- // Mouse Events
- click: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- button: 0,
- composed: true
- }
- },
- contextMenu: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- dblClick: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- drag: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- dragEnd: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- dragEnter: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- dragExit: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- dragLeave: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- dragOver: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- dragStart: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- drop: {
- EventType: 'DragEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- mouseDown: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- mouseEnter: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false,
- composed: true
- }
- },
- mouseLeave: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false,
- composed: true
- }
- },
- mouseMove: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- mouseOut: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- mouseOver: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- mouseUp: {
- EventType: 'MouseEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- // Selection Events
- select: {
- EventType: 'Event',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- },
- // Touch Events
- touchCancel: {
- EventType: 'TouchEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- touchEnd: {
- EventType: 'TouchEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- touchMove: {
- EventType: 'TouchEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- touchStart: {
- EventType: 'TouchEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- // UI Events
- scroll: {
- EventType: 'UIEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- // Wheel Events
- wheel: {
- EventType: 'WheelEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- // Media Events
- abort: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- canPlay: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- canPlayThrough: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- durationChange: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- emptied: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- encrypted: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- ended: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- loadedData: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- loadedMetadata: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- loadStart: {
- EventType: 'ProgressEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- pause: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- play: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- playing: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- progress: {
- EventType: 'ProgressEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- rateChange: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- seeked: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- seeking: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- stalled: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- suspend: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- timeUpdate: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- volumeChange: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- waiting: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- // Image Events
- load: {
- EventType: 'UIEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- error: {
- EventType: 'Event',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- // Animation Events
- animationStart: {
- EventType: 'AnimationEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- },
- animationEnd: {
- EventType: 'AnimationEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- },
- animationIteration: {
- EventType: 'AnimationEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- },
- // Transition Events
- transitionEnd: {
- EventType: 'TransitionEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true
- }
- },
- // pointer events
- pointerOver: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- pointerEnter: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- pointerDown: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- pointerMove: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- pointerUp: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- pointerCancel: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- pointerOut: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: true,
- composed: true
- }
- },
- pointerLeave: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: false,
- cancelable: false
- }
- },
- gotPointerCapture: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- lostPointerCapture: {
- EventType: 'PointerEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false,
- composed: true
- }
- },
- // history events
- popState: {
- EventType: 'PopStateEvent',
- defaultInit: {
- bubbles: true,
- cancelable: false
- }
- }
- };
- exports.eventMap = eventMap;
- const eventAliasMap = {
- doubleClick: 'dblClick'
- };
- exports.eventAliasMap = eventAliasMap;
|