rsence-pre 3.0.0.6 → 3.0.0.7

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: 04007e333814868e82a87b423d5a55ee5f411d9f
4
- data.tar.gz: 135c7d9ab384cc0a5a90d81d7f6fba1757864ff8
3
+ metadata.gz: f9e67ee3d79ed1c1533a87cf9aa0b67fe7d10cb3
4
+ data.tar.gz: 137fd0c7ebdaa1bc67819d4e60f71e053c139fcd
5
5
  SHA512:
6
- metadata.gz: 53eb640329904169ba5585a7ecd781742f1cf1fbbf6d251369d62b84cdb62e47ddefb02fbe7fe34cfbca742ed87a2f3240bf3720f26c0c46fd6f1096a2ccd057
7
- data.tar.gz: 90febdd9363b38547ce3f12fcb540e78e6e63c1ab20a22dc26e97d1f823f6b5b86b394ad0dce7538688c6851692b8553c6edcd6d9c6b260e56320c4508d5efad
6
+ metadata.gz: 9e7a49a8227d396e2c0126fcc85af7f4f8e53e8d272f8181e6d9c1cfe09df959b8d94b46776990bc300c8495be96ccfa7ef737a3a9a458afbbbc6062ad1978ff
7
+ data.tar.gz: 31087cdeaf8159802eb1a63e59bd325be991e8afcc621268889cf3f5afc8a55028b3b423b0bfb01bac58d946d698efeec51c0a3954577c7f51f688c66acd12aa
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.6.pre
1
+ 3.0.0.7.pre
@@ -16,13 +16,13 @@
16
16
  border: 1px solid #e0e0e0;
17
17
  border-top: 0; border-left: 0;
18
18
  box-shadow: 0px 0px 3px #333;
19
- #{this.gradientCSS('#fcfcfc',[45,'#fff'],[55,'#fdfdfd'],[75,'#f3f3f3'],'#f0f0f0')}
19
+ #{this.gradientCSS('#fcfcfc',[45,'#ffffff'],[55,'#fdfdfd'],[75,'#f3f3f3'],'#f0f0f0')}
20
20
  }
21
21
  .default.disabled > .button_control > .button_bg {
22
22
  border-color: #ddd;
23
23
  box-shadow: 0px 0px 3px #666;
24
24
  opacity: 0.75;
25
- #{this.gradientCSS('#d6d6d6',[66,'#d0d0d0'],[71,'#d3d3d3'],'#ccc')}
25
+ #{this.gradientCSS('#d6d6d6',[66,'#d0d0d0'],[71,'#d3d3d3'],'#cccccc')}
26
26
  }
27
27
  .default > .button_control > .button_label {
28
28
  left: 6px; right: 6px; top: 2px; bottom: auto;
@@ -40,7 +40,7 @@
40
40
  }
41
41
  .default.enabled > .button_control:hover > .button_bg {
42
42
  box-shadow: 0px 0px 3px #000;
43
- #{this.gradientCSS('#f6f6f6',[66,'#fff'],[71,'#fcfcfc'],'#f0f0f0')}
43
+ #{this.gradientCSS('#f6f6f6',[66,'#ffffff'],[71,'#fcfcfc'],'#f0f0f0')}
44
44
  }
45
45
  .default.enabled > .button_control:hover > .button_label {
46
46
  color: #000;
@@ -49,7 +49,7 @@
49
49
  border: 1px solid #fff;
50
50
  border-bottom: 0; border-right: 0;
51
51
  box-shadow: 0px 0px 3px #000;
52
- #{this.gradientCSS('#e6e6e6',[29,'#f0f0f0'],[33,'#f6f6f6'],'#fff')}
52
+ #{this.gradientCSS('#e6e6e6',[29,'#f0f0f0'],[33,'#f6f6f6'],'#ffffff')}
53
53
  }
54
54
  .default.enabled > .button_control:active > .button_label {
55
55
  color: #000;
@@ -1,5 +1,5 @@
1
1
  <div class="button_control" id="control]I[">
2
- <div class="button_bg" id="bg]I["></div>
2
+ <div class="button_bg" id="bg]I[" #{BROWSER_TYPE.ie9?'style="filter:none;"':''}></div>
3
3
  <div class="button_label" id="label]I[">#{this.label}</div>
4
4
  </div>
5
5
  ${#!coffee
@@ -799,6 +799,7 @@ ELEM = HClass.extend
799
799
  _steps.push "#{_step[1]} #{_step[0]}%"
800
800
  _steps.push "#{_endColor} 100%"
801
801
  return _steps
802
+ _gradientIdCount: 0
802
803
  _linearGradientStyle: (_gradient)->
803
804
  # IE6-8
804
805
  if BROWSER_TYPE.ie7 or BROWSER_TYPE.ie8
@@ -809,17 +810,19 @@ ELEM = HClass.extend
809
810
  # IE9 SVG, needs conditional override of 'filter' to 'none'
810
811
  # Also static white-shaded svg, needs a svg source to base64 utility
811
812
  _key = 'background'
812
- _svg = '<?xml version="1.0" ?>'
813
- _svg += '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none">'
814
- _svg += '<linearGradient id="gradientie9" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="0%" y2="100%">'
815
- _svg += """<stop offset="0%" stop-color="##{_gradient.start}" />"""
813
+ _svg = """<?xml version="1.0" ?>"""
814
+ _svg += '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">'
815
+ _svg += """<defs><linearGradient id="gradientie#{@_gradientIdCount}" x1="0%" y1="0%" x2="0%" y2="100%">"""
816
+ _svg += """<stop offset="0%" stop-color="#{_gradient.start}" />"""
817
+ _svgSteps = ''
816
818
  for _step in _gradient.steps
817
- _svg += """<stop offset="#{_step[0]}%" stop-color="##{_step[1]}" />"""
818
- _svg += """<stop offset="100%" stop-color="##{_gradient.end}" />"""
819
- # _svg += _svgSteps.join('')
820
- _svg += '</linearGradient>'
821
- _svg += '<rect x="0" y="0" width="1" height="1" fill="url(#gradientie9)" />'
819
+ _svgSteps += """<stop offset="#{_step[0]}%" stop-color="#{_step[1]}" />"""
820
+ _svg += _svgSteps
821
+ _svg += """<stop offset="100%" stop-color="#{_gradient.end}" />"""
822
+ _svg += '</linearGradient></defs>'
823
+ _svg += """<rect width="100%" height="100%" fill="url(#gradientie#{@_gradientIdCount})" />"""
822
824
  _svg += '</svg>'
825
+ @_gradientIdCount++
823
826
  _svg64 = @sha.str2Base64(_svg)
824
827
  _value = "url(data:image/svg+xml;base64,#{_svg64})"
825
828
  else if BROWSER_TYPE.ie10
@@ -873,9 +876,8 @@ ELEM = HClass.extend
873
876
  _browserType.ie8 = !!~_ua.indexOf('MSIE 8')
874
877
  _browserType.ie9 = !!~_ua.indexOf('MSIE 9')
875
878
  _browserType.ie10 = !!~_ua.indexOf('MSIE 10')
876
- unless _browserType.ie9
877
- @sha = SHA.new(8) # SHA1 needed for IE9/10 SVG base64 encoding
878
- # _browserType.ie9 = _browserType.ie10 # IE 10 is treated like IE 9
879
+ if _browserType.ie9
880
+ @sha = SHA.new(16) # SHA1 needed for IE9 SVG base64 encoding
879
881
  _browserType.mac = !!~_ua.indexOf('Macintosh')
880
882
  _browserType.win = !!~_ua.indexOf('Windows')
881
883
  _browserType.firefox = !!~_ua.indexOf('Firefox')
@@ -40,7 +40,7 @@ Event = {
40
40
  **/
41
41
  isLeftClick: function(e) {
42
42
  // IE: left 1, middle 4, right 2
43
- if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie9 && !BROWSER_TYPE.ie10) {
43
+ if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie8 && !BROWSER_TYPE.ie9 && !BROWSER_TYPE.ie10) {
44
44
  return (e.button === 1 || e.button === 3 || e.button === 5);
45
45
  }
46
46
  else {
@@ -804,6 +804,7 @@ EventManagerApp = HApplication.extend
804
804
  for _child in _elem.childNodes
805
805
  for _className in _ieClassNames
806
806
  _addClassName(_elem) if _hasClassName(_elem,_className) and not _hasClassName(_elem,'ieActive')
807
+ continue if _child.view_id?
807
808
  _level += 1
808
809
  _patcher(_child)
809
810
  _level -= 1
@@ -970,6 +971,7 @@ EventManagerApp = HApplication.extend
970
971
  Event.stop(e) if _stop
971
972
  ), 50
972
973
  )
974
+ @_ieClassNameUnPatch() if BROWSER_TYPE.ie and @_ieClassNamePatched.length
973
975
  Event.stop(e) if _stop
974
976
  #
975
977
  # Handles doubleClick events
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.6
4
+ version: 3.0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riassence Inc.