hyalite 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d037e719b60039ec6bdaa94b3e7f28fcf848fead
4
- data.tar.gz: 548bb439f52ab2b0699a4131a50a4d2d19e41919
3
+ metadata.gz: 457eb704a31d41e73a5235391120770f68ac791b
4
+ data.tar.gz: 94950a6d96eac256e7aa40a19dba7f37289ead88
5
5
  SHA512:
6
- metadata.gz: 342324f7558409e4f5984573f813c4f6e22ce8294c22895d3db299b791602b380585c5761a39f8c9b550991114684e7488f09e63ae594be111a74c0e52fc0db4
7
- data.tar.gz: 201317a4e07a2f179eb2db2157fc87c78b1b58f2e1f19b9af1f08205de6bd4e4d66d4d52133b437743b2e9fc38c5033eac79e9e19936dc4eb5314e54b5b8978a
6
+ metadata.gz: f97e7dcd1667fe813a0aeac8e5d82c542e317e9ab5f5b110baea10f1fec81fcbc5bc5d43c22868e7ac5ae6f8e130e85e5fbc69526dc409f8774dcd754be179cd
7
+ data.tar.gz: d17d1e1f0f5b1585ab7302d6cf11d4b87d6a51fab2a0d5bf65816467ebca6fde68f867c86e48aa812f13e3b59e97b3eade824b4c869dd67a3ff804dbef892523
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hyalite (0.2.2)
4
+ hyalite (0.2.4)
5
5
  opal
6
6
 
7
7
  GEM
@@ -27,6 +27,8 @@ module Hyalite
27
27
  topDragStart: 'dragstart',
28
28
  topDrop: 'drop',
29
29
  topFocus: 'focus',
30
+ topFocusIn: 'focusin',
31
+ topFocusOut: 'focusout',
30
32
  topInput: 'input',
31
33
  topKeyDown: 'keydown',
32
34
  topKeyPress: 'keypress',
@@ -0,0 +1,14 @@
1
+ module Hyalite
2
+ module Dom
3
+ module Event
4
+ class FocusEvent
5
+ include Native
6
+ include Event
7
+
8
+ def related_target
9
+ Node.create(`#@native.relatedTarget`)
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -68,7 +68,7 @@ module Hyalite
68
68
  end
69
69
 
70
70
  def related_target
71
- `#@native.relatedTarget`
71
+ Node.create(`#@native.relatedTarget`)
72
72
  end
73
73
 
74
74
  def modifire_state
@@ -91,6 +91,18 @@ module Hyalite
91
91
  captured: :onFocusCapture
92
92
  }
93
93
  },
94
+ focusin: {
95
+ phasedRegistrationNames: {
96
+ bubbled: :onFocusIn,
97
+ captured: :onFocusInCapture
98
+ }
99
+ },
100
+ focusout: {
101
+ phasedRegistrationNames: {
102
+ bubbled: :onFocusOut,
103
+ captured: :onFocusOutCapture
104
+ }
105
+ },
94
106
  input: {
95
107
  phasedRegistrationNames: {
96
108
  bubbled: :onInput,
@@ -230,6 +242,8 @@ module Hyalite
230
242
  topDrop: EVENT_TYPES[:drop],
231
243
  topError: EVENT_TYPES[:error],
232
244
  topFocus: EVENT_TYPES[:focus],
245
+ topFocusIn: EVENT_TYPES[:focusin],
246
+ topFocusOut: EVENT_TYPES[:focusout],
233
247
  topInput: EVENT_TYPES[:input],
234
248
  topKeyDown: EVENT_TYPES[:keyDown],
235
249
  topKeyPress: EVENT_TYPES[:keyPress],
@@ -1,3 +1,3 @@
1
1
  module Hyalite
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyalite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - youchan
@@ -87,6 +87,7 @@ files:
87
87
  - lib/hyalite/dom/event.rb
88
88
  - lib/hyalite/dom/event/data_transfer.rb
89
89
  - lib/hyalite/dom/event/drag_event.rb
90
+ - lib/hyalite/dom/event/focus_event.rb
90
91
  - lib/hyalite/dom/event/keyboard_event.rb
91
92
  - lib/hyalite/dom/event/mouse_event.rb
92
93
  - lib/hyalite/dom/event/mouse_event_interface.rb