@rip-lang/ui 0.3.42 → 0.3.44
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.
package/components/combobox.rip
CHANGED
|
@@ -40,9 +40,8 @@ export Combobox = component
|
|
|
40
40
|
|
|
41
41
|
onFocusin: -> @openMenu()
|
|
42
42
|
|
|
43
|
-
onFocusout:
|
|
44
|
-
unless @_content?.contains(
|
|
45
|
-
@close()
|
|
43
|
+
onFocusout: ->
|
|
44
|
+
setTimeout => @close() unless @_content?.contains(document.activeElement), 0
|
|
46
45
|
|
|
47
46
|
openMenu: ->
|
|
48
47
|
open = true
|
|
@@ -73,7 +72,6 @@ export Combobox = component
|
|
|
73
72
|
@query = val
|
|
74
73
|
@emit 'select', val
|
|
75
74
|
@close()
|
|
76
|
-
@_input?.blur()
|
|
77
75
|
|
|
78
76
|
_nextEnabled: (from, dir) ->
|
|
79
77
|
opts = @getItems()
|
|
@@ -95,8 +93,7 @@ export Combobox = component
|
|
|
95
93
|
dismiss: => if open then @close() else @query = ''
|
|
96
94
|
tab: => @close()
|
|
97
95
|
|
|
98
|
-
~>
|
|
99
|
-
ARIA.popupDismiss open, @_list, (=> @close()), [@_content]
|
|
96
|
+
~> ARIA.popupDismiss open, (=> @_list), (=> @close()), [=> @_content]
|
|
100
97
|
|
|
101
98
|
render
|
|
102
99
|
. ref: "_content", $open: open?!
|
package/components/menu.rip
CHANGED
|
@@ -64,11 +64,13 @@ export MultiSelect = component
|
|
|
64
64
|
|
|
65
65
|
onFocusin: -> open = true
|
|
66
66
|
|
|
67
|
-
onFocusout:
|
|
68
|
-
|
|
67
|
+
onFocusout: ->
|
|
68
|
+
setTimeout =>
|
|
69
|
+
return if @_content?.contains(document.activeElement)
|
|
69
70
|
open = false
|
|
70
71
|
query = ''
|
|
71
72
|
highlightedIndex = -1
|
|
73
|
+
, 0
|
|
72
74
|
|
|
73
75
|
_position: ->
|
|
74
76
|
return unless @_input and @_list
|
package/components/select.rip
CHANGED
|
@@ -117,8 +117,7 @@ export Select = component
|
|
|
117
117
|
@_list.style.top = "#{tr.top - fl.height - 4}px"
|
|
118
118
|
@_list.style.visibility = 'visible'
|
|
119
119
|
|
|
120
|
-
~>
|
|
121
|
-
ARIA.popupDismiss open, @_list, (=> @close()), [@_trigger]
|
|
120
|
+
~> ARIA.popupDismiss open, (=> @_list), (=> @close()), [=> @_trigger]
|
|
122
121
|
|
|
123
122
|
render
|
|
124
123
|
.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.44",
|
|
4
4
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"type": "module",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"rip-lang": ">=3.13.
|
|
38
|
+
"rip-lang": ">=3.13.98"
|
|
39
39
|
}
|
|
40
40
|
}
|