netzke-basepack 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -2
- data/README.md +6 -0
- data/lib/netzke-basepack.rb +1 -0
- data/lib/netzke/basepack/columns.rb +13 -0
- data/lib/netzke/basepack/data_adapters/active_record_adapter.rb +64 -37
- data/lib/netzke/basepack/form.rb +5 -1
- data/lib/netzke/basepack/form/javascripts/form.js +9 -9
- data/lib/netzke/basepack/grid.rb +51 -2
- data/lib/netzke/basepack/grid/javascripts/event_handling.js +1 -13
- data/lib/netzke/basepack/grid/javascripts/grid.js +29 -16
- data/lib/netzke/basepack/grid/javascripts/remember_selection.js +25 -0
- data/lib/netzke/basepack/query_builder.rb +2 -1
- data/lib/netzke/basepack/search_panel.rb +17 -32
- data/lib/netzke/basepack/search_panel/javascripts/condition_field.js +11 -4
- data/lib/netzke/basepack/version.rb +1 -1
- data/locales/es.yml +99 -0
- data/locales/nl.yml +99 -0
- data/test/basepack_test_app/app/components/book_grid_date_default_filtering.rb +12 -0
- data/test/basepack_test_app/app/components/book_grid_default_filtering.rb +12 -0
- data/test/basepack_test_app/app/components/book_grid_with_custom_columns.rb +2 -1
- data/test/basepack_test_app/app/components/book_query_builder.rb +1 -1
- data/test/basepack_test_app/app/components/book_search_panel.rb +4 -2
- data/test/basepack_test_app/app/components/panel_with_grid_with_default_filtering.rb +30 -0
- data/test/basepack_test_app/app/controllers/components_controller.rb +8 -0
- data/test/basepack_test_app/app/models/author.rb +2 -2
- data/test/basepack_test_app/app/models/book.rb +1 -1
- data/test/basepack_test_app/app/models/user.rb +1 -1
- data/test/basepack_test_app/config/routes.rb +2 -1
- data/test/basepack_test_app/db/development.sqlite3 +0 -0
- data/test/basepack_test_app/db/seeds.rb +7 -7
- data/test/basepack_test_app/db/test.sqlite3 +0 -0
- data/test/basepack_test_app/features/form_panel.feature +2 -16
- data/test/basepack_test_app/features/grid.feature +20 -18
- data/test/basepack_test_app/features/grid_default_filters.feature +42 -0
- data/test/basepack_test_app/features/grid_sorting.feature +4 -9
- data/test/basepack_test_app/features/paging_form_panel.feature +12 -29
- data/test/basepack_test_app/features/search_in_grid.feature +95 -42
- data/test/basepack_test_app/features/step_definitions/grid_panel_steps.rb +6 -0
- data/test/basepack_test_app/features/window.feature +1 -0
- data/test/basepack_test_app/log/development.log +20592 -0
- data/test/basepack_test_app/log/test.log +110433 -0
- data/test/basepack_test_app/spec/active_record_adapter_spec.rb +8 -0
- data/test/basepack_test_app/spec/fixtures/users.yml +3 -0
- data/test/basepack_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc +0 -0
- data/test/basepack_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2 +0 -0
- data/test/basepack_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb +0 -0
- data/test/basepack_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55 +0 -0
- data/test/basepack_test_app/tmp/pids/server.pid +1 -0
- metadata +17 -4
- data/test/basepack_test_app/features/tab_panel.feature +0 -13
@@ -18,4 +18,12 @@ describe Netzke::Basepack::DataAdapters::ActiveRecordAdapter do
|
|
18
18
|
adapter.virtual_attribute?({name: 'author__name'}).should be_true
|
19
19
|
adapter.virtual_attribute?({name: 'read_only_virtual_attr'}).should be_true
|
20
20
|
end
|
21
|
+
|
22
|
+
describe '#record_value_for_attribute' do
|
23
|
+
it 'returns nil for attribute with name "some_assoc__id" if the association is nil' do
|
24
|
+
adapter = Netzke::Basepack::DataAdapters::ActiveRecordAdapter.new(Book)
|
25
|
+
book = Book.create(title: 'Foo')
|
26
|
+
adapter.record_value_for_attribute(book, {name: 'author__id'}, true).should be_nil
|
27
|
+
end
|
28
|
+
end
|
21
29
|
end
|
data/test/basepack_test_app/tmp/cache/assets/C92/5A0/sprockets%2F39e75754782ee12179bf35c9a0971d80
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/C9F/750/sprockets%2F20ce3d64040a5d3a0a8883bd60754356
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/CC4/C00/sprockets%2Fc615df52887d8c2e67e8413576a419c5
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/D0E/870/sprockets%2Fa593bf4fac106add88c9434141a49663
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/D14/8E0/sprockets%2F20748e8d1d7d090d122904a9fe6f18fc
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/D3E/DA0/sprockets%2Fa175f1ac5996544b908ba3ba3f64c4f3
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/D43/C00/sprockets%2F7bc60c758776356d615ab5edff201ee2
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/D98/9C0/sprockets%2F18b80e8fe200aebc522e561a867ea6fb
CHANGED
Binary file
|
data/test/basepack_test_app/tmp/cache/assets/DB0/6E0/sprockets%2F03e33f5a4779eeb48bcfc86ee717fb55
CHANGED
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
6436
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netzke-basepack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nomadcoder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netzke-core
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/netzke/basepack/grid/javascripts/event_handling.js
|
118
118
|
- lib/netzke/basepack/grid/javascripts/grid.js
|
119
119
|
- lib/netzke/basepack/grid/javascripts/misc.js
|
120
|
+
- lib/netzke/basepack/grid/javascripts/remember_selection.js
|
120
121
|
- lib/netzke/basepack/grid/services.rb
|
121
122
|
- lib/netzke/basepack/grid.rb
|
122
123
|
- lib/netzke/basepack/item_persistence/events_plugin.rb
|
@@ -145,6 +146,8 @@ files:
|
|
145
146
|
- lib/tasks/netzke_basepack_tasks.rake
|
146
147
|
- locales/de.yml
|
147
148
|
- locales/en.yml
|
149
|
+
- locales/es.yml
|
150
|
+
- locales/nl.yml
|
148
151
|
- locales/ru.yml
|
149
152
|
- stylesheets/basepack.css
|
150
153
|
- stylesheets/datetimefield.css
|
@@ -164,6 +167,8 @@ files:
|
|
164
167
|
- test/basepack_test_app/app/components/book_form_with_file_upload.rb
|
165
168
|
- test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
|
166
169
|
- test/basepack_test_app/app/components/book_grid.rb
|
170
|
+
- test/basepack_test_app/app/components/book_grid_date_default_filtering.rb
|
171
|
+
- test/basepack_test_app/app/components/book_grid_default_filtering.rb
|
167
172
|
- test/basepack_test_app/app/components/book_grid_filtering.rb
|
168
173
|
- test/basepack_test_app/app/components/book_grid_loader.rb
|
169
174
|
- test/basepack_test_app/app/components/book_grid_with_custom_columns.rb
|
@@ -199,6 +204,7 @@ files:
|
|
199
204
|
- test/basepack_test_app/app/components/lockable_book_form.rb
|
200
205
|
- test/basepack_test_app/app/components/lockable_user_form.rb
|
201
206
|
- test/basepack_test_app/app/components/paging_form_with_search.rb
|
207
|
+
- test/basepack_test_app/app/components/panel_with_grid_with_default_filtering.rb
|
202
208
|
- test/basepack_test_app/app/components/panel_with_persistent_regions.rb
|
203
209
|
- test/basepack_test_app/app/components/query_builder.rb
|
204
210
|
- test/basepack_test_app/app/components/simple_panel.rb
|
@@ -277,6 +283,7 @@ files:
|
|
277
283
|
- test/basepack_test_app/db/test.sqlite3
|
278
284
|
- test/basepack_test_app/features/form_panel.feature
|
279
285
|
- test/basepack_test_app/features/grid.feature
|
286
|
+
- test/basepack_test_app/features/grid_default_filters.feature
|
280
287
|
- test/basepack_test_app/features/grid_filters.feature
|
281
288
|
- test/basepack_test_app/features/grid_sorting.feature
|
282
289
|
- test/basepack_test_app/features/grid_with_custom_primary_key.feature
|
@@ -299,7 +306,6 @@ files:
|
|
299
306
|
- test/basepack_test_app/features/support/paths.rb
|
300
307
|
- test/basepack_test_app/features/support/pickle.rb
|
301
308
|
- test/basepack_test_app/features/support/selectors.rb
|
302
|
-
- test/basepack_test_app/features/tab_panel.feature
|
303
309
|
- test/basepack_test_app/features/window.feature
|
304
310
|
- test/basepack_test_app/Guardfile
|
305
311
|
- test/basepack_test_app/lib/tasks/cucumber.rake
|
@@ -329,6 +335,7 @@ files:
|
|
329
335
|
- test/basepack_test_app/spec/attr_config_spec.rb
|
330
336
|
- test/basepack_test_app/spec/column_config_spec.rb
|
331
337
|
- test/basepack_test_app/spec/columns_spec.rb
|
338
|
+
- test/basepack_test_app/spec/fixtures/users.yml
|
332
339
|
- test/basepack_test_app/spec/spec_helper.rb
|
333
340
|
- test/basepack_test_app/test/performance/browsing_test.rb
|
334
341
|
- test/basepack_test_app/test/test_helper.rb
|
@@ -348,6 +355,7 @@ files:
|
|
348
355
|
- test/basepack_test_app/tmp/Hey.app/Contents/MacOS/Hey
|
349
356
|
- test/basepack_test_app/tmp/hey.appify/Contents/Info.plist
|
350
357
|
- test/basepack_test_app/tmp/hey.appify/Contents/MacOS/temp
|
358
|
+
- test/basepack_test_app/tmp/pids/server.pid
|
351
359
|
- test/basepack_test_app/tmp/restart.txt
|
352
360
|
- test/basepack_test_app/tmp/temp.appify/Contents/Info.plist
|
353
361
|
- test/basepack_test_app/tmp/temp.appify/Contents/MacOS/temp.sh
|
@@ -404,6 +412,8 @@ test_files:
|
|
404
412
|
- test/basepack_test_app/app/components/book_form_with_file_upload.rb
|
405
413
|
- test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
|
406
414
|
- test/basepack_test_app/app/components/book_grid.rb
|
415
|
+
- test/basepack_test_app/app/components/book_grid_date_default_filtering.rb
|
416
|
+
- test/basepack_test_app/app/components/book_grid_default_filtering.rb
|
407
417
|
- test/basepack_test_app/app/components/book_grid_filtering.rb
|
408
418
|
- test/basepack_test_app/app/components/book_grid_loader.rb
|
409
419
|
- test/basepack_test_app/app/components/book_grid_with_custom_columns.rb
|
@@ -439,6 +449,7 @@ test_files:
|
|
439
449
|
- test/basepack_test_app/app/components/lockable_book_form.rb
|
440
450
|
- test/basepack_test_app/app/components/lockable_user_form.rb
|
441
451
|
- test/basepack_test_app/app/components/paging_form_with_search.rb
|
452
|
+
- test/basepack_test_app/app/components/panel_with_grid_with_default_filtering.rb
|
442
453
|
- test/basepack_test_app/app/components/panel_with_persistent_regions.rb
|
443
454
|
- test/basepack_test_app/app/components/query_builder.rb
|
444
455
|
- test/basepack_test_app/app/components/simple_panel.rb
|
@@ -517,6 +528,7 @@ test_files:
|
|
517
528
|
- test/basepack_test_app/db/test.sqlite3
|
518
529
|
- test/basepack_test_app/features/form_panel.feature
|
519
530
|
- test/basepack_test_app/features/grid.feature
|
531
|
+
- test/basepack_test_app/features/grid_default_filters.feature
|
520
532
|
- test/basepack_test_app/features/grid_filters.feature
|
521
533
|
- test/basepack_test_app/features/grid_sorting.feature
|
522
534
|
- test/basepack_test_app/features/grid_with_custom_primary_key.feature
|
@@ -539,7 +551,6 @@ test_files:
|
|
539
551
|
- test/basepack_test_app/features/support/paths.rb
|
540
552
|
- test/basepack_test_app/features/support/pickle.rb
|
541
553
|
- test/basepack_test_app/features/support/selectors.rb
|
542
|
-
- test/basepack_test_app/features/tab_panel.feature
|
543
554
|
- test/basepack_test_app/features/window.feature
|
544
555
|
- test/basepack_test_app/Guardfile
|
545
556
|
- test/basepack_test_app/lib/tasks/cucumber.rake
|
@@ -569,6 +580,7 @@ test_files:
|
|
569
580
|
- test/basepack_test_app/spec/attr_config_spec.rb
|
570
581
|
- test/basepack_test_app/spec/column_config_spec.rb
|
571
582
|
- test/basepack_test_app/spec/columns_spec.rb
|
583
|
+
- test/basepack_test_app/spec/fixtures/users.yml
|
572
584
|
- test/basepack_test_app/spec/spec_helper.rb
|
573
585
|
- test/basepack_test_app/test/performance/browsing_test.rb
|
574
586
|
- test/basepack_test_app/test/test_helper.rb
|
@@ -588,6 +600,7 @@ test_files:
|
|
588
600
|
- test/basepack_test_app/tmp/Hey.app/Contents/MacOS/Hey
|
589
601
|
- test/basepack_test_app/tmp/hey.appify/Contents/Info.plist
|
590
602
|
- test/basepack_test_app/tmp/hey.appify/Contents/MacOS/temp
|
603
|
+
- test/basepack_test_app/tmp/pids/server.pid
|
591
604
|
- test/basepack_test_app/tmp/restart.txt
|
592
605
|
- test/basepack_test_app/tmp/temp.appify/Contents/Info.plist
|
593
606
|
- test/basepack_test_app/tmp/temp.appify/Contents/MacOS/temp.sh
|
@@ -1,13 +0,0 @@
|
|
1
|
-
Feature: Tab panel
|
2
|
-
In order to value
|
3
|
-
As a role
|
4
|
-
I want feature
|
5
|
-
|
6
|
-
@javascript
|
7
|
-
Scenario: Lazy loading of a component into a tab when the latter gets open
|
8
|
-
When I go to the SomeTabPanel test page
|
9
|
-
Then active tab should have button "Update html"
|
10
|
-
When I press "Panel Two"
|
11
|
-
Then active tab should have button "Update html"
|
12
|
-
When I press "Update html"
|
13
|
-
Then I should see "Update for Panel Two"
|