ad2games-ui_components 2.1.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ui_components.js.erb +1 -0
  3. data/app/assets/stylesheets/a2g_ui_components.scss +2 -0
  4. data/app/assets/stylesheets/variables.scss +2 -2
  5. data/lib/tasks/styleguide.rake +1 -1
  6. data/lib/ui_components/engine.rb +1 -0
  7. data/lib/ui_components/version.rb +1 -1
  8. data/vendor/assets/bower_components/chosen/README.md +35 -0
  9. data/vendor/assets/bower_components/chosen/bower.json +13 -17
  10. data/vendor/assets/bower_components/chosen/chosen.css +2 -3
  11. data/vendor/assets/bower_components/chosen/chosen.jquery.js +8 -23
  12. data/vendor/assets/bower_components/chosen/package.json +48 -0
  13. data/vendor/assets/bower_components/jquery/dist/jquery.js +9 -37
  14. data/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  15. data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  16. data/vendor/assets/bower_components/jquery/{sizzle → external/sizzle}/LICENSE.txt +0 -0
  17. data/vendor/assets/bower_components/jquery/{sizzle → external/sizzle}/dist/sizzle.js +0 -0
  18. data/vendor/assets/bower_components/jquery/{sizzle → external/sizzle}/dist/sizzle.min.js +0 -0
  19. data/vendor/assets/bower_components/jquery/{sizzle → external/sizzle}/dist/sizzle.min.map +0 -0
  20. data/vendor/assets/bower_components/jquery/src/ajax/load.js +1 -1
  21. data/vendor/assets/bower_components/jquery/src/css.js +0 -13
  22. data/vendor/assets/bower_components/jquery/src/event.js +4 -3
  23. data/vendor/assets/bower_components/jquery/src/event/trigger.js +1 -17
  24. metadata +41 -33
  25. data/app/assets/javascripts/ui_components/toolbar.coffee +0 -5
  26. data/app/assets/stylesheets/default_theme/button.scss +0 -191
  27. data/app/assets/stylesheets/default_theme/common.scss +0 -15
  28. data/app/assets/stylesheets/default_theme/footer.scss +0 -7
  29. data/app/assets/stylesheets/default_theme/form.scss +0 -72
  30. data/app/assets/stylesheets/default_theme/navbar.scss +0 -61
  31. data/app/assets/stylesheets/default_theme/table.scss +0 -68
  32. data/app/assets/stylesheets/default_theme/toolbar.scss +0 -199
  33. data/vendor/assets/bower_components/jquery/dist/jquery.slim.js +0 -7877
  34. data/vendor/assets/bower_components/jquery/dist/jquery.slim.min.js +0 -4
  35. data/vendor/assets/bower_components/jquery/dist/jquery.slim.min.map +0 -1
  36. data/vendor/assets/bower_components/jquery/src/core/DOMEval.js +0 -14
  37. data/vendor/assets/bower_components/jquery/src/core/support.js +0 -18
  38. data/vendor/assets/bower_components/jquery/src/data/accepts.js +0 -20
  39. data/vendor/assets/bower_components/jquery/src/data/support.js +0 -23
  40. data/vendor/assets/bower_components/jquery/src/deferred/exceptionHook.js +0 -19
  41. data/vendor/assets/bower_components/jquery/src/effects/support.js +0 -58
  42. data/vendor/assets/bower_components/jquery/src/manipulation/createSafeFragment.js +0 -20
  43. data/vendor/assets/bower_components/jquery/src/manipulation/var/nodeNames.js +0 -5
  44. data/vendor/assets/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
  45. data/vendor/assets/bower_components/jquery/src/support.js +0 -63
  46. data/vendor/assets/bower_components/jquery/src/var/deletedIds.js +0 -3
@@ -593,13 +593,14 @@ jQuery.Event.prototype = {
593
593
  isDefaultPrevented: returnFalse,
594
594
  isPropagationStopped: returnFalse,
595
595
  isImmediatePropagationStopped: returnFalse,
596
+ isSimulated: false,
596
597
 
597
598
  preventDefault: function() {
598
599
  var e = this.originalEvent;
599
600
 
600
601
  this.isDefaultPrevented = returnTrue;
601
602
 
602
- if ( e ) {
603
+ if ( e && !this.isSimulated ) {
603
604
  e.preventDefault();
604
605
  }
605
606
  },
@@ -608,7 +609,7 @@ jQuery.Event.prototype = {
608
609
 
609
610
  this.isPropagationStopped = returnTrue;
610
611
 
611
- if ( e ) {
612
+ if ( e && !this.isSimulated ) {
612
613
  e.stopPropagation();
613
614
  }
614
615
  },
@@ -617,7 +618,7 @@ jQuery.Event.prototype = {
617
618
 
618
619
  this.isImmediatePropagationStopped = returnTrue;
619
620
 
620
- if ( e ) {
621
+ if ( e && !this.isSimulated ) {
621
622
  e.stopImmediatePropagation();
622
623
  }
623
624
 
@@ -148,6 +148,7 @@ jQuery.extend( jQuery.event, {
148
148
  },
149
149
 
150
150
  // Piggyback on a donor event to simulate a different one
151
+ // Used only for `focus(in | out)` events
151
152
  simulate: function( type, elem, event ) {
152
153
  var e = jQuery.extend(
153
154
  new jQuery.Event(),
@@ -155,27 +156,10 @@ jQuery.extend( jQuery.event, {
155
156
  {
156
157
  type: type,
157
158
  isSimulated: true
158
-
159
- // Previously, `originalEvent: {}` was set here, so stopPropagation call
160
- // would not be triggered on donor event, since in our own
161
- // jQuery.event.stopPropagation function we had a check for existence of
162
- // originalEvent.stopPropagation method, so, consequently it would be a noop.
163
- //
164
- // But now, this "simulate" function is used only for events
165
- // for which stopPropagation() is noop, so there is no need for that anymore.
166
- //
167
- // For the 1.x branch though, guard for "click" and "submit"
168
- // events is still used, but was moved to jQuery.event.stopPropagation function
169
- // because `originalEvent` should point to the original event for the constancy
170
- // with other events and for more focused logic
171
159
  }
172
160
  );
173
161
 
174
162
  jQuery.event.trigger( e, null, elem );
175
-
176
- if ( e.isDefaultPrevented() ) {
177
- event.preventDefault();
178
- }
179
163
  }
180
164
 
181
165
  } );
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad2games-ui_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-26 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -235,7 +235,7 @@ dependencies:
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
- name: capybara-webkit
238
+ name: pry-rails
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - ">="
@@ -249,7 +249,7 @@ dependencies:
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
- name: pry-rails
252
+ name: launchy
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="
@@ -263,7 +263,7 @@ dependencies:
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
- name: launchy
266
+ name: datagrid
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - ">="
@@ -277,7 +277,35 @@ dependencies:
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  - !ruby/object:Gem::Dependency
280
- name: datagrid
280
+ name: poltergeist
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: dotenv-rails
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ - !ruby/object:Gem::Dependency
308
+ name: simplecov
281
309
  requirement: !ruby/object:Gem::Requirement
282
310
  requirements:
283
311
  - - ">="
@@ -307,17 +335,9 @@ files:
307
335
  - app/assets/javascripts/ui_components/navbar.coffee
308
336
  - app/assets/javascripts/ui_components/sticky_header.coffee
309
337
  - app/assets/javascripts/ui_components/submit_on_change.coffee
310
- - app/assets/javascripts/ui_components/toolbar.coffee
311
338
  - app/assets/javascripts/ui_components/turbolinks_progressbar.coffee
312
339
  - app/assets/stylesheets/a2g_ui_components.scss
313
- - app/assets/stylesheets/default_theme/button.scss
314
- - app/assets/stylesheets/default_theme/common.scss
315
340
  - app/assets/stylesheets/default_theme/date_selector.scss
316
- - app/assets/stylesheets/default_theme/footer.scss
317
- - app/assets/stylesheets/default_theme/form.scss
318
- - app/assets/stylesheets/default_theme/navbar.scss
319
- - app/assets/stylesheets/default_theme/table.scss
320
- - app/assets/stylesheets/default_theme/toolbar.scss
321
341
  - app/assets/stylesheets/libs.scss
322
342
  - app/assets/stylesheets/ui_components.scss.erb
323
343
  - app/assets/stylesheets/ui_components/checkbox_list.scss
@@ -397,11 +417,13 @@ files:
397
417
  - vendor/assets/bower_components/bootstrap-daterangepicker/examples.html
398
418
  - vendor/assets/bower_components/bootstrap-daterangepicker/package.js
399
419
  - vendor/assets/bower_components/bootstrap-daterangepicker/package.json
420
+ - vendor/assets/bower_components/chosen/README.md
400
421
  - vendor/assets/bower_components/chosen/bower.json
401
422
  - vendor/assets/bower_components/chosen/chosen-sprite.png
402
423
  - vendor/assets/bower_components/chosen/chosen-sprite@2x.png
403
424
  - vendor/assets/bower_components/chosen/chosen.css
404
425
  - vendor/assets/bower_components/chosen/chosen.jquery.js
426
+ - vendor/assets/bower_components/chosen/package.json
405
427
  - vendor/assets/bower_components/highlightjs/LICENSE
406
428
  - vendor/assets/bower_components/highlightjs/Makefile
407
429
  - vendor/assets/bower_components/highlightjs/README.md
@@ -536,13 +558,10 @@ files:
536
558
  - vendor/assets/bower_components/jquery/dist/jquery.js
537
559
  - vendor/assets/bower_components/jquery/dist/jquery.min.js
538
560
  - vendor/assets/bower_components/jquery/dist/jquery.min.map
539
- - vendor/assets/bower_components/jquery/dist/jquery.slim.js
540
- - vendor/assets/bower_components/jquery/dist/jquery.slim.min.js
541
- - vendor/assets/bower_components/jquery/dist/jquery.slim.min.map
542
- - vendor/assets/bower_components/jquery/sizzle/LICENSE.txt
543
- - vendor/assets/bower_components/jquery/sizzle/dist/sizzle.js
544
- - vendor/assets/bower_components/jquery/sizzle/dist/sizzle.min.js
545
- - vendor/assets/bower_components/jquery/sizzle/dist/sizzle.min.map
561
+ - vendor/assets/bower_components/jquery/external/sizzle/LICENSE.txt
562
+ - vendor/assets/bower_components/jquery/external/sizzle/dist/sizzle.js
563
+ - vendor/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.js
564
+ - vendor/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.map
546
565
  - vendor/assets/bower_components/jquery/src/ajax.js
547
566
  - vendor/assets/bower_components/jquery/src/ajax/jsonp.js
548
567
  - vendor/assets/bower_components/jquery/src/ajax/load.js
@@ -561,12 +580,10 @@ files:
561
580
  - vendor/assets/bower_components/jquery/src/attributes/val.js
562
581
  - vendor/assets/bower_components/jquery/src/callbacks.js
563
582
  - vendor/assets/bower_components/jquery/src/core.js
564
- - vendor/assets/bower_components/jquery/src/core/DOMEval.js
565
583
  - vendor/assets/bower_components/jquery/src/core/access.js
566
584
  - vendor/assets/bower_components/jquery/src/core/init.js
567
585
  - vendor/assets/bower_components/jquery/src/core/parseHTML.js
568
586
  - vendor/assets/bower_components/jquery/src/core/ready.js
569
- - vendor/assets/bower_components/jquery/src/core/support.js
570
587
  - vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js
571
588
  - vendor/assets/bower_components/jquery/src/css.js
572
589
  - vendor/assets/bower_components/jquery/src/css/addGetHookIf.js
@@ -584,19 +601,15 @@ files:
584
601
  - vendor/assets/bower_components/jquery/src/css/var/swap.js
585
602
  - vendor/assets/bower_components/jquery/src/data.js
586
603
  - vendor/assets/bower_components/jquery/src/data/Data.js
587
- - vendor/assets/bower_components/jquery/src/data/accepts.js
588
- - vendor/assets/bower_components/jquery/src/data/support.js
589
604
  - vendor/assets/bower_components/jquery/src/data/var/acceptData.js
590
605
  - vendor/assets/bower_components/jquery/src/data/var/dataPriv.js
591
606
  - vendor/assets/bower_components/jquery/src/data/var/dataUser.js
592
607
  - vendor/assets/bower_components/jquery/src/deferred.js
593
- - vendor/assets/bower_components/jquery/src/deferred/exceptionHook.js
594
608
  - vendor/assets/bower_components/jquery/src/deprecated.js
595
609
  - vendor/assets/bower_components/jquery/src/dimensions.js
596
610
  - vendor/assets/bower_components/jquery/src/effects.js
597
611
  - vendor/assets/bower_components/jquery/src/effects/Tween.js
598
612
  - vendor/assets/bower_components/jquery/src/effects/animatedSelector.js
599
- - vendor/assets/bower_components/jquery/src/effects/support.js
600
613
  - vendor/assets/bower_components/jquery/src/event.js
601
614
  - vendor/assets/bower_components/jquery/src/event/ajax.js
602
615
  - vendor/assets/bower_components/jquery/src/event/alias.js
@@ -610,13 +623,10 @@ files:
610
623
  - vendor/assets/bower_components/jquery/src/manipulation.js
611
624
  - vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js
612
625
  - vendor/assets/bower_components/jquery/src/manipulation/buildFragment.js
613
- - vendor/assets/bower_components/jquery/src/manipulation/createSafeFragment.js
614
626
  - vendor/assets/bower_components/jquery/src/manipulation/getAll.js
615
627
  - vendor/assets/bower_components/jquery/src/manipulation/setGlobalEval.js
616
628
  - vendor/assets/bower_components/jquery/src/manipulation/support.js
617
- - vendor/assets/bower_components/jquery/src/manipulation/var/nodeNames.js
618
629
  - vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js
619
- - vendor/assets/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js
620
630
  - vendor/assets/bower_components/jquery/src/manipulation/var/rscriptType.js
621
631
  - vendor/assets/bower_components/jquery/src/manipulation/var/rtagName.js
622
632
  - vendor/assets/bower_components/jquery/src/manipulation/wrapMap.js
@@ -628,7 +638,6 @@ files:
628
638
  - vendor/assets/bower_components/jquery/src/selector-sizzle.js
629
639
  - vendor/assets/bower_components/jquery/src/selector.js
630
640
  - vendor/assets/bower_components/jquery/src/serialize.js
631
- - vendor/assets/bower_components/jquery/src/support.js
632
641
  - vendor/assets/bower_components/jquery/src/traversing.js
633
642
  - vendor/assets/bower_components/jquery/src/traversing/findFilter.js
634
643
  - vendor/assets/bower_components/jquery/src/traversing/var/dir.js
@@ -637,7 +646,6 @@ files:
637
646
  - vendor/assets/bower_components/jquery/src/var/arr.js
638
647
  - vendor/assets/bower_components/jquery/src/var/class2type.js
639
648
  - vendor/assets/bower_components/jquery/src/var/concat.js
640
- - vendor/assets/bower_components/jquery/src/var/deletedIds.js
641
649
  - vendor/assets/bower_components/jquery/src/var/document.js
642
650
  - vendor/assets/bower_components/jquery/src/var/documentElement.js
643
651
  - vendor/assets/bower_components/jquery/src/var/hasOwn.js
@@ -786,7 +794,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
786
794
  version: '0'
787
795
  requirements: []
788
796
  rubyforge_project:
789
- rubygems_version: 2.5.1
797
+ rubygems_version: 2.6.8
790
798
  signing_key:
791
799
  specification_version: 4
792
800
  summary: UI components for ad2games projects
@@ -1,5 +0,0 @@
1
- $ ->
2
- $('.toolbar .checkbox input').change ->
3
- $(this).parents('li.btn').toggleClass('active', this.checked)
4
-
5
- $('.toolbar .checkbox input').trigger('change')
@@ -1,191 +0,0 @@
1
- %btn {
2
- background-clip: padding-box;
3
- transition: background-color .1s ease-out, border-color .1s, color .1s;
4
-
5
- .glyphicon {
6
- padding: 0 2px;
7
- }
8
-
9
- &:active,
10
- &.active,
11
- &:focus,
12
- &.focus,
13
- &:hover,
14
- &.hover,
15
- &:active:focus,
16
- &:active.focus,
17
- &:active:hover,
18
- &:active.hover,
19
- &.active:focus,
20
- &.active.focus,
21
- &.active:hover,
22
- &.active.hover,
23
- .open > &.dropdown-toggle {
24
- // scss-lint:disable ImportantRule
25
- outline: none !important;
26
- box-shadow: none;
27
- }
28
- }
29
-
30
- %btn-default {
31
-
32
- &:hover,
33
- &.hover,
34
- .open > &.dropdown-toggle {
35
- background-color: $btn-default-hover-bg;
36
- border-color: $btn-default-hover-border;
37
- color: $btn-default-hover-color;
38
- }
39
-
40
- &:active,
41
- &.active,
42
- &:focus,
43
- &.focus,
44
- &:active:focus,
45
- &:active.focus,
46
- &.active:focus,
47
- &.active.focus,
48
- &:active:hover,
49
- &.active:hover {
50
- background-color: $btn-default-hover-border;
51
- border-color: $btn-default-hover-border;
52
- color: $white;
53
- }
54
- }
55
-
56
- %btn-primary {
57
-
58
- &:hover,
59
- &.hover,
60
- .open > &.dropdown-toggle {
61
- background-color: $btn-primary-hover-bg;
62
- border-color: $btn-primary-hover-border;
63
- color: $btn-primary-hover-color;
64
- }
65
-
66
- &:active,
67
- &.active,
68
- &:focus,
69
- &.focus,
70
- &:active:focus,
71
- &:active.focus,
72
- &.active:focus,
73
- &.active.focus,
74
- &:active:hover,
75
- &.active:hover {
76
- background-color: darken($btn-primary-hover-bg, 15%);
77
- border-color: $btn-primary-hover-border;
78
- color: $btn-primary-hover-color;
79
- }
80
- }
81
-
82
- %btn-disabled {
83
- border-color: rgba($gray, .3);
84
- color: $gray;
85
- background-color: rgba($gray-light, .3);
86
-
87
- &.active,
88
- &.active.focus,
89
- &.active:focus,
90
- &.focus,
91
- &.focus,
92
- &:active,
93
- &:active.focus,
94
- &:active:focus,
95
- &:active.hover,
96
- &:active:hover,
97
- &:focus,
98
- &:focus,
99
- &:hover {
100
- border-color: rgba($gray, .3);
101
- color: $gray;
102
- background-color: rgba($gray-light, .3);
103
- }
104
- }
105
-
106
- .btn {
107
- @extend %btn;
108
-
109
- svg {
110
- vertical-align: middle;
111
- height: 1.2em;
112
- width: 1.2em;
113
- }
114
-
115
- &.btn-default svg {
116
- fill: $btn-default-color;
117
- }
118
-
119
- &.btn-default:hover svg {
120
- fill: $btn-default-hover-color;
121
- }
122
-
123
- &.btn-default:active svg,
124
- &.btn-default:focus svg {
125
- fill: $btn-default-hover-bg;
126
- }
127
-
128
- &.btn-primary svg {
129
- fill: $btn-primary-color;
130
- }
131
-
132
- &.btn-primary:hover svg,
133
- &.btn-primary:active svg,
134
- &.btn-primary:focus svg {
135
- fill: $btn-primary-hover-color;
136
- }
137
- }
138
-
139
- .btn-default {
140
- @extend %btn-default;
141
- }
142
-
143
- .btn-primary {
144
- @extend %btn-primary;
145
- }
146
-
147
- .btn[disabled],
148
- .btn.disabled {
149
- @extend %btn-disabled;
150
- }
151
-
152
- .input-group-btn {
153
- font-size: $font-size-base;
154
- }
155
-
156
- // list-based button-groups -> ul.btn-group > li > a.btn.btn-default
157
- // scss-lint:disable QualifyingElement
158
- ul.btn-group {
159
- padding: 0;
160
- list-style: none;
161
-
162
- li {
163
- display: block;
164
- float: left;
165
- margin-left: -1px;
166
-
167
- .btn {
168
- border-radius: 0;
169
- }
170
-
171
- &:first-child {
172
- margin-left: 0;
173
-
174
- .btn {
175
- border-radius: $border-radius-base 0 0 $border-radius-base;
176
- }
177
- }
178
-
179
- &:last-child .btn {
180
- border-radius: 0 $border-radius-base $border-radius-base 0;
181
- }
182
- }
183
-
184
- .active > .btn-default {
185
- @extend %btn-default.active;
186
- }
187
-
188
- .active > .btn-primary {
189
- @extend %btn-primary.active;
190
- }
191
- }