lanes 0.1.9.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Rakefile +1 -1
- data/client/lanes/Boot.cjsx +3 -3
- data/client/lanes/Config.coffee +38 -3
- data/client/lanes/access/Extension.coffee +1 -1
- data/client/lanes/access/LoginDialog.cjsx +57 -47
- data/client/lanes/access/Roles.coffee +2 -2
- data/client/lanes/access/User.coffee +4 -3
- data/client/lanes/access/screens/user-management/UserManagement.cjsx +12 -11
- data/client/lanes/components/calendar/Calendar.cjsx +16 -0
- data/client/lanes/components/calendar/index.js +3 -0
- data/client/lanes/components/calendar/styles.scss +3 -0
- data/client/lanes/components/grid/Body.cjsx +86 -0
- data/client/lanes/components/grid/CellStyles.coffee +20 -0
- data/client/lanes/components/grid/EditingMixin.cjsx +84 -24
- data/client/lanes/components/grid/Editor.cjsx +45 -0
- data/client/lanes/components/grid/Grid.cjsx +62 -104
- data/client/lanes/components/grid/Header.cjsx +35 -0
- data/client/lanes/components/grid/PopOverMixin.cjsx +19 -9
- data/client/lanes/components/grid/PopoverEditor.cjsx +7 -1
- data/client/lanes/components/grid/RowEditor.cjsx +1 -1
- data/client/lanes/components/grid/Selections.cjsx +39 -0
- data/client/lanes/components/grid/Toolbar.cjsx +24 -5
- data/client/lanes/components/grid/editors.scss +22 -50
- data/client/lanes/components/grid/index.js +0 -1
- data/client/lanes/components/grid/row-editor.scss +68 -0
- data/client/lanes/components/grid/styles.scss +79 -3
- data/client/lanes/components/modal/Modal.cjsx +64 -24
- data/client/lanes/components/modal/styles.scss +12 -0
- data/client/lanes/components/record-finder/Clause.cjsx +11 -4
- data/client/lanes/components/record-finder/Dialog.cjsx +23 -24
- data/client/lanes/components/record-finder/RecordFinder.cjsx +45 -14
- data/client/lanes/components/record-finder/styles.scss +9 -6
- data/client/lanes/components/select-field/SelectField.cjsx +108 -53
- data/client/lanes/components/select-field/styles.scss +19 -0
- data/client/lanes/components/shared/ControlLabel.cjsx +45 -0
- data/client/lanes/components/shared/DateTime.cjsx +48 -0
- data/client/lanes/components/shared/DisplayValue.cjsx +16 -0
- data/client/lanes/components/shared/FieldMixin.cjsx +54 -23
- data/client/lanes/components/shared/FieldSet.cjsx +12 -35
- data/client/lanes/components/shared/FieldWrapper.cjsx +13 -0
- data/client/lanes/components/shared/FormGroup.cjsx +37 -0
- data/client/lanes/components/shared/Icon.cjsx +20 -0
- data/client/lanes/components/shared/ImageSaver.cjsx +33 -0
- data/client/lanes/components/shared/Input.cjsx +19 -0
- data/client/lanes/components/shared/InputFieldMixin.cjsx +48 -0
- data/client/lanes/components/shared/JobProgress.cjsx +27 -0
- data/client/lanes/components/shared/NetworkActivityOverlay.cjsx +58 -0
- data/client/lanes/components/shared/NumberInput.cjsx +29 -0
- data/client/lanes/components/shared/ResizeSensor.cjsx +11 -0
- data/client/lanes/components/shared/ScreenWrapper.cjsx +13 -0
- data/client/lanes/components/shared/Throbber.cjsx +3 -0
- data/client/lanes/components/shared/ToggleField.cjsx +33 -0
- data/client/lanes/components/shared/Tooltip.cjsx +2 -2
- data/client/lanes/components/shared/fields.scss +75 -13
- data/client/lanes/components/shared/fieldset.scss +3 -5
- data/client/lanes/components/shared/image-saver.scss +38 -0
- data/client/lanes/components/shared/index.js +2 -0
- data/client/lanes/{styles/plugins → components/shared}/overlay.scss +17 -4
- data/client/lanes/components/shared/resize-sensor.scss +30 -0
- data/client/lanes/components/shared/styles.scss +13 -0
- data/client/lanes/components/shared/throbber.scss +53 -0
- data/client/lanes/components/toolbar/RemoteChangeSets.cjsx +21 -48
- data/client/lanes/components/toolbar/SaveButton.cjsx +24 -0
- data/client/lanes/components/toolbar/Toolbar.cjsx +24 -37
- data/client/lanes/components/toolbar/changes-notification.scss +10 -6
- data/client/lanes/components/toolbar/styles.scss +29 -9
- data/client/lanes/extension/Base.coffee +4 -5
- data/client/lanes/index.js +0 -1
- data/client/lanes/index.scss.erb +10 -1
- data/client/lanes/lib/HotReload.coffee +13 -15
- data/client/lanes/lib/MakeBaseClass.coffee +6 -1
- data/client/lanes/lib/development.coffee +2 -0
- data/client/lanes/lib/dom-polyfills.coffee +5 -0
- data/client/lanes/lib/dom.coffee +38 -9
- data/client/lanes/lib/format.coffee +11 -0
- data/client/lanes/lib/index.js.erb +2 -0
- data/client/lanes/lib/production.coffee +6 -0
- data/client/lanes/lib/utilFunctions.coffee +50 -15
- data/client/lanes/models/AssociationMap.coffee +122 -46
- data/client/lanes/models/AssociationProxy.coffee +147 -0
- data/client/lanes/models/Base.coffee +97 -85
- data/client/lanes/models/ChangeMonitor.coffee +7 -3
- data/client/lanes/models/ChangeSet.coffee +2 -2
- data/client/lanes/models/Collection.coffee +49 -6
- data/client/lanes/models/JobStatus.coffee +32 -0
- data/client/lanes/models/PubSub.coffee +7 -5
- data/client/lanes/models/Query.coffee +115 -34
- data/client/lanes/models/ServerCache.coffee +67 -52
- data/client/lanes/models/State.coffee +97 -0
- data/client/lanes/models/Sync.coffee +18 -13
- data/client/lanes/models/SystemSettings.coffee +0 -0
- data/client/lanes/models/index.js +1 -0
- data/client/lanes/models/mixins/FileSupport.coffee +60 -0
- data/client/lanes/models/mixins/HasCodeField.coffee +13 -6
- data/client/lanes/models/query/ArrayResult.coffee +188 -0
- data/client/lanes/models/query/CollectionResult.coffee +71 -0
- data/client/lanes/models/query/Result.coffee +9 -0
- data/client/lanes/react/Component.coffee +7 -3
- data/client/lanes/react/PubSub.coffee +7 -7
- data/client/lanes/react/Root.cjsx +1 -4
- data/client/lanes/react/Screen.coffee +1 -0
- data/client/lanes/react/TypeValidators.coffee +3 -3
- data/client/lanes/react/Viewport.coffee +41 -7
- data/client/lanes/react/index.js +0 -1
- data/client/lanes/react/mixins/Access.coffee +4 -1
- data/client/lanes/react/mixins/Data.coffee +40 -25
- data/client/lanes/react/mixins/FieldErrors.coffee +27 -0
- data/client/lanes/react/mixins/RelayEditingState.coffee +4 -0
- data/client/lanes/react/mixins/Screen.coffee +14 -0
- data/client/lanes/react/mixins/Viewport.coffee +9 -3
- data/client/lanes/screens/ChangeListener.coffee +3 -3
- data/client/lanes/screens/Commands.coffee +14 -7
- data/client/lanes/screens/CommonComponents.cjsx +20 -0
- data/client/lanes/screens/Definitions.coffee +64 -20
- data/client/lanes/screens/SystemSettings.cjsx +56 -0
- data/client/lanes/screens/UserPreferences.cjsx +38 -0
- data/client/lanes/screens/index.js +3 -0
- data/client/lanes/screens/styles.scss +2 -1
- data/client/lanes/styles/fonts.scss +1 -0
- data/client/lanes/styles/global.scss +2 -1
- data/client/lanes/styles/global/flexbox.scss +16 -0
- data/client/lanes/styles/global/styles.scss +1 -0
- data/client/lanes/styles/mixins/_dropdown.scss +21 -0
- data/client/lanes/styles/mixins/_flexbox.scss +394 -0
- data/client/lanes/styles/mixins/all.scss +2 -0
- data/client/lanes/styles/variables.scss +28 -0
- data/client/lanes/testing/BeforeEach.coffee +15 -14
- data/client/lanes/testing/Helpers.coffee +14 -5
- data/client/lanes/testing/TestObjects.coffee +10 -2
- data/client/lanes/testing/index.js +1 -0
- data/client/lanes/testing/jasmine-react.js +125 -0
- data/client/lanes/vendor/base.js +56049 -74987
- data/client/lanes/vendor/calendar.js +17301 -0
- data/client/lanes/vendor/calendar.scss +303 -0
- data/client/lanes/vendor/commons.js +14990 -15847
- data/client/lanes/vendor/development.js +4912 -1952
- data/client/lanes/vendor/grid.js +14246 -5551
- data/client/lanes/vendor/grid.scss +876 -335
- data/client/lanes/vendor/index.js +1 -0
- data/client/lanes/vendor/message-bus-ajax.js +44 -0
- data/client/lanes/vendor/message-bus.js +414 -0
- data/client/lanes/vendor/rw-widgets.eot +0 -0
- data/client/lanes/vendor/rw-widgets.svg +18 -0
- data/client/lanes/vendor/rw-widgets.ttf +0 -0
- data/client/lanes/vendor/rw-widgets.woff +0 -0
- data/client/lanes/vendor/toggle.js +345 -0
- data/client/lanes/vendor/toggle.scss +138 -0
- data/client/lanes/vendor/widgets.js +21245 -6839
- data/client/lanes/vendor/widgets.scss +83 -67
- data/client/lanes/workspace/Layout.cjsx +18 -8
- data/client/lanes/workspace/Modal.cjsx +47 -0
- data/client/lanes/workspace/Navbar.cjsx +16 -2
- data/client/lanes/workspace/ScreenView.cjsx +10 -3
- data/client/lanes/workspace/ScreensMenu.cjsx +23 -7
- data/client/lanes/workspace/Tabs.cjsx +55 -0
- data/client/lanes/workspace/UIState.coffee +7 -8
- data/client/lanes/workspace/index.js +2 -1
- data/client/lanes/workspace/mixin.coffee +11 -0
- data/client/lanes/workspace/mixins/UIState.coffee +8 -0
- data/client/lanes/workspace/mixins/index.js +3 -0
- data/client/lanes/workspace/styles.scss +2 -1
- data/client/lanes/workspace/styles/header.scss +23 -1
- data/client/lanes/workspace/styles/layout.scss +26 -24
- data/client/lanes/workspace/styles/screens.scss +0 -4
- data/client/lanes/workspace/styles/tabs.scss +3 -10
- data/config/routes.rb +10 -4
- data/config/screens.rb +25 -0
- data/db/migrate/01_create_system_settings.rb +10 -0
- data/docs/todo-example-part-1.md +18 -20
- data/lanes.gemspec +15 -6
- data/lib/lanes.rb +4 -2
- data/lib/lanes/access/config/routes.rb +5 -3
- data/lib/lanes/access/config/screens.rb +1 -0
- data/lib/lanes/access/db/migrate/20140615031600_create_lanes_users.rb +1 -1
- data/lib/lanes/access/user.rb +1 -1
- data/lib/lanes/api.rb +2 -1
- data/lib/lanes/api/controller.rb +32 -71
- data/lib/lanes/api/default_routes.rb +10 -8
- data/lib/lanes/api/formatted_reply.rb +53 -0
- data/lib/lanes/api/handlers/file.rb +26 -0
- data/lib/lanes/api/helper_methods.rb +29 -5
- data/lib/lanes/api/javascript_processor.rb +36 -17
- data/lib/lanes/api/pub_sub.rb +6 -9
- data/lib/lanes/api/request_wrapper.rb +1 -2
- data/lib/lanes/api/root.rb +11 -43
- data/lib/lanes/api/routing.rb +63 -0
- data/lib/lanes/api/sprockets_extension.rb +15 -7
- data/lib/lanes/api/updates.rb +1 -2
- data/lib/lanes/command.rb +0 -1
- data/lib/lanes/command/app.rb +6 -5
- data/lib/lanes/command/console.rb +1 -0
- data/lib/lanes/command/generate.rb +3 -0
- data/lib/lanes/command/generate_migration.rb +33 -0
- data/lib/lanes/command/generate_model.rb +4 -26
- data/lib/lanes/command/migration_support.rb +29 -0
- data/lib/lanes/command/update_model.rb +14 -5
- data/lib/lanes/concerns/all.rb +2 -0
- data/lib/lanes/concerns/api_path.rb +4 -2
- data/lib/lanes/concerns/association_extensions.rb +1 -1
- data/lib/lanes/concerns/attr_accessor_with_default.rb +3 -1
- data/lib/lanes/concerns/code_identifier.rb +1 -1
- data/lib/lanes/concerns/image_uploader.rb +42 -0
- data/lib/lanes/concerns/pub_sub.rb +0 -1
- data/lib/lanes/concerns/queries.rb +2 -2
- data/lib/lanes/concerns/set_attribute_data.rb +4 -13
- data/lib/lanes/concerns/sorting_expressions.rb +34 -0
- data/lib/lanes/configuration.rb +48 -9
- data/lib/lanes/extension.rb +16 -7
- data/lib/lanes/extension/definition.rb +8 -2
- data/lib/lanes/job.rb +78 -0
- data/lib/lanes/job/failure_logger.rb +33 -0
- data/lib/lanes/model.rb +4 -0
- data/lib/lanes/rake_tasks.rb +6 -0
- data/lib/lanes/redis.rb +13 -0
- data/lib/lanes/screen.rb +34 -18
- data/lib/lanes/system_settings.rb +66 -0
- data/lib/lanes/version.rb +1 -1
- data/lib/lanes/workspace/extension.rb +1 -1
- data/npm-build/base.js +10 -3
- data/npm-build/calendar.js +6 -0
- data/npm-build/development.js +4 -5
- data/npm-build/grid.js +3 -5
- data/npm-build/package.json +40 -29
- data/npm-build/react-toggle.js +5 -0
- data/npm-build/react-widgets.js +6 -0
- data/npm-build/update-dayz +14 -0
- data/npm-build/webpack.config.js +5 -2
- data/spec/command-reference-files/initial/Gemfile +1 -1
- data/spec/command-reference-files/initial/config/routes.rb +2 -0
- data/spec/command-reference-files/initial/lib/appy-app.rb +4 -0
- data/spec/command-reference-files/initial/lib/appy-app/extension.rb +2 -0
- data/spec/command-reference-files/initial/spec/server/{spec_helpers.rb → spec_helper.rb} +0 -0
- data/spec/command-reference-files/model/config/routes.rb +2 -0
- data/spec/command-reference-files/model/spec/server/test_test_spec.rb +1 -1
- data/spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.cjsx +6 -4
- data/spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/index.scss +4 -3
- data/spec/command-reference-files/screen/config/screens.rb +4 -2
- data/spec/command-reference-files/screen/spec/appy-app/screens/ready-set-go/ReadySetGoSpec.coffee +1 -1
- data/spec/fixtures/system_settings.yml +1 -0
- data/spec/lanes/components/grid/GridSpec.coffee +56 -31
- data/spec/lanes/components/grid/RowEditorSpec.coffee +96 -0
- data/spec/lanes/components/select-field/SelectFieldSpec.coffee +99 -0
- data/spec/lanes/components/shared/NetworkActivityOverlaySpec.coffee +34 -0
- data/spec/lanes/models/AssociationMapSpec.coffee +36 -2
- data/spec/lanes/models/AssociationProxySpec.coffee +77 -0
- data/spec/lanes/models/BaseSpec.coffee +37 -4
- data/spec/lanes/models/CollectionSpec.coffee +11 -17
- data/spec/lanes/models/PubSubSpec.coffee +1 -1
- data/spec/lanes/models/ServerCacheSpec.coffee +65 -0
- data/spec/server/api/coffeescript_processor_spec.rb +1 -1
- data/spec/server/concerns/pub_sub_spec.rb +9 -10
- data/spec/server/concerns/sorting_expressions_spec.rb +34 -0
- data/spec/server/configuration_spec.rb +3 -3
- data/spec/server/job_spec.rb +54 -0
- data/spec/server/spec_helper.rb +0 -5
- data/spec/server/system_settings_spec.rb +23 -0
- data/templates/client/screens/Screen.cjsx +6 -4
- data/templates/client/screens/styles.scss +4 -3
- data/templates/config/routes.rb +2 -0
- data/templates/config/screen.rb +4 -2
- data/templates/lib/namespace.rb +4 -0
- data/templates/lib/namespace/extension.rb +2 -0
- data/templates/spec/client/Screen.coffee +1 -1
- data/templates/spec/server/model_spec.rb +1 -1
- data/templates/spec/server/{spec_helpers.rb → spec_helper.rb} +0 -0
- data/views/lanes_root_view.erb +70 -0
- data/views/specs.erb +2 -2
- metadata +207 -68
- data/client/images/lanes/dataTables/Sorting icons.psd +0 -0
- data/client/images/lanes/dataTables/back_disabled.png +0 -0
- data/client/images/lanes/dataTables/back_enabled.png +0 -0
- data/client/images/lanes/dataTables/back_enabled_hover.png +0 -0
- data/client/images/lanes/dataTables/favicon.ico +0 -0
- data/client/images/lanes/dataTables/forward_disabled.png +0 -0
- data/client/images/lanes/dataTables/forward_enabled.png +0 -0
- data/client/images/lanes/dataTables/forward_enabled_hover.png +0 -0
- data/client/images/lanes/dataTables/loading-background.png +0 -0
- data/client/images/lanes/dataTables/sort_asc.png +0 -0
- data/client/images/lanes/dataTables/sort_asc_disabled.png +0 -0
- data/client/images/lanes/dataTables/sort_both.png +0 -0
- data/client/images/lanes/dataTables/sort_desc.png +0 -0
- data/client/images/lanes/dataTables/sort_desc_disabled.png +0 -0
- data/client/lanes/components/shared/Resize.cjsx +0 -152
- data/client/lanes/components/shared/TextArea.cjsx +0 -19
- data/client/lanes/components/shared/TextField.cjsx +0 -25
- data/client/lanes/models/Bootstrap.coffee +0 -5
- data/client/lanes/models/QueryResults.coffee +0 -93
- data/client/lanes/react/FormBindings.coffee +0 -103
- data/client/lanes/react/Router.cjsx +0 -18
- data/client/lanes/styles/dataTables.scss +0 -4
- data/client/lanes/styles/plugins/all.scss +0 -2
- data/client/lanes/styles/plugins/resize-sensor.scss +0 -24
- data/client/lanes/vendor/jquery-2.js +0 -9190
- data/client/lanes/vendor/jquery.tap.js +0 -401
- data/client/lanes/vendor/magicsuggest.js +0 -1565
- data/client/lanes/vendor/message-bus.coffee +0 -264
- data/client/lanes/workspace/ActiveScreenSwitcher.cjsx +0 -38
- data/client/lanes/workspace/styles/toolbar.scss +0 -4
- data/lib/lanes/api/eco.js +0 -516
- data/lib/lanes/api/sprockets_compressor.rb +0 -39
- data/spec/command-reference-files/model/lib/appy-app.rb +0 -11
- data/views/index.erb +0 -19
@@ -29,30 +29,6 @@ input.rw-input::-moz-focus-inner {
|
|
29
29
|
padding: 0;
|
30
30
|
}
|
31
31
|
/* -------------- */
|
32
|
-
.rw-sr {
|
33
|
-
position: absolute;
|
34
|
-
width: 1px;
|
35
|
-
height: 1px;
|
36
|
-
margin: -1px;
|
37
|
-
padding: 0;
|
38
|
-
overflow: hidden;
|
39
|
-
clip: rect(0, 0, 0, 0);
|
40
|
-
border: 0;
|
41
|
-
}
|
42
|
-
.rw-widget,
|
43
|
-
.rw-widget * {
|
44
|
-
-webkit-box-sizing: border-box;
|
45
|
-
-moz-box-sizing: border-box;
|
46
|
-
box-sizing: border-box;
|
47
|
-
}
|
48
|
-
.rw-widget:before,
|
49
|
-
.rw-widget *:before,
|
50
|
-
.rw-widget:after,
|
51
|
-
.rw-widget *:after {
|
52
|
-
-webkit-box-sizing: border-box;
|
53
|
-
-moz-box-sizing: border-box;
|
54
|
-
box-sizing: border-box;
|
55
|
-
}
|
56
32
|
.rw-i {
|
57
33
|
display: inline-block;
|
58
34
|
font-family: FontAwesome;
|
@@ -65,27 +41,51 @@ input.rw-input::-moz-focus-inner {
|
|
65
41
|
-moz-osx-font-smoothing: grayscale;
|
66
42
|
}
|
67
43
|
.rw-i-caret-down:before {
|
68
|
-
content: '\
|
44
|
+
content: '\F0D7';
|
69
45
|
}
|
70
46
|
.rw-i-caret-up:before {
|
71
|
-
content: '\
|
47
|
+
content: '\F0D8';
|
72
48
|
}
|
73
49
|
.rw-i-caret-left:before {
|
74
|
-
content: '\
|
50
|
+
content: '\F0D9';
|
75
51
|
}
|
76
52
|
.rw-i-caret-right:before {
|
77
|
-
content: '\
|
53
|
+
content: '\F0DA';
|
78
54
|
}
|
79
55
|
.rw-i-clock-o:before {
|
80
|
-
content: '\
|
56
|
+
content: '\F017';
|
81
57
|
}
|
82
58
|
.rw-i-calendar:before {
|
83
|
-
content: '\
|
59
|
+
content: '\F073';
|
84
60
|
}
|
85
61
|
.rw-i-search:before {
|
86
|
-
content: '\
|
62
|
+
content: '\F002';
|
87
63
|
}
|
88
64
|
/* for debugging */
|
65
|
+
.rw-sr {
|
66
|
+
position: absolute;
|
67
|
+
width: 1px;
|
68
|
+
height: 1px;
|
69
|
+
margin: -1px;
|
70
|
+
padding: 0;
|
71
|
+
overflow: hidden;
|
72
|
+
clip: rect(0, 0, 0, 0);
|
73
|
+
border: 0;
|
74
|
+
}
|
75
|
+
.rw-widget,
|
76
|
+
.rw-widget * {
|
77
|
+
-webkit-box-sizing: border-box;
|
78
|
+
-moz-box-sizing: border-box;
|
79
|
+
box-sizing: border-box;
|
80
|
+
}
|
81
|
+
.rw-widget:before,
|
82
|
+
.rw-widget *:before,
|
83
|
+
.rw-widget:after,
|
84
|
+
.rw-widget *:after {
|
85
|
+
-webkit-box-sizing: border-box;
|
86
|
+
-moz-box-sizing: border-box;
|
87
|
+
box-sizing: border-box;
|
88
|
+
}
|
89
89
|
.rw-widget {
|
90
90
|
outline: 0;
|
91
91
|
-moz-background-clip: border-box;
|
@@ -93,7 +93,7 @@ input.rw-input::-moz-focus-inner {
|
|
93
93
|
background-clip: border-box;
|
94
94
|
}
|
95
95
|
.rw-btn {
|
96
|
-
color: #
|
96
|
+
color: #333;
|
97
97
|
line-height: 2.286em;
|
98
98
|
display: inline-block;
|
99
99
|
margin: 0;
|
@@ -112,7 +112,7 @@ input.rw-input::-moz-focus-inner {
|
|
112
112
|
color: #555555;
|
113
113
|
height: 2.286em;
|
114
114
|
padding: 0.429em 0.857em;
|
115
|
-
background-color: #
|
115
|
+
background-color: #fff;
|
116
116
|
}
|
117
117
|
.rw-input[disabled] {
|
118
118
|
-webkit-box-shadow: none;
|
@@ -120,7 +120,7 @@ input.rw-input::-moz-focus-inner {
|
|
120
120
|
cursor: not-allowed;
|
121
121
|
opacity: 1;
|
122
122
|
background-color: #eeeeee;
|
123
|
-
border-color: #
|
123
|
+
border-color: #ccc;
|
124
124
|
}
|
125
125
|
.rw-input[readonly] {
|
126
126
|
cursor: not-allowed;
|
@@ -129,7 +129,7 @@ input.rw-input::-moz-focus-inner {
|
|
129
129
|
position: relative;
|
130
130
|
width: 100%;
|
131
131
|
padding-right: 1.9em;
|
132
|
-
border: #
|
132
|
+
border: #ccc 1px solid;
|
133
133
|
border-radius: 4px;
|
134
134
|
margin-bottom: 2px;
|
135
135
|
}
|
@@ -172,14 +172,14 @@ input.rw-input::-moz-focus-inner {
|
|
172
172
|
font-weight: 600;
|
173
173
|
}
|
174
174
|
.rw-state-focus {
|
175
|
-
background-color: #
|
175
|
+
background-color: #fff;
|
176
176
|
border: #66afe9 1px solid;
|
177
|
-
color: #
|
177
|
+
color: #333;
|
178
178
|
}
|
179
179
|
.rw-state-selected {
|
180
180
|
background-color: #adadad;
|
181
181
|
border: #adadad 1px solid;
|
182
|
-
color: #
|
182
|
+
color: #333;
|
183
183
|
}
|
184
184
|
.rw-state-disabled {
|
185
185
|
-webkit-box-shadow: none;
|
@@ -243,15 +243,29 @@ ul.rw-list > li.rw-list-option:hover,
|
|
243
243
|
}
|
244
244
|
ul.rw-list > li.rw-list-option.rw-state-focus,
|
245
245
|
.rw-selectlist > li.rw-list-option.rw-state-focus {
|
246
|
-
background-color: #
|
246
|
+
background-color: #fff;
|
247
247
|
border: #66afe9 1px solid;
|
248
|
-
color: #
|
248
|
+
color: #333;
|
249
249
|
}
|
250
250
|
ul.rw-list > li.rw-list-option.rw-state-selected,
|
251
251
|
.rw-selectlist > li.rw-list-option.rw-state-selected {
|
252
252
|
background-color: #adadad;
|
253
253
|
border: #adadad 1px solid;
|
254
|
-
color: #
|
254
|
+
color: #333;
|
255
|
+
}
|
256
|
+
ul.rw-list > li.rw-list-option.rw-state-disabled,
|
257
|
+
ul.rw-list > li.rw-list-option.rw-state-readonly,
|
258
|
+
.rw-selectlist > li.rw-list-option.rw-state-disabled,
|
259
|
+
.rw-selectlist > li.rw-list-option.rw-state-readonly {
|
260
|
+
color: #777777;
|
261
|
+
cursor: not-allowed;
|
262
|
+
}
|
263
|
+
ul.rw-list > li.rw-list-option.rw-state-disabled:hover,
|
264
|
+
ul.rw-list > li.rw-list-option.rw-state-readonly:hover,
|
265
|
+
.rw-selectlist > li.rw-list-option.rw-state-disabled:hover,
|
266
|
+
.rw-selectlist > li.rw-list-option.rw-state-readonly:hover {
|
267
|
+
background: none;
|
268
|
+
border-color: transparent;
|
255
269
|
}
|
256
270
|
ul.rw-list.rw-list-grouped > li.rw-list-optgroup,
|
257
271
|
.rw-selectlist.rw-list-grouped > li.rw-list-optgroup {
|
@@ -283,8 +297,8 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
283
297
|
height: auto;
|
284
298
|
}
|
285
299
|
.rw-widget {
|
286
|
-
background-color: #
|
287
|
-
border: #
|
300
|
+
background-color: #fff;
|
301
|
+
border: #ccc 1px solid;
|
288
302
|
border-radius: 4px;
|
289
303
|
}
|
290
304
|
.rw-widget .rw-input {
|
@@ -298,10 +312,10 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
298
312
|
border-top-right-radius: 4px;
|
299
313
|
}
|
300
314
|
.rw-widget > .rw-select {
|
301
|
-
border-left: #
|
315
|
+
border-left: #ccc 1px solid;
|
302
316
|
}
|
303
317
|
.rw-rtl.rw-widget > .rw-select {
|
304
|
-
border-right: #
|
318
|
+
border-right: #ccc 1px solid;
|
305
319
|
border-left: none;
|
306
320
|
}
|
307
321
|
.rw-widget.rw-state-focus,
|
@@ -321,7 +335,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
321
335
|
-webkit-box-shadow: none;
|
322
336
|
box-shadow: none;
|
323
337
|
background-color: #eeeeee;
|
324
|
-
border-color: #
|
338
|
+
border-color: #ccc;
|
325
339
|
}
|
326
340
|
.rw-combobox,
|
327
341
|
.rw-datetimepicker,
|
@@ -348,29 +362,30 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
348
362
|
.rw-datetimepicker > .rw-input::-moz-placeholder,
|
349
363
|
.rw-numberpicker > .rw-input::-moz-placeholder,
|
350
364
|
.rw-dropdownlist > .rw-input::-moz-placeholder {
|
351
|
-
color: #
|
365
|
+
color: #999;
|
352
366
|
opacity: 1;
|
353
367
|
}
|
354
368
|
.rw-combobox > .rw-input:-ms-input-placeholder,
|
355
369
|
.rw-datetimepicker > .rw-input:-ms-input-placeholder,
|
356
370
|
.rw-numberpicker > .rw-input:-ms-input-placeholder,
|
357
371
|
.rw-dropdownlist > .rw-input:-ms-input-placeholder {
|
358
|
-
color: #
|
372
|
+
color: #999;
|
359
373
|
}
|
360
374
|
.rw-combobox > .rw-input::-webkit-input-placeholder,
|
361
375
|
.rw-datetimepicker > .rw-input::-webkit-input-placeholder,
|
362
376
|
.rw-numberpicker > .rw-input::-webkit-input-placeholder,
|
363
377
|
.rw-dropdownlist > .rw-input::-webkit-input-placeholder {
|
364
|
-
color: #
|
378
|
+
color: #999;
|
365
379
|
}
|
366
380
|
.rw-placeholder {
|
367
|
-
color: #
|
381
|
+
color: #999;
|
368
382
|
}
|
369
383
|
.rw-select {
|
370
384
|
position: absolute;
|
371
385
|
width: 1.9em;
|
372
386
|
height: 100%;
|
373
387
|
right: 0;
|
388
|
+
top: 0;
|
374
389
|
}
|
375
390
|
.rw-select.rw-btn,
|
376
391
|
.rw-select > .rw-btn {
|
@@ -449,8 +464,8 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
449
464
|
border-top-left-radius: 0;
|
450
465
|
border-bottom-right-radius: 3px;
|
451
466
|
border-bottom-left-radius: 3px;
|
452
|
-
border: #
|
453
|
-
background: #
|
467
|
+
border: #ccc 1px solid;
|
468
|
+
background: #fff;
|
454
469
|
padding: 2px;
|
455
470
|
overflow: auto;
|
456
471
|
margin-bottom: 10px;
|
@@ -475,6 +490,9 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
475
490
|
left: -11px;
|
476
491
|
right: -11px;
|
477
492
|
}
|
493
|
+
.rw-widget.rw-state-focus .rw-popup-container {
|
494
|
+
z-index: 1015;
|
495
|
+
}
|
478
496
|
.rw-popup-container.rw-dropup {
|
479
497
|
top: auto;
|
480
498
|
bottom: 100%;
|
@@ -505,10 +523,10 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
505
523
|
height: 100%;
|
506
524
|
}
|
507
525
|
.rw-calendar {
|
508
|
-
background-color: #
|
526
|
+
background-color: #fff;
|
509
527
|
}
|
510
528
|
.rw-calendar thead > tr {
|
511
|
-
border-bottom: 2px solid #
|
529
|
+
border-bottom: 2px solid #ccc;
|
512
530
|
}
|
513
531
|
.rw-calendar .rw-header {
|
514
532
|
padding-bottom: 5px;
|
@@ -528,7 +546,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
528
546
|
cursor: not-allowed;
|
529
547
|
}
|
530
548
|
.rw-calendar .rw-footer {
|
531
|
-
border-top: 1px solid #
|
549
|
+
border-top: 1px solid #ccc;
|
532
550
|
}
|
533
551
|
.rw-calendar .rw-footer .rw-btn {
|
534
552
|
width: 100%;
|
@@ -623,7 +641,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
623
641
|
border-color: transparent;
|
624
642
|
}
|
625
643
|
.rw-multiselect {
|
626
|
-
background-color: #
|
644
|
+
background-color: #fff;
|
627
645
|
}
|
628
646
|
.rw-multiselect:hover {
|
629
647
|
border-color: #adadad;
|
@@ -646,7 +664,6 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
646
664
|
right: 3px;
|
647
665
|
}
|
648
666
|
.rw-multiselect-wrapper > .rw-input {
|
649
|
-
float: left;
|
650
667
|
outline: 0;
|
651
668
|
border-width: 0;
|
652
669
|
line-height: normal;
|
@@ -654,14 +671,14 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
654
671
|
max-width: 100%;
|
655
672
|
}
|
656
673
|
.rw-multiselect-wrapper > .rw-input::-moz-placeholder {
|
657
|
-
color: #
|
674
|
+
color: #999;
|
658
675
|
opacity: 1;
|
659
676
|
}
|
660
677
|
.rw-multiselect-wrapper > .rw-input:-ms-input-placeholder {
|
661
|
-
color: #
|
678
|
+
color: #999;
|
662
679
|
}
|
663
680
|
.rw-multiselect-wrapper > .rw-input::-webkit-input-placeholder {
|
664
|
-
color: #
|
681
|
+
color: #999;
|
665
682
|
}
|
666
683
|
.rw-state-readonly > .rw-multiselect-wrapper,
|
667
684
|
.rw-state-disabled > .rw-multiselect-wrapper {
|
@@ -671,7 +688,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
671
688
|
float: right;
|
672
689
|
}
|
673
690
|
.rw-multiselect-create-tag {
|
674
|
-
border-top: 1px #
|
691
|
+
border-top: 1px #ccc solid;
|
675
692
|
padding-top: 5px;
|
676
693
|
margin-top: 5px;
|
677
694
|
}
|
@@ -679,6 +696,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
679
696
|
margin: 0;
|
680
697
|
padding-left: 0;
|
681
698
|
list-style: none;
|
699
|
+
display: inline;
|
682
700
|
padding-right: 0;
|
683
701
|
}
|
684
702
|
.rw-multiselect-taglist > li {
|
@@ -687,23 +705,21 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
|
|
687
705
|
padding-right: 5px;
|
688
706
|
}
|
689
707
|
.rw-multiselect-taglist > li {
|
690
|
-
float: left;
|
691
708
|
display: inline-block;
|
692
709
|
margin: 1px;
|
693
710
|
padding: 0.214em 0.15em 0.214em 0.4em;
|
694
711
|
line-height: 1.4em;
|
695
712
|
text-align: center;
|
696
|
-
vertical-align: middle;
|
697
713
|
white-space: nowrap;
|
698
714
|
border-radius: 3px;
|
699
|
-
border: 1px solid #
|
700
|
-
background-color: #
|
715
|
+
border: 1px solid #ccc;
|
716
|
+
background-color: #ccc;
|
701
717
|
cursor: pointer;
|
702
718
|
}
|
703
719
|
.rw-multiselect-taglist > li.rw-state-focus {
|
704
|
-
background-color: #
|
720
|
+
background-color: #fff;
|
705
721
|
border: #66afe9 1px solid;
|
706
|
-
color: #
|
722
|
+
color: #333;
|
707
723
|
}
|
708
724
|
.rw-multiselect-taglist > li.rw-state-readonly,
|
709
725
|
.rw-multiselect-taglist > li.rw-state-disabled,
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class Lanes.Workspace.Layout extends Lanes.React.Component
|
2
2
|
|
3
3
|
dataObjects:
|
4
|
-
uistate:
|
4
|
+
uistate: -> Lanes.Workspace.Extension.uistate
|
5
|
+
viewport: -> @context.viewport
|
5
6
|
|
6
7
|
childContextTypes:
|
7
8
|
uistate: Lanes.PropTypes.State
|
@@ -9,20 +10,29 @@ class Lanes.Workspace.Layout extends Lanes.React.Component
|
|
9
10
|
getChildContext: ->
|
10
11
|
uistate: @uistate
|
11
12
|
|
12
|
-
componentWillMount: ->
|
13
|
-
@uistate.set(@props)
|
14
|
-
|
15
13
|
pageClasses: ->
|
16
14
|
_.classnames( 'page-container', @uistate.screen_menu_size,
|
17
15
|
{"popover_menu": @uistate.popover_menu}
|
18
16
|
)
|
19
17
|
|
18
|
+
componentWillMount: ->
|
19
|
+
@uistate.set(@props)
|
20
|
+
useBasename = Lanes.Vendor.BrowserHistory.useBasename
|
21
|
+
history = useBasename(Lanes.Vendor.BrowserHistory.createHistory)({
|
22
|
+
basename: Lanes.config.root_path
|
23
|
+
})
|
24
|
+
@historyStopListening = history.listen (location) ->
|
25
|
+
Lanes.Screens.Definitions.setBrowserLocation(location)
|
26
|
+
@setState({history})
|
27
|
+
|
28
|
+
componentWillUnmount: -> @historyStopListening()
|
29
|
+
|
20
30
|
render: ->
|
21
31
|
<div className="layout">
|
22
|
-
{
|
23
|
-
<Lanes.Workspace.Navbar/>
|
32
|
+
<LC.Modal {...@context.viewport.modalProps} />
|
33
|
+
<Lanes.Workspace.Navbar history={@state.history} />
|
24
34
|
<div className={@pageClasses()}>
|
25
|
-
<Lanes.Workspace.ScreensMenu/>
|
26
|
-
<Lanes.Workspace.ScreenView/>
|
35
|
+
<Lanes.Workspace.ScreensMenu history={@state.history} />
|
36
|
+
<Lanes.Workspace.ScreenView />
|
27
37
|
</div>
|
28
38
|
</div>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# This is the "real" dialog component. It's rendered to a div under document.body
|
2
|
+
class Lanes.Workspace.Dialog extends Lanes.React.Component
|
3
|
+
|
4
|
+
propTypes:
|
5
|
+
title: React.PropTypes.string.isRequired
|
6
|
+
onOk: React.PropTypes.func.isRequired
|
7
|
+
onCancel: React.PropTypes.func.isRequired
|
8
|
+
body: React.PropTypes.element.isRequired
|
9
|
+
show: React.PropTypes.bool
|
10
|
+
buttons: React.PropTypes.object
|
11
|
+
className: React.PropTypes.string
|
12
|
+
|
13
|
+
getDefaultProps: ->
|
14
|
+
buttons: {'Cancel': 'default', 'OK': 'primary'}
|
15
|
+
|
16
|
+
getInitialState: ->
|
17
|
+
show: true
|
18
|
+
|
19
|
+
componentWillReceiveProps: (nextProps) ->
|
20
|
+
@setState(show: nextProps.show) if nextProps.show?
|
21
|
+
|
22
|
+
_hide: ->
|
23
|
+
@setState(show: false)
|
24
|
+
|
25
|
+
hide: ->
|
26
|
+
@_hide()
|
27
|
+
@props.onCancel()
|
28
|
+
|
29
|
+
render: ->
|
30
|
+
return null unless @state.show
|
31
|
+
|
32
|
+
buttons = for name, style of @props.buttons
|
33
|
+
<BS.Button key={name} className={name}
|
34
|
+
onClick={_.partial(@props.onButton, name)}>{name}</BS.Button>
|
35
|
+
|
36
|
+
classes = _.classnames('layout-dialog', @props.className)
|
37
|
+
|
38
|
+
<BS.Modal.Dialog>
|
39
|
+
<BS.Modal.Header>
|
40
|
+
<BS.Modal.Title>{@props.title}</BS.Modal.Title>
|
41
|
+
</BS.Modal.Header>
|
42
|
+
|
43
|
+
<BS.Modal.Body>{@props.body}</BS.Modal.Body>
|
44
|
+
|
45
|
+
<BS.Modal.Footer>{@buttons}</BS.Modal.Footer>
|
46
|
+
|
47
|
+
</BS.Modal.Dialog>
|