tao_ui 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/icons/{loading.svg → Loading.svg} +0 -0
- data/lib/assets/javascripts/tao/ui/dialog/element.coffee +4 -1
- data/lib/assets/javascripts/tao/ui/popover/element.coffee +4 -1
- data/lib/assets/javascripts/tao/ui/shared/slide_box/element/base.coffee +1 -1
- data/lib/tao_ui/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3288dc02b31c88e6e99f7d47beba2e01d7ec4f2e
|
4
|
+
data.tar.gz: 89f554782002b6f03dc210431323a90c6868fb20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc06662259b356194e8c68e83b77562f5e5d1c599baeb0f20ab93a5b14bfa996dfc40997c9efbcbfb78642074e6f51b14ba1999c0e6459241b4fb64fb9d5127
|
7
|
+
data.tar.gz: b84e2af252fd0a2be91f593d8b795f33d84892b89d8ca8d5d900ca4f58fa8afca4b2c04a2176be3d7edb4d6f6fbd0a71296101f68f15fcbb9c3412d28233c8e0
|
File without changes
|
@@ -48,21 +48,24 @@ class Tao.Dialog.Element extends TaoComponent
|
|
48
48
|
|
49
49
|
_beforeActiveChanged: (active) ->
|
50
50
|
if active
|
51
|
+
@namespacedTrigger 'beforeShow'
|
51
52
|
@jq.find('.tao-dialog-content').css
|
52
53
|
maxHeight: $(window).height() - 40
|
53
54
|
@jq.show()
|
54
55
|
@reflow()
|
55
56
|
else
|
57
|
+
@namespacedTrigger 'beforeHide'
|
56
58
|
reset = =>
|
57
59
|
if @autoDestroy
|
58
60
|
@remove()
|
59
61
|
else
|
60
62
|
@jq.hide()
|
63
|
+
@namespacedTrigger 'afterHide'
|
61
64
|
|
62
65
|
if @jq.is(':visible')
|
63
66
|
@on 'transitionend', (e) =>
|
64
|
-
return unless $(e.target).is('.tao-dialog-wrapper')
|
65
67
|
@off 'transitionend'
|
68
|
+
return unless $(e.target).is('.tao-dialog-wrapper')
|
66
69
|
reset()
|
67
70
|
else
|
68
71
|
reset()
|
@@ -67,20 +67,23 @@ class Tao.Popover.Element extends TaoComponent
|
|
67
67
|
return false if @disabled
|
68
68
|
|
69
69
|
if active
|
70
|
+
@namespacedTrigger 'beforeShow'
|
70
71
|
@jq.show()
|
71
72
|
@refresh()
|
72
73
|
@reflow()
|
73
74
|
else
|
75
|
+
@namespacedTrigger 'beforeHide'
|
74
76
|
reset = =>
|
75
77
|
if @autoDestroy
|
76
78
|
@remove()
|
77
79
|
else
|
78
80
|
@jq.hide()
|
81
|
+
@namespacedTrigger 'afterHide'
|
79
82
|
|
80
83
|
if @jq.is(':visible')
|
81
84
|
@on 'transitionend', (e) =>
|
82
|
-
return unless e.target == @
|
83
85
|
@off 'transitionend'
|
86
|
+
return unless e.target == @
|
84
87
|
reset()
|
85
88
|
else
|
86
89
|
reset()
|
@@ -63,8 +63,8 @@ class Tao.SlideBox.ElementBase extends TaoComponent
|
|
63
63
|
# in case the slide box is hidden too fast
|
64
64
|
if @jq.is(':visible')
|
65
65
|
@on 'transitionend', (e) =>
|
66
|
-
return unless $(e.target).is('.slide-box-wrapper')
|
67
66
|
@off 'transitionend'
|
67
|
+
return unless $(e.target).is('.slide-box-wrapper')
|
68
68
|
reset()
|
69
69
|
else
|
70
70
|
reset()
|
data/lib/tao_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tao_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- farthinker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tao_on_rails
|
@@ -125,8 +125,8 @@ files:
|
|
125
125
|
- config/locales/tao_ui/components/slide_box/zh-CN.yml
|
126
126
|
- config/locales/tao_ui/components/tree/en.yml
|
127
127
|
- config/locales/tao_ui/components/tree/zh-CN.yml
|
128
|
+
- lib/assets/icons/Loading.svg
|
128
129
|
- lib/assets/icons/close.svg
|
129
|
-
- lib/assets/icons/loading.svg
|
130
130
|
- lib/assets/javascripts/tao/ui/dialog/confirm.coffee
|
131
131
|
- lib/assets/javascripts/tao/ui/dialog/element.coffee
|
132
132
|
- lib/assets/javascripts/tao/ui/dialog/index.coffee
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.6.
|
255
|
+
rubygems_version: 2.6.14
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Tao UI
|