@expressen/tallahassee
Advanced tools
Comparing version 14.7.0 to 14.8.0
@@ -272,7 +272,2 @@ "use strict"; | ||
} | ||
focus() { | ||
if (this.disabled) return; | ||
const focusEvent = new Event("focus", { bubbles: true }); | ||
this.dispatchEvent(focusEvent); | ||
} | ||
getAttribute(name) { | ||
@@ -279,0 +274,0 @@ const value = this.$elm.attr(name); |
@@ -54,8 +54,2 @@ "use strict"; | ||
class InputEvent extends Event { | ||
constructor(type) { | ||
super(type, {bubbles: true}); | ||
} | ||
} | ||
class SubmitEvent extends Event { | ||
@@ -71,4 +65,2 @@ constructor(type, options = {bubbles: true}) { | ||
class PointerEvent extends Event {} | ||
class PopStateEvent extends Event { | ||
@@ -85,2 +77,20 @@ constructor(options) { | ||
class UIEvent extends Event {} | ||
class InputEvent extends UIEvent { | ||
constructor(type) { | ||
super(type, {bubbles: true}); | ||
} | ||
} | ||
class PointerEvent extends UIEvent {} | ||
class KeyboardEvent extends UIEvent { | ||
constructor(type, options = {}) { | ||
super(type, {bubbles: true}); | ||
this.key = options.key; | ||
} | ||
} | ||
module.exports = { | ||
@@ -93,2 +103,3 @@ Event, | ||
PopStateEvent, | ||
KeyboardEvent, | ||
symbols: { | ||
@@ -95,0 +106,0 @@ submitter: kSubmitter, |
@@ -5,2 +5,3 @@ "use strict"; | ||
const DOMStringMap = require("./DOMStringMap"); | ||
const { Event } = require("./Events"); | ||
@@ -16,2 +17,13 @@ const datasetSymbol = Symbol.for("dataset"); | ||
focus() { | ||
if (this.disabled) return; | ||
const focusEvent = new Event("focus", { bubbles: true }); | ||
this.dispatchEvent(focusEvent); | ||
} | ||
blur() { | ||
const focusEvent = new Event("blur", { bubbles: true }); | ||
this.dispatchEvent(focusEvent); | ||
} | ||
get dataset() { | ||
@@ -18,0 +30,0 @@ return this[datasetSymbol]; |
"use strict"; | ||
const {atob, btoa} = require("./atobtoa"); | ||
const {Event, CustomEvent} = require("./Events"); | ||
const {Event, CustomEvent, KeyboardEvent} = require("./Events"); | ||
const {EventEmitter} = require("events"); | ||
@@ -141,2 +141,5 @@ const {performance} = require("perf_hooks"); | ||
} | ||
get KeyboardEvent() { | ||
return KeyboardEvent; | ||
} | ||
get CustomEvent() { | ||
@@ -143,0 +146,0 @@ return CustomEvent; |
{ | ||
"name": "@expressen/tallahassee", | ||
"version": "14.7.0", | ||
"version": "14.8.0", | ||
"description": "Lightweight client testing framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124143
3823