quantum 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/quantum/version.rb +1 -1
  3. data/vendor/assets/javascripts/alert.js +2 -2
  4. data/vendor/assets/javascripts/collapse.js +2 -2
  5. data/vendor/assets/javascripts/date_picker.js +0 -0
  6. data/vendor/assets/javascripts/dropdown.js +2 -2
  7. data/vendor/assets/javascripts/file_input.js +0 -0
  8. data/vendor/assets/javascripts/map.js +63 -15
  9. data/vendor/assets/javascripts/modal.js +2 -2
  10. data/vendor/assets/javascripts/popover.js +2 -2
  11. data/vendor/assets/javascripts/tab.js +2 -2
  12. data/vendor/assets/javascripts/time_picker.js +0 -0
  13. data/vendor/assets/javascripts/tooltip.js +2 -2
  14. data/vendor/assets/javascripts/transitions.js +2 -2
  15. data/vendor/assets/stylesheets/alert.css.scss +0 -0
  16. data/vendor/assets/stylesheets/breadcrumb.css.scss +1 -1
  17. data/vendor/assets/stylesheets/button.css.scss +0 -0
  18. data/vendor/assets/stylesheets/code.css.scss +7 -5
  19. data/vendor/assets/stylesheets/collapse.css.scss +0 -0
  20. data/vendor/assets/stylesheets/datepicker.css.scss +0 -0
  21. data/vendor/assets/stylesheets/dropdown.css.scss +0 -0
  22. data/vendor/assets/stylesheets/file_input.css.scss +0 -0
  23. data/vendor/assets/stylesheets/footer.css.scss +0 -0
  24. data/vendor/assets/stylesheets/form.css.scss +0 -0
  25. data/vendor/assets/stylesheets/grid.css.scss +1 -0
  26. data/vendor/assets/stylesheets/header.css.scss +1 -1
  27. data/vendor/assets/stylesheets/icon.css.scss +0 -0
  28. data/vendor/assets/stylesheets/image.css.scss +0 -0
  29. data/vendor/assets/stylesheets/label_and_badge.css.scss +0 -0
  30. data/vendor/assets/stylesheets/link.css.scss +4 -4
  31. data/vendor/assets/stylesheets/list.css.scss +0 -0
  32. data/vendor/assets/stylesheets/map.css.scss +0 -0
  33. data/vendor/assets/stylesheets/modal.css.scss +0 -0
  34. data/vendor/assets/stylesheets/pagination.css.scss +0 -0
  35. data/vendor/assets/stylesheets/popover.css.scss +0 -0
  36. data/vendor/assets/stylesheets/progress.css.scss +0 -0
  37. data/vendor/assets/stylesheets/reset.css.scss +3 -3
  38. data/vendor/assets/stylesheets/tab.css.scss +0 -0
  39. data/vendor/assets/stylesheets/table.css.scss +0 -0
  40. data/vendor/assets/stylesheets/timepicker.css.scss +0 -0
  41. data/vendor/assets/stylesheets/tooltip.css.scss +0 -0
  42. data/vendor/assets/stylesheets/transitions.css.scss +0 -0
  43. data/vendor/assets/stylesheets/trunk.css.scss +0 -0
  44. data/vendor/assets/stylesheets/typography.css.scss +43 -19
  45. metadata +3 -15
  46. data/vendor/assets/.keep +0 -0
  47. data/vendor/assets/javascripts/chart.js +0 -1424
  48. data/vendor/assets/javascripts/input_mask.js +0 -355
  49. data/vendor/assets/javascripts/qrcode.js +0 -89
  50. data/vendor/assets/javascripts/qrcoder.js +0 -1237
  51. data/vendor/assets/javascripts/typeahead.js +0 -335
  52. data/vendor/assets/javascripts/typer.js +0 -260
  53. data/vendor/assets/javascripts/wizard.js +0 -114
  54. data/vendor/assets/stylesheets/chart.css.scss +0 -10
  55. data/vendor/assets/stylesheets/qrcode.css.scss +0 -7
  56. data/vendor/assets/stylesheets/typeahead.css.scss +0 -7
  57. data/vendor/assets/stylesheets/wizard.css.scss +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5286bf7e1895f14c74d07a865ff9f0338061307
4
- data.tar.gz: 5b69d90c596fa5e86872895dc47813a8babae955
3
+ metadata.gz: 723a734b0dbdf5a520866b239f6115798a30f21b
4
+ data.tar.gz: 12f7705628cced914028757892e51c924d416b07
5
5
  SHA512:
6
- metadata.gz: 165770183fd965ab77e04319f842fb278086d565cf2dd2a5df385fefd4fd602f8d66ba644e35e3e9c4c97314942cb5f7e5468d78a14c29cf7235487f6f89b6de
7
- data.tar.gz: 747fdd5de4277999540651ddc6d0f54c37ff26481b3bba3a0aea162393e7470fb07290e9bd11929ffc6c0d7bdbb723f617700810f25b092c46b313d2f7b555d2
6
+ metadata.gz: a1c008fbad19ec34d152abe4a260e556d15a827561a40f4c83d80fc8e647eb196b35882f8819eec81d29e90716236c7a6a9dcb3cf65e82394a0fcc3f4ce25268
7
+ data.tar.gz: 59b029dc8c0e31abacd20dcec17afb4994c7aacc9b7343216c6b1c75c0e5b01d25f18708393dc8253ba1deb103f757c36d3ccc6de175199c3c56735c99bf4736
@@ -1,3 +1,3 @@
1
1
  module Quantum
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  /* ==========================================================
2
2
  * bootstrap-alert.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#alerts
3
+ * http://getbootstrap.com/2.3.2/javascript.html#alerts
4
4
  * ==========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* =============================================================
2
2
  * bootstrap-collapse.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#collapse
3
+ * http://getbootstrap.com/2.3.2/javascript.html#collapse
4
4
  * =============================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
File without changes
@@ -1,8 +1,8 @@
1
1
  /* ============================================================
2
2
  * bootstrap-dropdown.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#dropdowns
3
+ * http://getbootstrap.com/2.3.2/javascript.html#dropdowns
4
4
  * ============================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
File without changes
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GMaps.js v0.4.5
2
+ * GMaps.js v0.4.6
3
3
  * http://hpneo.github.com/gmaps/
4
4
  *
5
5
  * Copyright 2013, Gustavo Leon
@@ -136,6 +136,8 @@ var GMaps = (function(global) {
136
136
  var doc = document;
137
137
 
138
138
  var GMaps = function(options) {
139
+ if (!this) return new GMaps(options);
140
+
139
141
  options.zoom = options.zoom || 15;
140
142
  options.mapType = options.mapType || 'roadmap';
141
143
 
@@ -249,7 +251,7 @@ var GMaps = (function(global) {
249
251
  if (!getElementById('gmaps_context_menu')) return;
250
252
 
251
253
  var context_menu_element = getElementById('gmaps_context_menu');
252
-
254
+
253
255
  context_menu_element.innerHTML = html;
254
256
 
255
257
  var context_menu_items = context_menu_element.getElementsByTagName('a'),
@@ -286,11 +288,11 @@ var GMaps = (function(global) {
286
288
 
287
289
  var overlay = new google.maps.OverlayView();
288
290
  overlay.setMap(self.map);
289
-
291
+
290
292
  overlay.draw = function() {
291
293
  var projection = overlay.getProjection(),
292
294
  position = e.marker.getPosition();
293
-
295
+
294
296
  e.pixel = projection.fromLatLngToContainerPixel(position);
295
297
 
296
298
  buildContextMenuHTML(control, e);
@@ -504,7 +506,7 @@ GMaps.prototype.addControl = function(options) {
504
506
 
505
507
  var control = this.createControl(options);
506
508
  this.controls.push(control);
507
-
509
+
508
510
  this.map.controls[position].push(control);
509
511
 
510
512
  return control;
@@ -571,7 +573,7 @@ GMaps.prototype.createMarker = function(options) {
571
573
  if(!me.pixel){
572
574
  me.pixel = map.getProjection().fromLatLngToPoint(me.latLng)
573
575
  }
574
-
576
+
575
577
  options[name].apply(this, [me]);
576
578
  });
577
579
  }
@@ -717,7 +719,7 @@ GMaps.prototype.drawOverlay = function(options) {
717
719
  if (!options.layer) {
718
720
  options.layer = 'overlayLayer';
719
721
  }
720
-
722
+
721
723
  var panes = this.getPanes(),
722
724
  overlayLayer = panes[options.layer],
723
725
  stop_overlay_events = ['contextmenu', 'DOMMouseScroll', 'dblclick', 'mousedown'];
@@ -1306,7 +1308,7 @@ GMaps.prototype.drawRoute = function(options) {
1306
1308
  strokeOpacity: options.strokeOpacity,
1307
1309
  strokeWeight: options.strokeWeight
1308
1310
  });
1309
-
1311
+
1310
1312
  if (options.callback) {
1311
1313
  options.callback(e[e.length - 1]);
1312
1314
  }
@@ -1360,7 +1362,7 @@ GMaps.prototype.travelRoute = function(options) {
1360
1362
 
1361
1363
  GMaps.prototype.drawSteppedRoute = function(options) {
1362
1364
  var self = this;
1363
-
1365
+
1364
1366
  if (options.origin && options.destination) {
1365
1367
  this.getRoutes({
1366
1368
  origin: options.origin,
@@ -1503,7 +1505,7 @@ GMaps.prototype.toImage = function(options) {
1503
1505
 
1504
1506
  if (this.markers.length > 0) {
1505
1507
  static_map_options['markers'] = [];
1506
-
1508
+
1507
1509
  for (var i = 0; i < this.markers.length; i++) {
1508
1510
  static_map_options['markers'].push({
1509
1511
  lat: this.markers[i].getPosition().lat(),
@@ -1514,7 +1516,7 @@ GMaps.prototype.toImage = function(options) {
1514
1516
 
1515
1517
  if (this.polylines.length > 0) {
1516
1518
  var polyline = this.polylines[0];
1517
-
1519
+
1518
1520
  static_map_options['polyline'] = {};
1519
1521
  static_map_options['polyline']['path'] = google.maps.geometry.encoding.encodePath(polyline.getPath());
1520
1522
  static_map_options['polyline']['strokeColor'] = polyline.strokeColor
@@ -1538,7 +1540,7 @@ GMaps.staticMapURL = function(options){
1538
1540
  static_root += '?';
1539
1541
 
1540
1542
  var markers = options.markers;
1541
-
1543
+
1542
1544
  delete options.markers;
1543
1545
 
1544
1546
  if (!markers && options.marker) {
@@ -1546,6 +1548,10 @@ GMaps.staticMapURL = function(options){
1546
1548
  delete options.marker;
1547
1549
  }
1548
1550
 
1551
+ var styles = options.styles;
1552
+
1553
+ delete options.styles;
1554
+
1549
1555
  var polyline = options.polyline;
1550
1556
  delete options.polyline;
1551
1557
 
@@ -1580,7 +1586,7 @@ GMaps.staticMapURL = function(options){
1580
1586
  }
1581
1587
  parameters.push('size=' + size);
1582
1588
 
1583
- if (!options.zoom) {
1589
+ if (!options.zoom && options.zoom !== false) {
1584
1590
  options.zoom = 15;
1585
1591
  }
1586
1592
 
@@ -1603,20 +1609,33 @@ GMaps.staticMapURL = function(options){
1603
1609
 
1604
1610
  if (data.size && data.size !== 'normal') {
1605
1611
  marker.push('size:' + data.size);
1612
+ delete data.size;
1606
1613
  }
1607
1614
  else if (data.icon) {
1608
1615
  marker.push('icon:' + encodeURI(data.icon));
1616
+ delete data.icon;
1609
1617
  }
1610
1618
 
1611
1619
  if (data.color) {
1612
1620
  marker.push('color:' + data.color.replace('#', '0x'));
1621
+ delete data.color;
1613
1622
  }
1614
1623
 
1615
1624
  if (data.label) {
1616
1625
  marker.push('label:' + data.label[0].toUpperCase());
1626
+ delete data.label;
1617
1627
  }
1618
1628
 
1619
1629
  loc = (data.address ? data.address : data.lat + ',' + data.lng);
1630
+ delete data.address;
1631
+ delete data.lat;
1632
+ delete data.lng;
1633
+
1634
+ for(var param in data){
1635
+ if (data.hasOwnProperty(param)) {
1636
+ marker.push(param + ':' + data[param]);
1637
+ }
1638
+ }
1620
1639
 
1621
1640
  if (marker.length || i === 0) {
1622
1641
  marker.push(loc);
@@ -1631,6 +1650,35 @@ GMaps.staticMapURL = function(options){
1631
1650
  }
1632
1651
  }
1633
1652
 
1653
+ /** Map Styles **/
1654
+ if (styles) {
1655
+ for (var i = 0; i < styles.length; i++) {
1656
+ var styleRule = [];
1657
+ if (styles[i].featureType && styles[i].featureType != 'all' ) {
1658
+ styleRule.push('feature:' + styles[i].featureType);
1659
+ }
1660
+
1661
+ if (styles[i].elementType && styles[i].elementType != 'all') {
1662
+ styleRule.push('element:' + styles[i].elementType);
1663
+ }
1664
+
1665
+ for (var j = 0; j < styles[i].stylers.length; j++) {
1666
+ for (var p in styles[i].stylers[j]) {
1667
+ var ruleArg = styles[i].stylers[j][p];
1668
+ if (p == 'hue' || p == 'color') {
1669
+ ruleArg = '0x' + ruleArg.substring(1);
1670
+ }
1671
+ styleRule.push(p + ':' + ruleArg);
1672
+ }
1673
+ }
1674
+
1675
+ var rule = styleRule.join('|');
1676
+ if (rule != '') {
1677
+ parameters.push('style=' + rule);
1678
+ }
1679
+ }
1680
+ }
1681
+
1634
1682
  /** Polylines **/
1635
1683
  function parseColor(color, opacity) {
1636
1684
  if (color[0] === '#'){
@@ -1720,7 +1768,7 @@ GMaps.prototype.removeOverlayMapType = function(overlayMapTypeIndex) {
1720
1768
  };
1721
1769
 
1722
1770
  GMaps.prototype.addStyle = function(options) {
1723
- var styledMapType = new google.maps.StyledMapType(options.styles, options.styledMapName);
1771
+ var styledMapType = new google.maps.StyledMapType(options.styles, { name: options.styledMapName });
1724
1772
 
1725
1773
  this.map.mapTypes.set(options.mapTypeId, styledMapType);
1726
1774
  };
@@ -1864,7 +1912,7 @@ GMaps.geocode = function(options) {
1864
1912
  delete options.lat;
1865
1913
  delete options.lng;
1866
1914
  delete options.callback;
1867
-
1915
+
1868
1916
  this.geocoder.geocode(options, function(results, status) {
1869
1917
  callback(results, status);
1870
1918
  });
@@ -1,8 +1,8 @@
1
1
  /* =========================================================
2
2
  * bootstrap-modal.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#modals
3
+ * http://getbootstrap.com/2.3.2/javascript.html#modals
4
4
  * =========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ===========================================================
2
2
  * bootstrap-popover.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#popovers
3
+ * http://getbootstrap.com/2.3.2/javascript.html#popovers
4
4
  * ===========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================
2
2
  * bootstrap-tab.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#tabs
3
+ * http://getbootstrap.com/2.3.2/javascript.html#tabs
4
4
  * ========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
File without changes
@@ -1,9 +1,9 @@
1
1
  /* ===========================================================
2
2
  * bootstrap-tooltip.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#tooltips
3
+ * http://getbootstrap.com/2.3.2/javascript.html#tooltips
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ===========================================================
6
- * Copyright 2012 Twitter, Inc.
6
+ * Copyright 2013 Twitter, Inc.
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License");
9
9
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ===================================================
2
2
  * bootstrap-transition.js v2.3.2
3
- * http://twitter.github.com/bootstrap/javascript.html#transitions
3
+ * http://getbootstrap.com/2.3.2/javascript.html#transitions
4
4
  * ===================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
File without changes
@@ -14,7 +14,7 @@
14
14
  font-size: 11.5px;
15
15
  font-weight: bold;
16
16
  }
17
- .breadcrumb > li > a { color: rgba(58,135,173,1); }
17
+ .breadcrumb > li > a { color: rgba(16,127,201,1); }
18
18
  .breadcrumb > li > .divider {
19
19
  color: rgba(43,50,53,1);
20
20
  padding: 0 5px;
File without changes
@@ -7,6 +7,7 @@
7
7
  ================================================== */
8
8
  code {
9
9
  background-color: rgba(236,238,241,1);
10
+ border-radius: 2px;
10
11
  color: rgba(43,50,53,1);
11
12
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
12
13
  font-size: 12px;
@@ -22,6 +23,7 @@ code {
22
23
  ================================================== */
23
24
  pre {
24
25
  background-color: rgba(236,238,241,1);
26
+ border-radius: 3px;
25
27
  color: rgba(43,50,53,1);
26
28
  display: block;
27
29
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
@@ -34,14 +36,14 @@ pre {
34
36
  white-space: pre;
35
37
  }
36
38
  pre span.comment { color: rgba(43,50,53,1); font-style: italic; }
37
- pre span.error { border: 1px solid rgba(237,76,42,1); }
39
+ pre span.error { border: 1px solid rgba(240,35,17,1); }
38
40
  pre span.highlight { background-color: rgba(43,50,53,1); color: rgba(255,255,255,1); padding: 3px 0; }
39
- pre span.keyword { color: rgba(122,122,122,1); }
40
- pre span.keyword-constant { color: rgba(237,76,42,1); }
41
+ pre span.keyword { color: rgba(102,102,102,1); }
42
+ pre span.keyword-constant { color: rgba(240,35,17,1); }
41
43
  pre span.keyword-declaration { color: rgba(0,0,0,1); }
42
44
  pre span.keyword-pseudo { color: rgba(170,34,255,1); }
43
45
  pre span.keyword-reserved { color: rgba(170,34,255,1); font-weight: bold; }
44
46
  pre span.keyword-type { color: rgba(255,255,255,1); font-weight: bold; }
45
- pre span.number { color: rgba(70,136,71,1); }
47
+ pre span.number { color: rgba(75,173,8,1); }
46
48
  pre span.operator { color: rgba(43,50,53,1); }
47
- pre span.string { color: rgba(58,135,173,1); }
49
+ pre span.string { color: rgba(16,127,201,1); }
File without changes
File without changes
@@ -37,6 +37,7 @@
37
37
  margin-left: 0;
38
38
  }
39
39
  .row { margin-bottom: 20px; }
40
+ .row-small { margin-bottom: 10px; }
40
41
  .row-medium { margin-bottom: 40px; }
41
42
  .row-large { margin-bottom: 60px; }
42
43
 
@@ -156,4 +156,4 @@
156
156
  font-size: 40px;
157
157
  margin-top: 5px;
158
158
  }
159
- }
159
+ }
File without changes
File without changes
@@ -13,7 +13,7 @@ a {
13
13
 
14
14
  /* #Link Color
15
15
  ================================================== */
16
- .link-gray { color: rgba(122,122,122,1); }
17
- .link-blue { color: rgba(58,135,173,1); }
18
- .link-green { color: rgba(89,168,15,1); }
19
- .link-red { color: rgba(199,77,62,1); }
16
+ .link-gray { color: rgba(158,171,179,1); }
17
+ .link-blue { color: rgba(16,127,201,1); }
18
+ .link-green { color: rgba(75,173,8,1); }
19
+ .link-red { color: rgba(240,35,17,1); }
File without changes
File without changes
File without changes
@@ -40,9 +40,9 @@ input, textarea, select { *font-size: 100%; }
40
40
  legend { color: rgba(0,0,0,1); }
41
41
  html,
42
42
  body {
43
- font-family: 'Gotham', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
44
- font-smooth: always;
43
+ font-family: 'Gotham', 'Helvetica', Helvetica, Arial, sans-serif;
45
44
  -webkit-font-smoothing: antialiased;
45
+ font-smooth: always;
46
46
  margin: 0;
47
47
  -webkit-overflow-scrolling: touch;
48
48
  overflow-scrolling: touch;
@@ -56,7 +56,7 @@ body {
56
56
  -o-text-size-adjust: 100%;
57
57
  text-size-adjust: 100%;
58
58
  }
59
- body { padding-top: 108px; }
59
+ body { padding-top: 114px; }
60
60
 
61
61
  /* #Media Queries
62
62
  ================================================== */