lanes 0.5.0 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/client/fonts/fontawesome-webfont.woff +0 -0
  3. data/client/fonts/fontawesome-webfont.woff2 +0 -0
  4. data/client/lanes/Boot.cjsx +1 -6
  5. data/client/lanes/components/grid/Body.cjsx +14 -1
  6. data/client/lanes/components/grid/Grid.cjsx +20 -19
  7. data/client/lanes/components/grid/Toolbar.cjsx +7 -4
  8. data/client/lanes/components/grid/editors.scss +1 -1
  9. data/client/lanes/components/grid/styles.scss +16 -5
  10. data/client/lanes/components/modal/Modal.cjsx +9 -11
  11. data/client/lanes/components/record-finder/RecordFinder.cjsx +2 -2
  12. data/client/lanes/components/record-finder/styles.scss +7 -5
  13. data/client/lanes/components/shared/FormGroup.cjsx +1 -1
  14. data/client/lanes/components/shared/Icon.cjsx +3 -2
  15. data/client/lanes/components/shared/Input.cjsx +1 -0
  16. data/client/lanes/components/shared/PanelHeader.cjsx +8 -0
  17. data/client/lanes/components/shared/fields.scss +5 -4
  18. data/client/lanes/components/shared/styles.scss +18 -0
  19. data/client/lanes/index.js +0 -1
  20. data/client/lanes/{plugins → lib}/ResizeSensor.js +0 -0
  21. data/client/lanes/lib/all.js +13 -0
  22. data/client/lanes/lib/dom.coffee +1 -1
  23. data/client/lanes/lib/format.coffee +2 -2
  24. data/client/lanes/lib/index.js.erb +1 -13
  25. data/client/lanes/lib/loader.coffee +2 -2
  26. data/client/lanes/lib/utilFunctions.coffee +12 -0
  27. data/client/lanes/models/AssociationMap.coffee +27 -18
  28. data/client/lanes/models/Base.coffee +12 -4
  29. data/client/lanes/models/Collection.coffee +5 -3
  30. data/client/lanes/models/PubSub.coffee +1 -1
  31. data/client/lanes/models/Query.coffee +0 -1
  32. data/client/lanes/models/State.coffee +5 -1
  33. data/client/lanes/models/Sync.coffee +5 -9
  34. data/client/lanes/models/query/ArrayResult.coffee +27 -7
  35. data/client/lanes/models/query/Result.coffee +2 -0
  36. data/client/lanes/react/Component.coffee +3 -3
  37. data/client/lanes/react/Viewport.coffee +17 -5
  38. data/client/lanes/react/mixins/Access.coffee +2 -2
  39. data/client/lanes/react/mixins/FieldErrors.coffee +3 -3
  40. data/client/lanes/remote/BaseClasses.coffee +0 -0
  41. data/client/lanes/remote/api.coffee +8 -0
  42. data/client/lanes/styles/fonts/_icons.scss +139 -2
  43. data/client/lanes/styles/fonts/_variables.scss +142 -4
  44. data/client/lanes/styles/global/mixins.scss +5 -0
  45. data/client/lanes/styles/global/styles.scss +5 -2
  46. data/client/lanes/styles/global.scss +1 -0
  47. data/client/lanes/vendor/base.js.erb +4 -2
  48. data/client/lanes/vendor/development/calendar.js +65 -65
  49. data/client/lanes/vendor/development/commons.js +34530 -34719
  50. data/client/lanes/vendor/development/data.js +30832 -0
  51. data/client/lanes/vendor/development/helpers.js +26 -26
  52. data/client/lanes/vendor/development/toggle.js +19 -19
  53. data/client/lanes/vendor/development/ui.js +22568 -0
  54. data/client/lanes/vendor/development/widgets.js +362 -362
  55. data/client/lanes/vendor/production/calendar.js +65 -65
  56. data/client/lanes/vendor/production/commons.js +34360 -34549
  57. data/client/lanes/vendor/production/data.js +30829 -0
  58. data/client/lanes/vendor/production/toggle.js +19 -19
  59. data/client/lanes/vendor/production/ui.js +22564 -0
  60. data/client/lanes/vendor/production/widgets.js +362 -362
  61. data/client/lanes/vendor/{production/base.js → standalone/index.js} +43836 -53602
  62. data/client/lanes/workspace/Modal.cjsx +1 -1
  63. data/client/lanes/workspace/styles/header.scss +1 -0
  64. data/client/lanes/workspace/styles/layout.scss +12 -0
  65. data/lanes.gemspec +1 -0
  66. data/lib/lanes/access/authentication_provider.rb +4 -3
  67. data/lib/lanes/api/coffeescript_processor.rb +9 -3
  68. data/lib/lanes/api/{controller.rb → controller_base.rb} +3 -35
  69. data/lib/lanes/api/formatted_reply.rb +2 -2
  70. data/lib/lanes/api/generic_controller.rb +42 -0
  71. data/lib/lanes/api/helper_methods.rb +1 -1
  72. data/lib/lanes/api/null_authentication_provider.rb +3 -0
  73. data/lib/lanes/api/request_wrapper.rb +32 -18
  74. data/lib/lanes/api/root.rb +25 -3
  75. data/lib/lanes/api/routing.rb +41 -22
  76. data/lib/lanes/api/sprockets_extension.rb +3 -1
  77. data/lib/lanes/api.rb +2 -1
  78. data/lib/lanes/configuration.rb +0 -1
  79. data/lib/lanes/extension/definition.rb +5 -1
  80. data/lib/lanes/hot_reload_plugin.rb +0 -1
  81. data/lib/lanes/version.rb +1 -1
  82. data/npm-build/build +3 -0
  83. data/npm-build/{base.js → data.js} +16 -16
  84. data/npm-build/package.json +3 -1
  85. data/npm-build/standalone.js +4 -0
  86. data/npm-build/ui.js +8 -0
  87. data/npm-build/webpack-standalone.config.js +16 -0
  88. data/npm-build/webpack.config.js +4 -3
  89. data/templates/config/lanes.rb +3 -3
  90. metadata +34 -10
  91. data/client/lanes/lib/noConflict.coffee +0 -15
  92. data/client/lanes/plugins/index.js +0 -1
  93. data/client/lanes/vendor/development/base.js +0 -61239
@@ -1,4 +1,4 @@
1
- webpackJsonp([1],{
1
+ webpackJsonp([0],{
2
2
 
3
3
  /***/ 0:
4
4
  /***/ function(module, exports, __webpack_require__) {
@@ -6,31 +6,31 @@ webpackJsonp([1],{
6
6
  /* WEBPACK VAR INJECTION */(function(global) {var Lanes = ( global.Lanes || (global.Lanes = {}) );
7
7
  Lanes.Vendor = ( Lanes.Vendor || {} );
8
8
 
9
- Lanes.Vendor.Dayz = __webpack_require__(1041);
9
+ Lanes.Vendor.Dayz = __webpack_require__(10);
10
10
 
11
- __webpack_require__(1057);
11
+ __webpack_require__(426);
12
12
 
13
13
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
14
14
 
15
15
  /***/ },
16
16
 
17
- /***/ 1041:
17
+ /***/ 10:
18
18
  /***/ function(module, exports, __webpack_require__) {
19
19
 
20
20
  'use strict';
21
21
 
22
22
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
23
23
 
24
- var React = __webpack_require__(206);
25
- var moment = __webpack_require__(838);
26
- var Layout = __webpack_require__(1042);
27
- var Day = __webpack_require__(1046);
28
- var XLabels = __webpack_require__(1049);
29
- var YLabels = __webpack_require__(1050);
24
+ var React = __webpack_require__(11);
25
+ var moment = __webpack_require__(47);
26
+ var Layout = __webpack_require__(150);
27
+ var Day = __webpack_require__(271);
28
+ var XLabels = __webpack_require__(404);
29
+ var YLabels = __webpack_require__(408);
30
30
 
31
- __webpack_require__(1033); // needed in order to for range to install itself
31
+ __webpack_require__(412); // needed in order to for range to install itself
32
32
 
33
- var EventsCollection = __webpack_require__(1054);
33
+ var EventsCollection = __webpack_require__(413);
34
34
 
35
35
  var Dayz = React.createClass({
36
36
  displayName: 'Dayz',
@@ -132,7 +132,7 @@ webpackJsonp([1],{
132
132
 
133
133
  /***/ },
134
134
 
135
- /***/ 1042:
135
+ /***/ 150:
136
136
  /***/ function(module, exports, __webpack_require__) {
137
137
 
138
138
  'use strict';
@@ -141,11 +141,11 @@ webpackJsonp([1],{
141
141
 
142
142
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
143
143
 
144
- var assign = __webpack_require__(20);
145
- var each = __webpack_require__(1043);
146
- var moment = __webpack_require__(838);
147
- var EventLayout = __webpack_require__(1044);
148
- var C = __webpack_require__(1045);
144
+ var assign = __webpack_require__(151);
145
+ var each = __webpack_require__(182);
146
+ var moment = __webpack_require__(47);
147
+ var EventLayout = __webpack_require__(269);
148
+ var C = __webpack_require__(270);
149
149
 
150
150
  function cacheKey(day) {
151
151
  return day.format('YYYYMMDD');
@@ -340,15 +340,15 @@ webpackJsonp([1],{
340
340
 
341
341
  /***/ },
342
342
 
343
- /***/ 1043:
343
+ /***/ 182:
344
344
  /***/ function(module, exports, __webpack_require__) {
345
345
 
346
- module.exports = __webpack_require__(199);
346
+ module.exports = __webpack_require__(183);
347
347
 
348
348
 
349
349
  /***/ },
350
350
 
351
- /***/ 1044:
351
+ /***/ 269:
352
352
  /***/ function(module, exports, __webpack_require__) {
353
353
 
354
354
  'use strict';
@@ -357,7 +357,7 @@ webpackJsonp([1],{
357
357
 
358
358
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
359
359
 
360
- var moment = __webpack_require__(838);
360
+ var moment = __webpack_require__(47);
361
361
 
362
362
  // an event layout describes how an event is displayed.
363
363
  // A event may be split into one or more layouts in order to be split across week boundaries
@@ -457,7 +457,7 @@ webpackJsonp([1],{
457
457
 
458
458
  /***/ },
459
459
 
460
- /***/ 1045:
460
+ /***/ 270:
461
461
  /***/ function(module, exports) {
462
462
 
463
463
  "use strict";
@@ -470,20 +470,20 @@ webpackJsonp([1],{
470
470
 
471
471
  /***/ },
472
472
 
473
- /***/ 1046:
473
+ /***/ 271:
474
474
  /***/ function(module, exports, __webpack_require__) {
475
475
 
476
476
  'use strict';
477
477
 
478
478
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
479
479
 
480
- var React = __webpack_require__(206);
481
- var Layout = __webpack_require__(1042);
482
- var Event = __webpack_require__(1047);
483
- var Label = __webpack_require__(1048);
484
- var assign = __webpack_require__(20);
485
- var each = __webpack_require__(1043);
486
- var ReactDOM = __webpack_require__(242);
480
+ var React = __webpack_require__(11);
481
+ var Layout = __webpack_require__(150);
482
+ var Event = __webpack_require__(272);
483
+ var Label = __webpack_require__(273);
484
+ var assign = __webpack_require__(151);
485
+ var each = __webpack_require__(182);
486
+ var ReactDOM = __webpack_require__(274);
487
487
 
488
488
  var IsDayClass = new RegExp('(\\s|^)(events|day|label)(\\s|$)');
489
489
 
@@ -615,13 +615,13 @@ webpackJsonp([1],{
615
615
 
616
616
  /***/ },
617
617
 
618
- /***/ 1047:
618
+ /***/ 272:
619
619
  /***/ function(module, exports, __webpack_require__) {
620
620
 
621
621
  'use strict';
622
622
 
623
- var React = __webpack_require__(206);
624
- var EventLayout = __webpack_require__(1044);
623
+ var React = __webpack_require__(11);
624
+ var EventLayout = __webpack_require__(269);
625
625
 
626
626
  var IsResizeClass = new RegExp('(\\s|^)event(\\s|$)');
627
627
 
@@ -694,12 +694,12 @@ webpackJsonp([1],{
694
694
 
695
695
  /***/ },
696
696
 
697
- /***/ 1048:
697
+ /***/ 273:
698
698
  /***/ function(module, exports, __webpack_require__) {
699
699
 
700
700
  'use strict';
701
701
 
702
- var React = __webpack_require__(206);
702
+ var React = __webpack_require__(11);
703
703
 
704
704
  var Label = React.createClass({
705
705
  displayName: 'Label',
@@ -722,13 +722,13 @@ webpackJsonp([1],{
722
722
 
723
723
  /***/ },
724
724
 
725
- /***/ 1049:
725
+ /***/ 404:
726
726
  /***/ function(module, exports, __webpack_require__) {
727
727
 
728
728
  'use strict';
729
729
 
730
- var React = __webpack_require__(206);
731
- var map = __webpack_require__(495);
730
+ var React = __webpack_require__(11);
731
+ var map = __webpack_require__(405);
732
732
 
733
733
  var XLabels = React.createClass({
734
734
  displayName: 'XLabels',
@@ -770,16 +770,16 @@ webpackJsonp([1],{
770
770
 
771
771
  /***/ },
772
772
 
773
- /***/ 1050:
773
+ /***/ 408:
774
774
  /***/ function(module, exports, __webpack_require__) {
775
775
 
776
776
  'use strict';
777
777
 
778
- var React = __webpack_require__(206);
779
- var moment = __webpack_require__(838);
780
- var Layout = __webpack_require__(1042);
781
- var each = __webpack_require__(1043);
782
- var range = __webpack_require__(1051);
778
+ var React = __webpack_require__(11);
779
+ var moment = __webpack_require__(47);
780
+ var Layout = __webpack_require__(150);
781
+ var each = __webpack_require__(182);
782
+ var range = __webpack_require__(409);
783
783
 
784
784
  var YLabels = React.createClass({
785
785
  displayName: 'YLabels',
@@ -831,10 +831,10 @@ webpackJsonp([1],{
831
831
 
832
832
  /***/ },
833
833
 
834
- /***/ 1051:
834
+ /***/ 409:
835
835
  /***/ function(module, exports, __webpack_require__) {
836
836
 
837
- var createRange = __webpack_require__(1052);
837
+ var createRange = __webpack_require__(410);
838
838
 
839
839
  /**
840
840
  * Creates an array of numbers (positive and/or negative) progressing from
@@ -884,12 +884,12 @@ webpackJsonp([1],{
884
884
 
885
885
  /***/ },
886
886
 
887
- /***/ 1052:
887
+ /***/ 410:
888
888
  /***/ function(module, exports, __webpack_require__) {
889
889
 
890
- var baseRange = __webpack_require__(1053),
891
- isIterateeCall = __webpack_require__(25),
892
- toNumber = __webpack_require__(37);
890
+ var baseRange = __webpack_require__(411),
891
+ isIterateeCall = __webpack_require__(156),
892
+ toNumber = __webpack_require__(168);
893
893
 
894
894
  /**
895
895
  * Creates a `_.range` or `_.rangeRight` function.
@@ -922,7 +922,7 @@ webpackJsonp([1],{
922
922
 
923
923
  /***/ },
924
924
 
925
- /***/ 1053:
925
+ /***/ 411:
926
926
  /***/ function(module, exports) {
927
927
 
928
928
  /* Built-in method references for those with the same name as other `lodash` methods. */
@@ -957,7 +957,7 @@ webpackJsonp([1],{
957
957
 
958
958
  /***/ },
959
959
 
960
- /***/ 1054:
960
+ /***/ 413:
961
961
  /***/ function(module, exports, __webpack_require__) {
962
962
 
963
963
  'use strict';
@@ -966,11 +966,11 @@ webpackJsonp([1],{
966
966
 
967
967
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
968
968
 
969
- var Event = __webpack_require__(1055);
970
- var Emitter = __webpack_require__(1056);
971
- var _each = __webpack_require__(1043);
972
- var assign = __webpack_require__(20);
973
- var sortBy = __webpack_require__(520);
969
+ var Event = __webpack_require__(414);
970
+ var Emitter = __webpack_require__(415);
971
+ var _each = __webpack_require__(182);
972
+ var assign = __webpack_require__(151);
973
+ var sortBy = __webpack_require__(416);
974
974
 
975
975
  function lengthCompare(event) {
976
976
  return event.attributes.range.start.diff(event.attributes.range.end);
@@ -1033,7 +1033,7 @@ webpackJsonp([1],{
1033
1033
 
1034
1034
  /***/ },
1035
1035
 
1036
- /***/ 1055:
1036
+ /***/ 414:
1037
1037
  /***/ function(module, exports, __webpack_require__) {
1038
1038
 
1039
1039
  'use strict';
@@ -1042,10 +1042,10 @@ webpackJsonp([1],{
1042
1042
 
1043
1043
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1044
1044
 
1045
- var React = __webpack_require__(206);
1046
- var assign = __webpack_require__(20);
1047
- var each = __webpack_require__(1043);
1048
- var Emitter = __webpack_require__(1056);
1045
+ var React = __webpack_require__(11);
1046
+ var assign = __webpack_require__(151);
1047
+ var each = __webpack_require__(182);
1048
+ var Emitter = __webpack_require__(415);
1049
1049
 
1050
1050
  var EVENT_COUNTER = 1;
1051
1051
 
@@ -1180,7 +1180,7 @@ webpackJsonp([1],{
1180
1180
 
1181
1181
  /***/ },
1182
1182
 
1183
- /***/ 1056:
1183
+ /***/ 415:
1184
1184
  /***/ function(module, exports) {
1185
1185
 
1186
1186
  function E () {
@@ -1253,7 +1253,7 @@ webpackJsonp([1],{
1253
1253
 
1254
1254
  /***/ },
1255
1255
 
1256
- /***/ 1057:
1256
+ /***/ 426:
1257
1257
  /***/ function(module, exports, __webpack_require__) {
1258
1258
 
1259
1259
  module.exports = __webpack_require__.p + "calendar.scss";