lanes 0.3.0 → 0.4.0

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/client/lanes/Config.coffee +1 -1
  4. data/client/lanes/access/LoginDialog.cjsx +1 -1
  5. data/client/lanes/access/Roles.coffee +1 -1
  6. data/client/lanes/access/User.coffee +2 -2
  7. data/client/lanes/access/screens/user-management/UserManagement.cjsx +1 -1
  8. data/client/lanes/components/calendar/styles.scss +1 -1
  9. data/client/lanes/components/grid/Body.cjsx +5 -2
  10. data/client/lanes/components/grid/EditingMixin.cjsx +3 -0
  11. data/client/lanes/components/grid/Editor.cjsx +3 -11
  12. data/client/lanes/components/grid/Grid.cjsx +22 -12
  13. data/client/lanes/components/grid/Selections.cjsx +4 -1
  14. data/client/lanes/components/grid/Toolbar.cjsx +1 -1
  15. data/client/lanes/components/record-finder/RecordFinder.cjsx +2 -2
  16. data/client/lanes/components/select-field/SelectField.cjsx +19 -16
  17. data/client/lanes/components/select-field/styles.scss +1 -1
  18. data/client/lanes/components/shared/FieldMixin.cjsx +2 -2
  19. data/client/lanes/components/shared/Input.cjsx +2 -13
  20. data/client/lanes/components/shared/InputFieldMixin.cjsx +15 -8
  21. data/client/lanes/components/shared/NetworkActivityOverlay.cjsx +1 -1
  22. data/client/lanes/components/shared/NumberInput.cjsx +4 -12
  23. data/client/lanes/components/shared/ToggleField.cjsx +0 -2
  24. data/client/lanes/components/shared/fields.scss +9 -0
  25. data/client/lanes/components/shared/styles.scss +2 -1
  26. data/client/lanes/components/toolbar/Toolbar.cjsx +1 -1
  27. data/client/lanes/lib/HotReload.coffee +2 -2
  28. data/client/lanes/lib/development.coffee +1 -1
  29. data/client/lanes/lib/loader.coffee +3 -3
  30. data/client/lanes/models/AssociationMap.coffee +1 -1
  31. data/client/lanes/models/AssociationProxy.coffee +1 -0
  32. data/client/lanes/models/Base.coffee +7 -10
  33. data/client/lanes/models/Collection.coffee +3 -6
  34. data/client/lanes/models/JobStatus.coffee +1 -1
  35. data/client/lanes/models/PubSub.coffee +51 -33
  36. data/client/lanes/models/Query.coffee +1 -1
  37. data/client/lanes/models/Sync.coffee +1 -1
  38. data/client/lanes/models/User.coffee +3 -3
  39. data/client/lanes/models/mixins/FileSupport.coffee +3 -3
  40. data/client/lanes/models/query/ArrayResult.coffee +3 -6
  41. data/client/lanes/models/query/CollectionResult.coffee +5 -3
  42. data/client/lanes/react/Component.coffee +2 -2
  43. data/client/lanes/react/DefaultComponentNotFound.cjsx +2 -2
  44. data/client/lanes/react/Screen.coffee +1 -1
  45. data/client/lanes/react/Viewport.coffee +1 -1
  46. data/client/lanes/react/mixins/Access.coffee +1 -1
  47. data/client/lanes/react/mixins/Data.coffee +9 -5
  48. data/client/lanes/screens/Commands.coffee +1 -1
  49. data/client/lanes/screens/UserPreferences.cjsx +1 -1
  50. data/client/lanes/testing/BeforeEach.coffee +7 -0
  51. data/client/lanes/vendor/base.js.erb +5 -0
  52. data/client/lanes/vendor/calendar.js.erb +5 -0
  53. data/client/lanes/vendor/commons.js.erb +5 -0
  54. data/client/lanes/vendor/{base.js → development/base.js} +37776 -40850
  55. data/client/lanes/vendor/development/calendar.js +1667 -0
  56. data/client/lanes/vendor/development/commons.js +39085 -0
  57. data/client/lanes/vendor/development/helpers.js +578 -0
  58. data/client/lanes/vendor/{toggle.js → development/toggle.js} +22 -82
  59. data/client/lanes/vendor/development/widgets.js +8975 -0
  60. data/client/lanes/vendor/production/base.js +63239 -0
  61. data/client/lanes/vendor/production/calendar.js +1667 -0
  62. data/client/lanes/vendor/production/commons.js +38505 -0
  63. data/client/lanes/vendor/production/toggle.js +285 -0
  64. data/client/lanes/vendor/production/widgets.js +8975 -0
  65. data/client/lanes/vendor/{calendar.scss → styles/calendar.scss} +6 -0
  66. data/client/lanes/vendor/{toggle.scss → styles/toggle.scss} +0 -0
  67. data/client/lanes/vendor/{widgets.scss → styles/widgets.scss} +2 -2
  68. data/client/lanes/vendor/toggle.js.erb +5 -0
  69. data/client/lanes/vendor/widgets.js.erb +5 -0
  70. data/lib/lanes/api/default_routes.rb +3 -3
  71. data/lib/lanes/api/routing.rb +1 -1
  72. data/lib/lanes/configuration.rb +8 -14
  73. data/lib/lanes/environment.rb +3 -0
  74. data/lib/lanes/extension/definition.rb +4 -0
  75. data/lib/lanes/system_settings.rb +21 -6
  76. data/lib/lanes/version.rb +1 -1
  77. data/npm-build/base.js +9 -4
  78. data/npm-build/build +9 -0
  79. data/npm-build/development.js +3 -1
  80. data/npm-build/package.json +34 -34
  81. data/npm-build/update-dayz +1 -1
  82. data/npm-build/webpack.config.js +36 -20
  83. data/spec/command-reference-files/initial/Gemfile +1 -1
  84. data/spec/command-reference-files/screen/config/screens.rb +1 -1
  85. data/spec/lanes/components/grid/RowEditorSpec.coffee +3 -1
  86. data/spec/lanes/components/select-field/SelectFieldSpec.coffee +33 -28
  87. data/spec/lanes/models/AssociationProxySpec.coffee +36 -37
  88. data/spec/lanes/models/BaseSpec.coffee +0 -32
  89. data/spec/lanes/models/CollectionSpec.coffee +0 -10
  90. data/spec/lanes/models/PubSubSpec.coffee +63 -13
  91. data/spec/lanes/screens/DefinitionsSpec.coffee +2 -2
  92. metadata +23 -20
  93. data/client/lanes/vendor/calendar.js +0 -17301
  94. data/client/lanes/vendor/commons.js +0 -19722
  95. data/client/lanes/vendor/development.js +0 -5471
  96. data/client/lanes/vendor/grid.js +0 -15384
  97. data/client/lanes/vendor/grid.scss +0 -928
  98. data/client/lanes/vendor/rw-widgets.eot +0 -0
  99. data/client/lanes/vendor/rw-widgets.svg +0 -18
  100. data/client/lanes/vendor/rw-widgets.ttf +0 -0
  101. data/client/lanes/vendor/rw-widgets.woff +0 -0
  102. data/client/lanes/vendor/widgets.js +0 -23204
  103. data/npm-build/compile.coffee +0 -19
  104. data/spec/lanes/models/ServerCacheSpec.coffee +0 -65
@@ -0,0 +1,285 @@
1
+ webpackJsonp([2],{
2
+
3
+ /***/ 0:
4
+ /***/ function(module, exports, __webpack_require__) {
5
+
6
+ /* WEBPACK VAR INJECTION */(function(global) {var Lanes = ( global.Lanes || (global.Lanes = {}) );
7
+ Lanes.Vendor = ( Lanes.Vendor || {} );
8
+
9
+ Lanes.Vendor.ReactToggle = __webpack_require__(922)
10
+ __webpack_require__(928);
11
+
12
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
13
+
14
+ /***/ },
15
+
16
+ /***/ 922:
17
+ /***/ function(module, exports, __webpack_require__) {
18
+
19
+ "use strict";
20
+
21
+ var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
22
+
23
+ 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; };
24
+
25
+ var React = _interopRequire(__webpack_require__(66));
26
+
27
+ var classNames = _interopRequire(__webpack_require__(453));
28
+
29
+ var Check = _interopRequire(__webpack_require__(923));
30
+
31
+ var X = _interopRequire(__webpack_require__(924));
32
+
33
+ var PureRenderMixin = _interopRequire(__webpack_require__(925));
34
+
35
+ module.exports = React.createClass({
36
+ mixins: [PureRenderMixin],
37
+
38
+ displayName: "Toggle",
39
+
40
+ propTypes: {
41
+ checked: React.PropTypes.bool,
42
+ defaultChecked: React.PropTypes.bool,
43
+ onChange: React.PropTypes.func,
44
+ name: React.PropTypes.string,
45
+ value: React.PropTypes.string,
46
+ id: React.PropTypes.string,
47
+ "aria-labelledby": React.PropTypes.string,
48
+ "aria-label": React.PropTypes.string
49
+ },
50
+
51
+ getInitialState: function getInitialState() {
52
+ var checked = false;
53
+ if ("checked" in this.props) {
54
+ checked = this.props.checked;
55
+ } else if ("defaultChecked" in this.props) {
56
+ checked = this.props.defaultChecked;
57
+ }
58
+ return {
59
+ checked: !!checked,
60
+ hasFocus: false
61
+ };
62
+ },
63
+
64
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
65
+ if ("checked" in nextProps) {
66
+ this.setState({ checked: !!nextProps.checked });
67
+ }
68
+ },
69
+
70
+ handleClick: function handleClick(event) {
71
+ var checkbox = this.refs.input;
72
+ if (event.target !== checkbox) {
73
+ event.preventDefault();
74
+ checkbox.focus();
75
+ checkbox.click();
76
+ return;
77
+ }
78
+
79
+ if (!("checked" in this.props)) {
80
+ this.setState({ checked: checkbox.checked });
81
+ }
82
+ },
83
+
84
+ handleFocus: function handleFocus() {
85
+ this.setState({ hasFocus: true });
86
+ },
87
+
88
+ handleBlur: function handleBlur() {
89
+ this.setState({ hasFocus: false });
90
+ },
91
+
92
+ render: function render() {
93
+ var classes = classNames("react-toggle", {
94
+ "react-toggle--checked": this.state.checked,
95
+ "react-toggle--focus": this.state.hasFocus,
96
+ "react-toggle--disabled": this.props.disabled
97
+ });
98
+
99
+ return React.createElement(
100
+ "div",
101
+ { className: classes, onClick: this.handleClick },
102
+ React.createElement(
103
+ "div",
104
+ { className: "react-toggle-track" },
105
+ React.createElement(
106
+ "div",
107
+ { className: "react-toggle-track-check" },
108
+ React.createElement(Check, null)
109
+ ),
110
+ React.createElement(
111
+ "div",
112
+ { className: "react-toggle-track-x" },
113
+ React.createElement(X, null)
114
+ )
115
+ ),
116
+ React.createElement("div", { className: "react-toggle-thumb" }),
117
+ React.createElement("input", _extends({
118
+ ref: "input",
119
+ onFocus: this.handleFocus,
120
+ onBlur: this.handleBlur,
121
+ className: "react-toggle-screenreader-only",
122
+ type: "checkbox"
123
+ }, this.props))
124
+ );
125
+ }
126
+ });
127
+
128
+
129
+ /***/ },
130
+
131
+ /***/ 923:
132
+ /***/ function(module, exports, __webpack_require__) {
133
+
134
+ "use strict";
135
+
136
+ var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
137
+
138
+ var React = _interopRequire(__webpack_require__(66));
139
+
140
+ module.exports = React.createClass({
141
+ displayName: "check.es6",
142
+
143
+ render: function render() {
144
+ return React.createElement(
145
+ "svg",
146
+ { width: "14", height: "11", viewBox: "0 0 14 11", xmlns: "http://www.w3.org/2000/svg" },
147
+ React.createElement(
148
+ "title",
149
+ null,
150
+ "switch-check"
151
+ ),
152
+ React.createElement("path", { d: "M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0", fill: "#fff", "fill-rule": "evenodd" })
153
+ );
154
+ }
155
+ });
156
+
157
+
158
+ /***/ },
159
+
160
+ /***/ 924:
161
+ /***/ function(module, exports, __webpack_require__) {
162
+
163
+ "use strict";
164
+
165
+ var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
166
+
167
+ var React = _interopRequire(__webpack_require__(66));
168
+
169
+ module.exports = React.createClass({
170
+ displayName: "x.es6",
171
+
172
+ render: function render() {
173
+ return React.createElement(
174
+ "svg",
175
+ { width: "10", height: "10", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" },
176
+ React.createElement(
177
+ "title",
178
+ null,
179
+ "switch-x"
180
+ ),
181
+ React.createElement("path", { d: "M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12", fill: "#fff", "fill-rule": "evenodd" })
182
+ );
183
+ }
184
+ });
185
+
186
+
187
+ /***/ },
188
+
189
+ /***/ 925:
190
+ /***/ function(module, exports, __webpack_require__) {
191
+
192
+ module.exports = __webpack_require__(926);
193
+
194
+ /***/ },
195
+
196
+ /***/ 926:
197
+ /***/ function(module, exports, __webpack_require__) {
198
+
199
+ /**
200
+ * Copyright 2013-present, Facebook, Inc.
201
+ * All rights reserved.
202
+ *
203
+ * This source code is licensed under the BSD-style license found in the
204
+ * LICENSE file in the root directory of this source tree. An additional grant
205
+ * of patent rights can be found in the PATENTS file in the same directory.
206
+ *
207
+ * @providesModule ReactComponentWithPureRenderMixin
208
+ */
209
+
210
+ 'use strict';
211
+
212
+ var shallowCompare = __webpack_require__(927);
213
+
214
+ /**
215
+ * If your React component's render function is "pure", e.g. it will render the
216
+ * same result given the same props and state, provide this mixin for a
217
+ * considerable performance boost.
218
+ *
219
+ * Most React components have pure render functions.
220
+ *
221
+ * Example:
222
+ *
223
+ * var ReactComponentWithPureRenderMixin =
224
+ * require('ReactComponentWithPureRenderMixin');
225
+ * React.createClass({
226
+ * mixins: [ReactComponentWithPureRenderMixin],
227
+ *
228
+ * render: function() {
229
+ * return <div className={this.props.className}>foo</div>;
230
+ * }
231
+ * });
232
+ *
233
+ * Note: This only checks shallow equality for props and state. If these contain
234
+ * complex data structures this mixin may have false-negatives for deeper
235
+ * differences. Only mixin to components which have simple props and state, or
236
+ * use `forceUpdate()` when you know deep data structures have changed.
237
+ */
238
+ var ReactComponentWithPureRenderMixin = {
239
+ shouldComponentUpdate: function (nextProps, nextState) {
240
+ return shallowCompare(this, nextProps, nextState);
241
+ }
242
+ };
243
+
244
+ module.exports = ReactComponentWithPureRenderMixin;
245
+
246
+ /***/ },
247
+
248
+ /***/ 927:
249
+ /***/ function(module, exports, __webpack_require__) {
250
+
251
+ /**
252
+ * Copyright 2013-present, Facebook, Inc.
253
+ * All rights reserved.
254
+ *
255
+ * This source code is licensed under the BSD-style license found in the
256
+ * LICENSE file in the root directory of this source tree. An additional grant
257
+ * of patent rights can be found in the PATENTS file in the same directory.
258
+ *
259
+ * @providesModule shallowCompare
260
+ */
261
+
262
+ 'use strict';
263
+
264
+ var shallowEqual = __webpack_require__(187);
265
+
266
+ /**
267
+ * Does a shallow comparison for props and state.
268
+ * See ReactComponentWithPureRenderMixin
269
+ */
270
+ function shallowCompare(instance, nextProps, nextState) {
271
+ return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);
272
+ }
273
+
274
+ module.exports = shallowCompare;
275
+
276
+ /***/ },
277
+
278
+ /***/ 928:
279
+ /***/ function(module, exports) {
280
+
281
+ // removed by extract-text-webpack-plugin
282
+
283
+ /***/ }
284
+
285
+ });