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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cefe6f2c608c23d8766f9486af61a85b8eafaf82
4
- data.tar.gz: 1d1e4d78b2d6bb847c56b77d47907f956b0991f4
3
+ metadata.gz: 3288dc02b31c88e6e99f7d47beba2e01d7ec4f2e
4
+ data.tar.gz: 89f554782002b6f03dc210431323a90c6868fb20
5
5
  SHA512:
6
- metadata.gz: e1fb32b6e89077e61bcc2a060df81d78ce7c8d77bc6f23fc404957fa9c67f5895d82e57b297706cf17fbacd0e17ac4d848f2bd5dac5f1bd0b7677c7ed9656785
7
- data.tar.gz: 6d600e74f2c4561f51967fcfbcf8f5352fe9776971048a53870eea524c29c0a31750a2bd93a5b0eceb7d6c7fc3d861ec9e8d09d56a5b25ce16829ce1ee84fb1a
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()
@@ -1,3 +1,3 @@
1
1
  module TaoUi
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
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.2
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-10-22 00:00:00.000000000 Z
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.11
255
+ rubygems_version: 2.6.14
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Tao UI