luca 0.9.42 → 0.9.65
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +50 -9
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/README.md +5 -0
- data/assets/javascripts/dependencies/underscore-min.js +5 -31
- data/lib/generators/luca/application/application_generator.rb +71 -0
- data/lib/generators/luca/application/templates/controller.rb +6 -0
- data/lib/generators/luca/application/templates/index.html.erb +7 -0
- data/lib/generators/luca/application/templates/index.html.haml +6 -0
- data/lib/generators/luca/application/templates/javascripts/application.js +28 -0
- data/lib/generators/luca/application/templates/javascripts/application.js.coffee +20 -0
- data/lib/generators/luca/application/templates/javascripts/config.js +15 -0
- data/lib/generators/luca/application/templates/javascripts/config.js.coffee +9 -0
- data/lib/generators/luca/application/templates/javascripts/dependencies.js +5 -0
- data/lib/generators/luca/application/templates/javascripts/dependencies.js.coffee +5 -0
- data/lib/generators/luca/application/templates/javascripts/index.js +9 -0
- data/lib/generators/luca/application/templates/javascripts/index.js.coffee +9 -0
- data/lib/generators/luca/application/templates/javascripts/main.js +8 -0
- data/lib/generators/luca/application/templates/javascripts/main.js.coffee +3 -0
- data/lib/generators/luca/application/templates/javascripts/main.jst.ejs +1 -0
- data/lib/generators/luca/application/templates/javascripts/router.js +12 -0
- data/lib/generators/luca/application/templates/javascripts/router.js.coffee +7 -0
- data/lib/luca/rails/version.rb +1 -1
- data/spec/components/collection_view_spec.coffee +59 -0
- data/spec/components/multi_collection_view_spec.coffee +5 -0
- data/{src/templates/components/form_alert → spec/components/pagination_control_spec.coffee} +0 -0
- data/spec/components/table_view_spec.coffee +17 -0
- data/spec/core/container_spec.coffee +127 -5
- data/spec/core/model_spec.coffee +21 -3
- data/spec/define_spec.coffee +19 -0
- data/spec/mixin_spec.coffee +49 -0
- data/spec/modules/filterable_spec.coffee +25 -0
- data/spec/modules/paginatable_spec.coffee +0 -0
- data/spec/modules/state_model_spec.coffee +0 -0
- data/src/components/application.coffee +52 -38
- data/src/components/collection_view.coffee +118 -45
- data/src/components/fields/checkbox_field.coffee +2 -2
- data/src/components/fields/file_upload_field.coffee +0 -3
- data/src/components/fields/hidden_field.coffee +0 -3
- data/src/components/fields/label_field.coffee +1 -4
- data/src/components/fields/select_field.coffee +6 -6
- data/src/components/fields/text_area_field.coffee +1 -0
- data/src/components/fields/text_field.coffee +4 -0
- data/src/components/fields/type_ahead_field.coffee +5 -9
- data/src/components/form_view.coffee +28 -23
- data/src/components/multi_collection_view.coffee +121 -0
- data/src/components/pagination_control.coffee +106 -0
- data/src/components/table_view.coffee +22 -13
- data/src/containers/card_view.coffee +44 -11
- data/src/containers/panel_toolbar.coffee +88 -82
- data/src/containers/tab_view.coffee +3 -3
- data/src/core/collection.coffee +11 -4
- data/src/core/container.coffee +206 -122
- data/src/core/field.coffee +13 -10
- data/src/core/model.coffee +23 -27
- data/src/core/registry.coffee +42 -29
- data/src/core/view.coffee +63 -149
- data/src/define.coffee +91 -19
- data/src/framework.coffee +11 -9
- data/src/managers/collection_manager.coffee +24 -8
- data/src/modules/application_event_bindings.coffee +19 -0
- data/src/modules/collection_event_bindings.coffee +26 -0
- data/src/modules/deferrable.coffee +3 -1
- data/src/modules/dom_helpers.coffee +49 -0
- data/src/modules/enhanced_properties.coffee +23 -0
- data/src/modules/filterable.coffee +82 -0
- data/src/modules/grid_layout.coffee +13 -1
- data/src/modules/{load_mask.coffee → loadmaskable.coffee} +10 -4
- data/src/modules/modal_view.coffee +38 -0
- data/src/modules/paginatable.coffee +87 -0
- data/src/modules/state_model.coffee +16 -0
- data/src/modules/templating.coffee +8 -0
- data/src/plugins/events.coffee +30 -2
- data/src/templates/components/bootstrap_form_controls.jst.ejs +10 -0
- data/src/templates/components/collection_loader_view.jst.ejs +6 -0
- data/src/templates/components/form_alert.jst.ejs +4 -0
- data/src/templates/components/grid_view.jst.ejs +11 -0
- data/src/templates/components/grid_view_empty_text.jst.ejs +3 -0
- data/src/templates/components/load_mask.jst.ejs +5 -0
- data/src/templates/components/nav_bar.jst.ejs +4 -0
- data/src/templates/components/pagination.jst.ejs +10 -0
- data/src/templates/containers/basic.jst.ejs +1 -0
- data/src/templates/containers/tab_selector_container.jst.ejs +12 -0
- data/src/templates/containers/tab_view.jst.ejs +2 -0
- data/src/templates/containers/toolbar_wrapper.jst.ejs +1 -0
- data/src/templates/fields/button_field.jst.ejs +2 -0
- data/src/templates/fields/button_field_link.jst.ejs +6 -0
- data/src/templates/fields/checkbox_array.jst.ejs +4 -0
- data/src/templates/fields/checkbox_array_item.jst.ejs +3 -0
- data/src/templates/fields/checkbox_field.jst.ejs +10 -0
- data/src/templates/fields/file_upload_field.jst.ejs +10 -0
- data/src/templates/fields/hidden_field.jst.ejs +1 -0
- data/src/templates/fields/select_field.jst.ejs +11 -0
- data/src/templates/fields/text_area_field.jst.ejs +11 -0
- data/src/templates/fields/text_field.jst.ejs +16 -0
- data/src/templates/table_view.jst.ejs +4 -0
- data/src/tools/console.coffee +51 -21
- data/src/util.coffee +17 -4
- data/vendor/assets/javascripts/luca-ui-base.js +5304 -0
- data/vendor/assets/javascripts/luca-ui-bootstrap.js +9 -0
- data/vendor/assets/javascripts/luca-ui-development-tools.js +52 -24
- data/vendor/assets/javascripts/luca-ui-development-tools.min.js +1 -1
- data/vendor/assets/javascripts/luca-ui-full.js +1700 -595
- data/vendor/assets/javascripts/luca-ui-full.min.js +7 -6
- data/vendor/assets/javascripts/luca-ui-spec.js +6815 -0
- data/vendor/assets/javascripts/luca-ui-templates.js +92 -24
- data/vendor/assets/javascripts/luca-ui.js +1695 -564
- data/vendor/assets/javascripts/luca-ui.min.js +4 -4
- metadata +69 -28
- data/src/templates/components/bootstrap_form_controls.luca +0 -7
- data/src/templates/components/collection_loader_view.luca +0 -5
- data/src/templates/components/form_alert.luca +0 -3
- data/src/templates/components/grid_view.luca +0 -7
- data/src/templates/components/grid_view_empty_text.luca +0 -3
- data/src/templates/components/load_mask.luca +0 -3
- data/src/templates/components/nav_bar.luca +0 -2
- data/src/templates/containers/basic.luca +0 -1
- data/src/templates/containers/tab_selector_container.luca +0 -8
- data/src/templates/containers/tab_view.luca +0 -2
- data/src/templates/containers/toolbar_wrapper.luca +0 -1
- data/src/templates/fields/button_field.luca +0 -2
- data/src/templates/fields/button_field_link.luca +0 -5
- data/src/templates/fields/checkbox_array.luca +0 -4
- data/src/templates/fields/checkbox_array_item.luca +0 -4
- data/src/templates/fields/checkbox_field.luca +0 -9
- data/src/templates/fields/file_upload_field.luca +0 -8
- data/src/templates/fields/hidden_field.luca +0 -1
- data/src/templates/fields/select_field.luca +0 -8
- data/src/templates/fields/text_area_field.luca +0 -8
- data/src/templates/fields/text_field.luca +0 -17
- data/src/templates/sample/contents.luca +0 -1
- data/src/templates/sample/welcome.luca +0 -1
- data/src/templates/table_view.luca +0 -4
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.65
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -189,6 +189,23 @@ files:
|
|
189
189
|
- docs/event_binding_helpers.md
|
190
190
|
- docs/method_caching_and_computed_properties.md
|
191
191
|
- docs/view.md
|
192
|
+
- lib/generators/luca/application/application_generator.rb
|
193
|
+
- lib/generators/luca/application/templates/controller.rb
|
194
|
+
- lib/generators/luca/application/templates/index.html.erb
|
195
|
+
- lib/generators/luca/application/templates/index.html.haml
|
196
|
+
- lib/generators/luca/application/templates/javascripts/application.js
|
197
|
+
- lib/generators/luca/application/templates/javascripts/application.js.coffee
|
198
|
+
- lib/generators/luca/application/templates/javascripts/config.js
|
199
|
+
- lib/generators/luca/application/templates/javascripts/config.js.coffee
|
200
|
+
- lib/generators/luca/application/templates/javascripts/dependencies.js
|
201
|
+
- lib/generators/luca/application/templates/javascripts/dependencies.js.coffee
|
202
|
+
- lib/generators/luca/application/templates/javascripts/index.js
|
203
|
+
- lib/generators/luca/application/templates/javascripts/index.js.coffee
|
204
|
+
- lib/generators/luca/application/templates/javascripts/main.js
|
205
|
+
- lib/generators/luca/application/templates/javascripts/main.js.coffee
|
206
|
+
- lib/generators/luca/application/templates/javascripts/main.jst.ejs
|
207
|
+
- lib/generators/luca/application/templates/javascripts/router.js
|
208
|
+
- lib/generators/luca/application/templates/javascripts/router.js.coffee
|
192
209
|
- lib/luca.rb
|
193
210
|
- lib/luca/code_browser.rb
|
194
211
|
- lib/luca/command_line.rb
|
@@ -228,11 +245,15 @@ files:
|
|
228
245
|
- site/source-map.js
|
229
246
|
- spec/components/application_spec.coffee
|
230
247
|
- spec/components/collection_loader_view_spec.coffee
|
248
|
+
- spec/components/collection_view_spec.coffee
|
231
249
|
- spec/components/controller_spec.coffee
|
232
250
|
- spec/components/fields/checkbox_array_spec.coffee
|
233
251
|
- spec/components/form_view_spec.coffee
|
234
252
|
- spec/components/grid_view_spec.coffee
|
253
|
+
- spec/components/multi_collection_view_spec.coffee
|
254
|
+
- spec/components/pagination_control_spec.coffee
|
235
255
|
- spec/components/record_manager_spec.coffee
|
256
|
+
- spec/components/table_view_spec.coffee
|
236
257
|
- spec/components/template_spec.coffee
|
237
258
|
- spec/containers/card_view_spec.coffee
|
238
259
|
- spec/containers/column_view_spec.coffee
|
@@ -247,10 +268,15 @@ files:
|
|
247
268
|
- spec/core/model_spec.coffee
|
248
269
|
- spec/core/observer_spec.coffee
|
249
270
|
- spec/core/view_spec.coffee
|
271
|
+
- spec/define_spec.coffee
|
250
272
|
- spec/framework_spec.coffee
|
251
273
|
- spec/helper.coffee
|
252
274
|
- spec/managers/collection_manager_spec.coffee
|
253
275
|
- spec/managers/socket_manager_spec.coffee
|
276
|
+
- spec/mixin_spec.coffee
|
277
|
+
- spec/modules/filterable_spec.coffee
|
278
|
+
- spec/modules/paginatable_spec.coffee
|
279
|
+
- spec/modules/state_model_spec.coffee
|
254
280
|
- src/components/application.coffee
|
255
281
|
- src/components/base_toolbar.coffee
|
256
282
|
- src/components/collection_loader_view.coffee
|
@@ -271,8 +297,10 @@ files:
|
|
271
297
|
- src/components/grid_view.coffee
|
272
298
|
- src/components/index.coffee
|
273
299
|
- src/components/load_mask.coffee
|
300
|
+
- src/components/multi_collection_view.coffee
|
274
301
|
- src/components/nav_bar.coffee
|
275
302
|
- src/components/page_controller.coffee
|
303
|
+
- src/components/pagination_control.coffee
|
276
304
|
- src/components/record_manager.coffee
|
277
305
|
- src/components/router.coffee
|
278
306
|
- src/components/table_view.coffee
|
@@ -302,10 +330,19 @@ files:
|
|
302
330
|
- src/index.coffee
|
303
331
|
- src/managers/collection_manager.coffee
|
304
332
|
- src/managers/socket_manager.coffee
|
333
|
+
- src/modules/application_event_bindings.coffee
|
334
|
+
- src/modules/collection_event_bindings.coffee
|
305
335
|
- src/modules/deferrable.coffee
|
336
|
+
- src/modules/dom_helpers.coffee
|
337
|
+
- src/modules/enhanced_properties.coffee
|
338
|
+
- src/modules/filterable.coffee
|
306
339
|
- src/modules/grid_layout.coffee
|
307
|
-
- src/modules/
|
340
|
+
- src/modules/loadmaskable.coffee
|
308
341
|
- src/modules/local_storage.coffee
|
342
|
+
- src/modules/modal_view.coffee
|
343
|
+
- src/modules/paginatable.coffee
|
344
|
+
- src/modules/state_model.coffee
|
345
|
+
- src/modules/templating.coffee
|
309
346
|
- src/plugins/development_tool_helpers.coffee
|
310
347
|
- src/plugins/events.coffee
|
311
348
|
- src/samples/definition.coffee
|
@@ -325,31 +362,29 @@ files:
|
|
325
362
|
- src/stylesheets/tools/code_editor.scss
|
326
363
|
- src/stylesheets/tools/component_tester.scss
|
327
364
|
- src/stylesheets/tools/console.scss
|
328
|
-
- src/templates/components/bootstrap_form_controls.
|
329
|
-
- src/templates/components/collection_loader_view.
|
330
|
-
- src/templates/components/form_alert
|
331
|
-
- src/templates/components/
|
332
|
-
- src/templates/components/
|
333
|
-
- src/templates/components/
|
334
|
-
- src/templates/components/
|
335
|
-
- src/templates/components/
|
336
|
-
- src/templates/containers/basic.
|
337
|
-
- src/templates/containers/tab_selector_container.
|
338
|
-
- src/templates/containers/tab_view.
|
339
|
-
- src/templates/containers/toolbar_wrapper.
|
340
|
-
- src/templates/fields/button_field.
|
341
|
-
- src/templates/fields/button_field_link.
|
342
|
-
- src/templates/fields/checkbox_array.
|
343
|
-
- src/templates/fields/checkbox_array_item.
|
344
|
-
- src/templates/fields/checkbox_field.
|
345
|
-
- src/templates/fields/file_upload_field.
|
346
|
-
- src/templates/fields/hidden_field.
|
347
|
-
- src/templates/fields/select_field.
|
348
|
-
- src/templates/fields/text_area_field.
|
349
|
-
- src/templates/fields/text_field.
|
350
|
-
- src/templates/
|
351
|
-
- src/templates/sample/welcome.luca
|
352
|
-
- src/templates/table_view.luca
|
365
|
+
- src/templates/components/bootstrap_form_controls.jst.ejs
|
366
|
+
- src/templates/components/collection_loader_view.jst.ejs
|
367
|
+
- src/templates/components/form_alert.jst.ejs
|
368
|
+
- src/templates/components/grid_view.jst.ejs
|
369
|
+
- src/templates/components/grid_view_empty_text.jst.ejs
|
370
|
+
- src/templates/components/load_mask.jst.ejs
|
371
|
+
- src/templates/components/nav_bar.jst.ejs
|
372
|
+
- src/templates/components/pagination.jst.ejs
|
373
|
+
- src/templates/containers/basic.jst.ejs
|
374
|
+
- src/templates/containers/tab_selector_container.jst.ejs
|
375
|
+
- src/templates/containers/tab_view.jst.ejs
|
376
|
+
- src/templates/containers/toolbar_wrapper.jst.ejs
|
377
|
+
- src/templates/fields/button_field.jst.ejs
|
378
|
+
- src/templates/fields/button_field_link.jst.ejs
|
379
|
+
- src/templates/fields/checkbox_array.jst.ejs
|
380
|
+
- src/templates/fields/checkbox_array_item.jst.ejs
|
381
|
+
- src/templates/fields/checkbox_field.jst.ejs
|
382
|
+
- src/templates/fields/file_upload_field.jst.ejs
|
383
|
+
- src/templates/fields/hidden_field.jst.ejs
|
384
|
+
- src/templates/fields/select_field.jst.ejs
|
385
|
+
- src/templates/fields/text_area_field.jst.ejs
|
386
|
+
- src/templates/fields/text_field.jst.ejs
|
387
|
+
- src/templates/table_view.jst.ejs
|
353
388
|
- src/tools/application_inspector.coffee
|
354
389
|
- src/tools/code_editor.coffee
|
355
390
|
- src/tools/code_mirror_field.coffee
|
@@ -367,10 +402,13 @@ files:
|
|
367
402
|
- vendor/assets/images/glyphicons-halflings.png
|
368
403
|
- vendor/assets/javascripts/coffee-script.js
|
369
404
|
- vendor/assets/javascripts/jquery-console.js
|
405
|
+
- vendor/assets/javascripts/luca-ui-base.js
|
406
|
+
- vendor/assets/javascripts/luca-ui-bootstrap.js
|
370
407
|
- vendor/assets/javascripts/luca-ui-development-tools.js
|
371
408
|
- vendor/assets/javascripts/luca-ui-development-tools.min.js
|
372
409
|
- vendor/assets/javascripts/luca-ui-full.js
|
373
410
|
- vendor/assets/javascripts/luca-ui-full.min.js
|
411
|
+
- vendor/assets/javascripts/luca-ui-spec.js
|
374
412
|
- vendor/assets/javascripts/luca-ui-templates.js
|
375
413
|
- vendor/assets/javascripts/luca-ui.js
|
376
414
|
- vendor/assets/javascripts/luca-ui.min.js
|
@@ -464,6 +502,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
464
502
|
- - ! '>='
|
465
503
|
- !ruby/object:Gem::Version
|
466
504
|
version: '0'
|
505
|
+
segments:
|
506
|
+
- 0
|
507
|
+
hash: 2087813978207561883
|
467
508
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
509
|
none: false
|
469
510
|
requirements:
|
@@ -1 +0,0 @@
|
|
1
|
-
%div{:id=>"<%= id %>",:class=>"<%= classes %>",:style=>"<%= style %>"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
%div{:id=>"<%= cid %>-tab-selector",:class=>"tab-selector-container"}
|
2
|
-
%ul{:id=>"<%= cid %>-tabs-nav",:class=>"nav nav-tabs"}
|
3
|
-
<% for(var i = 0; i < components.length; i++ ) { %>
|
4
|
-
<% var component = components[i];%>
|
5
|
-
%li.tab-selector{:data=>{:target=>"<%= i %>"}}
|
6
|
-
%a{:data=>{:target=>"<%= i %>"}}
|
7
|
-
<%= component.title %>
|
8
|
-
<% } %>
|
@@ -1 +0,0 @@
|
|
1
|
-
%div{:class=>"luca-ui-toolbar-wrapper",:id=>"<%= id %>"}
|
@@ -1 +0,0 @@
|
|
1
|
-
%input{:id=>"<%= input_id %>",:type=>"hidden",:name=>"<%= input_name %>",:value=>"<%= input_value %>"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<% if(typeof(label)!=="undefined" && (typeof(hideLabel) !== "undefined" && !hideLabel) || (typeof(hideLabel)==="undefined")) {%>
|
2
|
-
%label.control-label{:for=>"<%= input_id %>"}
|
3
|
-
<%= label %>
|
4
|
-
<% } %>
|
5
|
-
|
6
|
-
.controls
|
7
|
-
<% if( typeof(addOn) !== "undefined" ) { %>
|
8
|
-
%span.add-on
|
9
|
-
<%= addOn %>
|
10
|
-
<% } %>
|
11
|
-
|
12
|
-
%input{:style=>"<%= inputStyles %>",:id=>"<%= input_id %>",:type=>"text",:name=>"<%= input_name %>",:placeholder=>"<%= placeHolder %>", :class=>"<%= input_class %>"}
|
13
|
-
|
14
|
-
<% if(helperText) { %>
|
15
|
-
%p.helper-text.help-block
|
16
|
-
<%= helperText %>
|
17
|
-
<% } %>
|
@@ -1 +0,0 @@
|
|
1
|
-
%p Sample Contents
|
@@ -1 +0,0 @@
|
|
1
|
-
welcome.luca
|