pyk 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzdmMjMyZWFlMzRkMzc3ZTA3ODA2NTJmYjNmMTcyNTExY2FhMjEyYw==
4
+ MzBhNjhjNzBmYWIzZmY1YzI5Mjg0MzBhZTgxOTk2ZGVkMTQyOGRlMA==
5
5
  data.tar.gz: !binary |-
6
- MjVjYzVkYzZiYWI0NDFjYmU1YmQ1YjkyMTE2OGFjY2I4OWYwNDI1Ng==
6
+ MDM2NDE1NzNkYTljMGY3M2ZlNjc2ZTc1OWNlZDk2NDhlNTIzMzA3MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmFlN2JhM2NlYTNlMzQ0YWQzMmQ3MDliZTI3NTE5Y2MwZWM1ZWJjOTg5NzNl
10
- ZmI5OGJhY2E0NWYzODk2Y2NjODdlYTNhODkwZjA0ZmI1MmJhMTJjZjI2MDI5
11
- NGNkZDY5YzJhMWIxZTVhYzBjMDI4ZDk2YzA5ZmU2ZDkxNWZkNjE=
9
+ NTgwNDljZmY1YjQxNjNmOWFhYWJhNmFkNTkyZjZiNDEyOGYwMmFkZWFjMGVj
10
+ NzYxYmFlYWU3YmVjOTEzNmIzMjRhNGM4OTQyOTA0ZTg2NDExODhhZWNhMDIy
11
+ ZDU0ZDk4MmJhYmFiZmY3YWU2YmM3OGY5NWM1NzE2MWQ4MDZjMzc=
12
12
  data.tar.gz: !binary |-
13
- OTUyM2ViYzJkODkwOTFmNWQ1YmZkMWY0NzgwY2ZiMTg3YTU1NGYxNzcyMmUw
14
- NDc1MGRmYTFlZTdiN2JhMmY0ZWJlMGNjMjI0ZWFlNTM4ZTBlOGYzNjdiNDUy
15
- ZDk2NjAyZDA3MzYwNzM1OGQ3OWM4ZTM4NDZjZTAwMjBiYmZmNzU=
13
+ YjliN2ViZjJmMTIxM2FmZjI2YzFlNTlkNTQ3NTMwZjQwM2IzOGMzMDZlNzg4
14
+ NmYyZGEwZTZhMTYzOWMxMWY4ZTdiZTU1MzljZTBiNTBiNDdhZmEyZGY1ZGVh
15
+ YjBhZDEzNTdkNTFiZjZlMzFlZmNiOTdkNTYxNmY4ODhhZWE2NGI=
@@ -2,5 +2,4 @@
2
2
  @import "pyk/helpers";
3
3
  @import "pyk/sprites";
4
4
  @import "pyk/user_card";
5
- @import "pyk/chardinjs";
6
5
  @import "pyk/pyk_master";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pykih Software LLP
@@ -118,11 +118,9 @@ files:
118
118
  - app/assets/javascripts/app/pyk_master_prateek.js
119
119
  - app/assets/javascripts/pyk.js
120
120
  - app/assets/javascripts/vendor/bootstrap.min.js
121
- - app/assets/javascripts/vendor/chardinjs.min.js
122
121
  - app/assets/javascripts/vendor/jquery.sparkline.min.js
123
122
  - app/assets/javascripts/vendor/tinycon.min.js
124
123
  - app/assets/stylesheets/pyk/bootstrap.min.css
125
- - app/assets/stylesheets/pyk/chardinjs.css
126
124
  - app/assets/stylesheets/pyk/helpers.css.scss
127
125
  - app/assets/stylesheets/pyk/pyk_master.css
128
126
  - app/assets/stylesheets/pyk/sprites.css.scss
@@ -1,2 +0,0 @@
1
- // Generated by CoffeeScript 1.6.2
2
- (function(){var e=[].slice;(function(t,n){var r;return r=function(){function e(e){var r=this;this.$el=t(e),t(n).resize(function(){return r.refresh()})}return e.prototype.start=function(){var e,t,n,r;if(this._overlay_visible())return!1;this._add_overlay_layer(),r=this.$el.find("*[data-intro]");for(t=0,n=r.length;t<n;t++)e=r[t],this._show_element(e);return this.$el.trigger("chardinJs:start")},e.prototype.toggle=function(){return this._overlay_visible()?this.stop():this.start()},e.prototype.refresh=function(){var e,t,n,r,i;if(this._overlay_visible()){r=this.$el.find("*[data-intro]"),i=[];for(t=0,n=r.length;t<n;t++)e=r[t],i.push(this._position_helper_layer(e));return i}return this},e.prototype.stop=function(){return this.$el.find(".chardinjs-overlay").fadeOut(function(){return t(this).remove()}),this.$el.find(".chardinjs-helper-layer").remove(),this.$el.find(".chardinjs-show-element").removeClass("chardinjs-show-element"),this.$el.find(".chardinjs-relative-position").removeClass("chardinjs-relative-position"),n.removeEventListener?n.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),this.$el.trigger("chardinJs:stop")},e.prototype._overlay_visible=function(){return this.$el.find(".chardinjs-overlay").length!==0},e.prototype._add_overlay_layer=function(){var e,t,n,r=this;return this._overlay_visible()?!1:(t=document.createElement("div"),n="",t.className="chardinjs-overlay",this.$el.prop("tagName")==="BODY"?(n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",t.setAttribute("style",n)):(e=this._get_offset(this.$el.get()[0]),e&&(n+="width: "+e.width+"px; height:"+e.height+"px; top:"+e.top+"px;left: "+e.left+"px;",t.setAttribute("style",n))),this.$el.get()[0].appendChild(t),t.onclick=function(){return r.stop()},setTimeout(function(){return n+="opacity: .8;",t.setAttribute("style",n)},10))},e.prototype._get_position=function(e){return e.getAttribute("data-position")||"bottom"},e.prototype._place_tooltip=function(e){var n,r,i,s,o,u,a;u=t(e).data("tooltip_layer"),a=this._get_offset(u),u.style.top=null,u.style.right=null,u.style.bottom=null,u.style.left=null;switch(this._get_position(e)){case"top":case"bottom":i=this._get_offset(e),o=i.width,r=t(u).width(),u.style.left=""+(o/2-a.width/2)+"px";break;case"left":case"right":i=this._get_offset(e),s=i.height,n=t(u).height(),u.style.top=""+(s/2-a.height/2)+"px"}switch(this._get_position(e)){case"left":return u.style.left="-"+(a.width-34)+"px";case"right":return u.style.right="-"+(a.width-34)+"px";case"bottom":return u.style.bottom="-"+a.height+"px";case"top":return u.style.top="-"+a.height+"px"}},e.prototype._position_helper_layer=function(e){var n,r;return r=t(e).data("helper_layer"),n=this._get_offset(e),r.setAttribute("style","width: "+n.width+"px; height:"+n.height+"px; top:"+n.top+"px; left: "+n.left+"px;")},e.prototype._show_element=function(e){var n,r,i,s;r=this._get_offset(e),i=document.createElement("div"),s=document.createElement("div"),t(e).data("helper_layer",i).data("tooltip_layer",s),e.id&&i.setAttribute("data-id",e.id),i.className="chardinjs-helper-layer chardinjs-"+this._get_position(e),this._position_helper_layer(e),this.$el.get()[0].appendChild(i),s.className="chardinjs-tooltip chardinjs-"+this._get_position(e),s.innerHTML="<div class='chardinjs-tooltiptext'>"+e.getAttribute("data-intro")+"</div>",i.appendChild(s),this._place_tooltip(e),e.className+=" chardinjs-show-element",n="",e.currentStyle?n=e.currentStyle.position:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue("position")),n=n.toLowerCase();if(n!=="absolute"&&n!=="relative")return e.className+=" chardinjs-relative-position"},e.prototype._get_offset=function(e){var t,n,r;t={width:e.offsetWidth,height:e.offsetHeight},n=0,r=0;while(e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop))n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return t.top=r,t.left=n,t},e}(),t.fn.extend({chardinJs:function(){var n,i,s,o;return o=arguments[0],i=2<=arguments.length?e.call(arguments,1):[],n=t(this[0]),s=n.data("chardinJs"),s||n.data("chardinJs",s=new r(this,o)),typeof o=="string"&&s[o].apply(s,i),s}})})(window.jQuery,window)}).call(this);
@@ -1,82 +0,0 @@
1
- .chardinjs-overlay {
2
- position: absolute;
3
- z-index: 999999;
4
- background-color: #000;
5
- opacity: 0;
6
- -webkit-transition: all 0.3s ease-out;
7
- -moz-transition: all 0.3s ease-out;
8
- -ms-transition: all 0.3s ease-out;
9
- -o-transition: all 0.3s ease-out;
10
- transition: all 0.3s ease-out; }
11
-
12
- .chardinjs-helper-layer {
13
- position: absolute;
14
- z-index: 9999998;
15
- color: white;
16
- -webkit-transition: all 0.3s ease-out;
17
- -moz-transition: all 0.3s ease-out;
18
- -ms-transition: all 0.3s ease-out;
19
- -o-transition: all 0.3s ease-out;
20
- transition: all 0.3s ease-out; }
21
- .chardinjs-helper-layer.chardinjs-left {
22
- border-left: solid white 1px;
23
- margin-left: -10px; }
24
- .chardinjs-helper-layer.chardinjs-right {
25
- border-right: solid white 1px;
26
- padding-right: 10px; }
27
- .chardinjs-helper-layer.chardinjs-bottom {
28
- border-bottom: solid white 1px;
29
- padding-bottom: 10px; }
30
- .chardinjs-helper-layer.chardinjs-top {
31
- border-top: solid white 1px;
32
- padding-top: 10px; }
33
-
34
- .chardinjs-tooltip {
35
- position: absolute;
36
- -webkit-transition: opacity 0.1s ease-out;
37
- -moz-transition: opacity 0.1s ease-out;
38
- -ms-transition: opacity 0.1s ease-out;
39
- -o-transition: opacity 0.1s ease-out;
40
- transition: opacity 0.1s ease-out;
41
- max-width: 200px; }
42
- .chardinjs-tooltip.chardinjs-left {
43
- margin-left: -135px;
44
- padding-right: 10px; }
45
- .chardinjs-tooltip.chardinjs-right {
46
- margin-right: -135px;
47
- padding-left: 10px; }
48
- .chardinjs-tooltip.chardinjs-bottom {
49
- margin-bottom: -50px;
50
- padding-top: 10px; }
51
- .chardinjs-tooltip.chardinjs-top {
52
- margin-top: -50px;
53
- padding-bottom: 10px; }
54
- .chardinjs-tooltip.chardinjs-right:before, .chardinjs-tooltip.chardinjs-left:after, .chardinjs-tooltip.chardinjs-bottom:before, .chardinjs-tooltip.chardinjs-top:after {
55
- content: ".";
56
- display: inline-block;
57
- background-color: white;
58
- height: 1px;
59
- overflow: hidden;
60
- position: absolute; }
61
- .chardinjs-tooltip.chardinjs-right:before, .chardinjs-tooltip.chardinjs-left:after {
62
- width: 100px;
63
- top: 50%; }
64
- .chardinjs-tooltip.chardinjs-bottom:before, .chardinjs-tooltip.chardinjs-top:after {
65
- width: 1px;
66
- height: 50px;
67
- left: 50%; }
68
- .chardinjs-tooltip.chardinjs-bottom:before {
69
- top: -50px; }
70
- .chardinjs-tooltip.chardinjs-top:after {
71
- bottom: -50px; }
72
- .chardinjs-tooltip.chardinjs-right:before {
73
- left: -100px; }
74
- .chardinjs-tooltip.chardinjs-left:after {
75
- right: -100px; }
76
-
77
- .chardinjs-show-element {
78
- z-index: 9999999;
79
- opacity: 0.8; }
80
-
81
- .chardinjs-relative-position {
82
- position: relative; }