netzke-basepack 0.7.7 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +15 -10
- data/{CHANGELOG.rdoc → CHANGELOG.md} +146 -110
- data/LICENSE +7 -1
- data/README.md +47 -56
- data/Rakefile +5 -5
- data/config/before-travis.sh +10 -0
- data/javascripts/basepack.js +0 -130
- data/javascripts/netzkeremotecombo.js +59 -0
- data/lib/netzke/basepack.rb +9 -14
- data/lib/netzke/basepack/accordion.rb +45 -0
- data/lib/netzke/basepack/active_record.rb +12 -0
- data/lib/netzke/basepack/active_record/relation_extensions.rb +27 -0
- data/lib/netzke/basepack/columns.rb +309 -0
- data/lib/netzke/basepack/data_accessor.rb +22 -12
- data/lib/netzke/basepack/data_adapters/abstract_adapter.rb +75 -11
- data/lib/netzke/basepack/data_adapters/active_record_adapter.rb +154 -49
- data/lib/netzke/basepack/fields.rb +162 -0
- data/lib/netzke/basepack/form.rb +136 -0
- data/lib/netzke/basepack/{form_panel → form}/javascripts/comma_list_cbg.js +0 -1
- data/lib/netzke/basepack/{form_panel/javascripts/form_panel.js → form/javascripts/form.js} +20 -26
- data/lib/netzke/basepack/{form_panel → form}/javascripts/n_radio_group.js +0 -1
- data/lib/netzke/basepack/{form_panel → form}/javascripts/readonly_mode.js +0 -0
- data/lib/netzke/basepack/form/services.rb +115 -0
- data/lib/netzke/basepack/{form_panel → form}/stylesheets/readonly_mode.css +0 -0
- data/lib/netzke/basepack/grid.rb +355 -0
- data/lib/netzke/basepack/{grid_panel → grid}/javascripts/advanced_search.js +1 -1
- data/lib/netzke/basepack/{grid_panel → grid}/javascripts/check_column_fix.js +0 -0
- data/lib/netzke/basepack/{grid_panel → grid}/javascripts/edit_in_form.js +3 -3
- data/lib/netzke/basepack/{grid_panel → grid}/javascripts/event_handling.js +5 -2
- data/lib/netzke/basepack/{grid_panel/javascripts/grid_panel.js → grid/javascripts/grid.js} +120 -132
- data/lib/netzke/basepack/{grid_panel → grid}/javascripts/misc.js +0 -0
- data/lib/netzke/basepack/grid/services.rb +216 -0
- data/lib/netzke/basepack/item_persistence.rb +44 -0
- data/lib/netzke/basepack/item_persistence/events_plugin.rb +47 -0
- data/lib/netzke/basepack/{paging_form_panel.rb → paging_form.rb} +24 -30
- data/lib/netzke/basepack/{paging_form_panel/javascripts/paging_form_panel.js → paging_form/javascripts/paging_form.js} +2 -4
- data/lib/netzke/basepack/query_builder.rb +44 -73
- data/lib/netzke/basepack/query_builder/javascripts/query_builder.js +16 -2
- data/lib/netzke/basepack/record_form_window.rb +67 -0
- data/lib/netzke/basepack/search_panel.rb +22 -24
- data/lib/netzke/basepack/search_panel/javascripts/condition_field.js +2 -2
- data/lib/netzke/basepack/search_window.rb +47 -53
- data/lib/netzke/basepack/simple_app.rb +10 -13
- data/lib/netzke/basepack/simple_app/javascripts/simple_app.js +2 -8
- data/lib/netzke/basepack/tab_panel.rb +5 -4
- data/lib/netzke/basepack/tab_panel/javascripts/tab_panel.js +5 -5
- data/lib/netzke/basepack/version.rb +2 -2
- data/lib/netzke/basepack/viewport.rb +16 -0
- data/lib/netzke/basepack/window.rb +27 -18
- data/lib/netzke/basepack/window/javascripts/window.js +7 -1
- data/lib/netzke/basepack/wrap_lazy_loaded.rb +18 -18
- data/locales/en.yml +40 -24
- data/netzke-basepack.gemspec +51 -82
- data/stylesheets/basepack.css +0 -41
- data/test/basepack_test_app/Gemfile +9 -46
- data/test/basepack_test_app/Gemfile.lock +61 -96
- data/test/basepack_test_app/app/components/author_form.rb +8 -5
- data/test/basepack_test_app/app/components/author_grid.rb +2 -2
- data/test/basepack_test_app/app/components/book_form.rb +34 -31
- data/test/basepack_test_app/app/components/book_form_with_defaults.rb +6 -7
- data/test/basepack_test_app/app/components/book_form_with_file_upload.rb +10 -0
- data/test/basepack_test_app/app/components/book_form_with_nested_attributes.rb +5 -6
- data/test/basepack_test_app/app/components/book_grid.rb +19 -8
- data/test/basepack_test_app/app/components/book_grid_filtering.rb +4 -7
- data/test/basepack_test_app/app/components/book_grid_loader.rb +28 -15
- data/test/basepack_test_app/app/components/book_grid_with_custom_columns.rb +45 -21
- data/test/basepack_test_app/app/components/book_grid_with_default_values.rb +26 -8
- data/test/basepack_test_app/app/components/book_grid_with_excluded_columns.rb +11 -0
- data/test/basepack_test_app/app/components/book_grid_with_extra_feedback.rb +2 -2
- data/test/basepack_test_app/app/components/book_grid_with_extra_filters.rb +7 -6
- data/test/basepack_test_app/app/components/book_grid_with_mass_assignment_security.rb +9 -0
- data/test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb +9 -9
- data/test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb +5 -3
- data/test/basepack_test_app/app/components/book_grid_with_paging.rb +6 -8
- data/test/basepack_test_app/app/components/book_grid_with_persistence.rb +6 -4
- data/test/basepack_test_app/app/components/book_grid_with_scope.rb +6 -0
- data/test/basepack_test_app/app/components/book_grid_with_scoped_authors.rb +10 -7
- data/test/basepack_test_app/app/components/book_grid_with_virtual_attributes.rb +21 -13
- data/test/basepack_test_app/app/components/book_paging_form.rb +21 -0
- data/test/basepack_test_app/app/components/book_query_builder.rb +7 -6
- data/test/basepack_test_app/app/components/book_with_custom_primary_key_grid.rb +6 -7
- data/test/basepack_test_app/app/components/books_bound_to_author.rb +9 -7
- data/test/basepack_test_app/app/components/border_layout_panel_with_persistence.rb +12 -0
- data/test/basepack_test_app/app/components/double_book_grid.rb +19 -14
- data/test/basepack_test_app/app/components/form_without_model.rb +15 -16
- data/test/basepack_test_app/app/components/grid_with_initial_sorting.rb +7 -0
- data/test/basepack_test_app/app/components/grid_with_inline_data.rb +7 -0
- data/test/basepack_test_app/app/components/paging_form_with_search.rb +2 -2
- data/test/basepack_test_app/app/components/panel_with_persistent_regions.rb +35 -0
- data/test/basepack_test_app/app/components/query_builder.rb +7 -0
- data/test/basepack_test_app/app/components/simple_panel.rb +16 -11
- data/test/basepack_test_app/app/components/simple_window.rb +7 -6
- data/test/basepack_test_app/app/components/some_accordion.rb +18 -0
- data/test/basepack_test_app/app/components/some_auth_app.rb +5 -5
- data/test/basepack_test_app/app/components/some_border_layout.rb +20 -20
- data/test/basepack_test_app/app/components/some_search_panel.rb +6 -0
- data/test/basepack_test_app/app/components/some_simple_app.rb +30 -16
- data/test/basepack_test_app/app/components/some_tab_panel.rb +18 -15
- data/test/basepack_test_app/app/components/user_form.rb +18 -16
- data/test/basepack_test_app/app/components/user_form_with_default_fields.rb +5 -6
- data/test/basepack_test_app/app/components/user_grid.rb +11 -6
- data/test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb +5 -3
- data/test/basepack_test_app/app/components/window_component_loader.rb +25 -21
- data/test/basepack_test_app/app/models/address.rb +0 -26
- data/test/basepack_test_app/app/models/author.rb +0 -31
- data/test/basepack_test_app/app/models/book.rb +1 -42
- data/test/basepack_test_app/app/models/book_with_custom_primary_key.rb +1 -23
- data/test/basepack_test_app/app/models/role.rb +0 -21
- data/test/basepack_test_app/app/models/user.rb +0 -24
- data/test/basepack_test_app/app/views/layouts/components.html.erb +1 -1
- data/test/basepack_test_app/config/application.rb +1 -1
- data/test/basepack_test_app/config/database.yml.travis +2 -6
- data/test/basepack_test_app/config/initializers/netzke.rb +1 -6
- data/test/basepack_test_app/db/schema.rb +14 -14
- data/test/basepack_test_app/features/accordion_panel.feature +2 -2
- data/test/basepack_test_app/features/form_panel.feature +7 -7
- data/test/basepack_test_app/features/grid_panel.feature +93 -39
- data/test/basepack_test_app/features/grid_panel_with_custom_primary_key.feature +2 -1
- data/test/basepack_test_app/features/grid_sorting.feature +30 -6
- data/test/basepack_test_app/features/paging_form_panel.feature +7 -7
- data/test/basepack_test_app/features/persistent_regions.feature +30 -0
- data/test/basepack_test_app/features/search_in_grid.feature +5 -5
- data/test/basepack_test_app/features/simple_app.feature +6 -7
- data/test/basepack_test_app/features/step_definitions/form_panel_steps.rb +1 -1
- data/test/basepack_test_app/features/step_definitions/generic_steps.rb +109 -4
- data/test/basepack_test_app/features/step_definitions/grid_panel_steps.rb +8 -10
- data/test/basepack_test_app/features/step_definitions/window_steps.rb +27 -0
- data/test/basepack_test_app/features/tab_panel.feature +1 -1
- data/test/basepack_test_app/features/window.feature +17 -0
- data/test/unit/accordion_panel_test.rb +2 -2
- data/test/unit/grid_panel_test.rb +4 -4
- metadata +57 -83
- data/TODO.rdoc +0 -8
- data/lib/generators/netzke/basepack_generator.rb +0 -10
- data/lib/generators/netzke/templates/assets/ts-checkbox.gif +0 -0
- data/lib/generators/netzke/templates/create_netzke_field_lists.rb +0 -18
- data/lib/netzke/active_record.rb +0 -20
- data/lib/netzke/active_record/attributes.rb +0 -259
- data/lib/netzke/active_record/combobox_options.rb +0 -16
- data/lib/netzke/active_record/relation_extensions.rb +0 -37
- data/lib/netzke/basepack/accordion_panel.rb +0 -39
- data/lib/netzke/basepack/action_column.rb +0 -68
- data/lib/netzke/basepack/action_column/javascripts/action_column.js +0 -61
- data/lib/netzke/basepack/auth_app.rb +0 -159
- data/lib/netzke/basepack/basic_app.rb +0 -7
- data/lib/netzke/basepack/border_layout_panel.rb +0 -53
- data/lib/netzke/basepack/border_layout_panel/javascripts/border_layout_panel.js +0 -40
- data/lib/netzke/basepack/data_adapters/data_mapper_adapter.rb +0 -264
- data/lib/netzke/basepack/data_adapters/sequel_adapter.rb +0 -260
- data/lib/netzke/basepack/form_panel.rb +0 -144
- data/lib/netzke/basepack/form_panel/fields.rb +0 -208
- data/lib/netzke/basepack/form_panel/javascripts/misc.js +0 -4
- data/lib/netzke/basepack/form_panel/services.rb +0 -142
- data/lib/netzke/basepack/grid_panel.rb +0 -441
- data/lib/netzke/basepack/grid_panel/columns.rb +0 -400
- data/lib/netzke/basepack/grid_panel/javascripts/rows-dd.js +0 -281
- data/lib/netzke/basepack/grid_panel/record_form_window.rb +0 -41
- data/lib/netzke/basepack/grid_panel/services.rb +0 -235
- data/lib/netzke/basepack/panel.rb +0 -11
- data/lib/netzke/basepack/wrapper.rb +0 -28
- data/lib/netzke/data_mapper.rb +0 -18
- data/lib/netzke/data_mapper/attributes.rb +0 -273
- data/lib/netzke/data_mapper/combobox_options.rb +0 -11
- data/lib/netzke/data_mapper/relation_extensions.rb +0 -38
- data/lib/netzke/sequel.rb +0 -18
- data/lib/netzke/sequel/attributes.rb +0 -274
- data/lib/netzke/sequel/combobox_options.rb +0 -10
- data/lib/netzke/sequel/relation_extensions.rb +0 -40
- data/locales/zh-cn.yml +0 -79
- data/test/basepack_test_app/app/components/book_form_with_custom_fields.rb +0 -21
- data/test/basepack_test_app/app/components/book_grid_with_column_actions.rb +0 -15
- data/test/basepack_test_app/app/components/book_grid_with_defaults.rb +0 -6
- data/test/basepack_test_app/app/components/book_paging_form_panel.rb +0 -22
- data/test/basepack_test_app/app/components/generic_user_form.rb +0 -12
- data/test/basepack_test_app/app/components/simple_accordion.rb +0 -11
- data/test/basepack_test_app/app/components/simple_tab_panel.rb +0 -11
- data/test/basepack_test_app/app/components/simple_wrapper.rb +0 -7
- data/test/basepack_test_app/app/components/some_accordion_panel.rb +0 -22
- data/test/basepack_test_app/app/presenters/forms/generic_user.rb +0 -6
- data/test/basepack_test_app/app/views/components/loadable_window.html.erb +0 -9
- data/test/basepack_test_app/app/views/components/simple_panel.html.erb +0 -1
- data/test/basepack_test_app/features/components_in_view.feature +0 -11
- data/test/basepack_test_app/features/simple_panel.feature +0 -11
- data/test/basepack_test_app/features/validations_in_grid.feature +0 -13
- data/test/basepack_test_app/features/virtual_attributes.feature +0 -16
- data/test/basepack_test_app/spec/components/form_panel_spec.rb +0 -53
- data/test/basepack_test_app/spec/components/grid_panel_spec.rb +0 -10
- data/test/basepack_test_app/spec/data_adapter/adapter_spec.rb +0 -68
- data/test/basepack_test_app/spec/data_adapter/attributes_spec.rb +0 -56
- data/test/basepack_test_app/spec/data_adapter/relation_extensions_spec.rb +0 -125
- data/test/basepack_test_app/spec/factories.rb +0 -28
- data/test/basepack_test_app/spec/spec_helper.rb +0 -39
data/locales/en.yml
CHANGED
@@ -1,40 +1,55 @@
|
|
1
1
|
en:
|
2
2
|
netzke:
|
3
3
|
basepack:
|
4
|
-
|
4
|
+
grid:
|
5
5
|
actions:
|
6
|
-
add:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
add:
|
7
|
+
text: Add
|
8
|
+
edit:
|
9
|
+
text: Edit
|
10
|
+
del:
|
11
|
+
text: Delete
|
12
|
+
tooltip: Delete
|
13
|
+
apply:
|
14
|
+
text: Apply
|
15
|
+
add_in_form:
|
16
|
+
text: Add in form
|
17
|
+
edit_in_form:
|
18
|
+
text: Edit in form
|
19
|
+
search:
|
20
|
+
text: Search
|
13
21
|
|
14
22
|
deleted_n_records: "Deleted %{n} record(s)"
|
15
23
|
cannot_delete: "You don't have permissions to delete data"
|
16
24
|
confirmation: Confirmation
|
17
25
|
are_you_sure: Are you sure?
|
18
26
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
27
|
+
record_form_window:
|
28
|
+
actions:
|
29
|
+
ok:
|
30
|
+
text: OK
|
31
|
+
cancel:
|
32
|
+
text: Cancel
|
23
33
|
|
24
34
|
search_window:
|
25
35
|
title: Extended search
|
26
36
|
actions:
|
27
|
-
search:
|
28
|
-
|
37
|
+
search:
|
38
|
+
text: Search
|
39
|
+
cancel:
|
40
|
+
text: Cancel
|
29
41
|
|
30
|
-
|
42
|
+
form:
|
31
43
|
actions:
|
32
|
-
edit:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
44
|
+
edit:
|
45
|
+
text: Edit
|
46
|
+
tooltip: Edit
|
47
|
+
cancel:
|
48
|
+
text: Cancel
|
49
|
+
tooltip: Cancel editing
|
50
|
+
apply:
|
51
|
+
text: Apply
|
52
|
+
tooltip: Apply changes
|
38
53
|
|
39
54
|
search_panel:
|
40
55
|
presets: Presets
|
@@ -47,10 +62,11 @@ en:
|
|
47
62
|
before: Before
|
48
63
|
after: After
|
49
64
|
|
50
|
-
|
65
|
+
paging_form:
|
51
66
|
actions:
|
52
|
-
search:
|
53
|
-
|
67
|
+
search:
|
68
|
+
text: Search
|
69
|
+
tooltip: Extended search
|
54
70
|
|
55
71
|
query_builder:
|
56
72
|
presets: Presets
|
data/netzke-basepack.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "netzke-basepack"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["nomadcoder"]
|
12
|
-
s.date = "2012-
|
13
|
-
s.description = "A set of
|
12
|
+
s.date = "2012-12-09"
|
13
|
+
s.description = "A set of feature-rich extendible Netzke components (such as Form, Grid, Window, TabPanel, etc) which can be used as building block for your RIA"
|
14
14
|
s.email = "nmcoder@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
@@ -19,62 +19,49 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".autotest",
|
21
21
|
".travis.yml",
|
22
|
-
"CHANGELOG.
|
22
|
+
"CHANGELOG.md",
|
23
23
|
"LICENSE",
|
24
24
|
"README.md",
|
25
25
|
"Rakefile",
|
26
|
-
"
|
26
|
+
"config/before-travis.sh",
|
27
27
|
"config/ci/before-travis.sh",
|
28
28
|
"init.rb",
|
29
29
|
"install.rb",
|
30
30
|
"javascripts/basepack.js",
|
31
|
+
"javascripts/netzkeremotecombo.js",
|
31
32
|
"javascripts/xdatetime.js",
|
32
|
-
"lib/generators/netzke/basepack_generator.rb",
|
33
|
-
"lib/generators/netzke/templates/assets/ts-checkbox.gif",
|
34
|
-
"lib/generators/netzke/templates/create_netzke_field_lists.rb",
|
35
33
|
"lib/netzke-basepack.rb",
|
36
|
-
"lib/netzke/active_record.rb",
|
37
|
-
"lib/netzke/active_record/attributes.rb",
|
38
|
-
"lib/netzke/active_record/combobox_options.rb",
|
39
|
-
"lib/netzke/active_record/relation_extensions.rb",
|
40
34
|
"lib/netzke/basepack.rb",
|
41
|
-
"lib/netzke/basepack/
|
42
|
-
"lib/netzke/basepack/
|
43
|
-
"lib/netzke/basepack/
|
44
|
-
"lib/netzke/basepack/
|
45
|
-
"lib/netzke/basepack/basic_app.rb",
|
46
|
-
"lib/netzke/basepack/border_layout_panel.rb",
|
47
|
-
"lib/netzke/basepack/border_layout_panel/javascripts/border_layout_panel.js",
|
35
|
+
"lib/netzke/basepack/accordion.rb",
|
36
|
+
"lib/netzke/basepack/active_record.rb",
|
37
|
+
"lib/netzke/basepack/active_record/relation_extensions.rb",
|
38
|
+
"lib/netzke/basepack/columns.rb",
|
48
39
|
"lib/netzke/basepack/data_accessor.rb",
|
49
40
|
"lib/netzke/basepack/data_adapters/abstract_adapter.rb",
|
50
41
|
"lib/netzke/basepack/data_adapters/active_record_adapter.rb",
|
51
|
-
"lib/netzke/basepack/
|
52
|
-
"lib/netzke/basepack/
|
53
|
-
"lib/netzke/basepack/
|
54
|
-
"lib/netzke/basepack/
|
55
|
-
"lib/netzke/basepack/
|
56
|
-
"lib/netzke/basepack/
|
57
|
-
"lib/netzke/basepack/
|
58
|
-
"lib/netzke/basepack/
|
59
|
-
"lib/netzke/basepack/
|
60
|
-
"lib/netzke/basepack/
|
61
|
-
"lib/netzke/basepack/
|
62
|
-
"lib/netzke/basepack/
|
63
|
-
"lib/netzke/basepack/
|
64
|
-
"lib/netzke/basepack/
|
65
|
-
"lib/netzke/basepack/
|
66
|
-
"lib/netzke/basepack/
|
67
|
-
"lib/netzke/basepack/
|
68
|
-
"lib/netzke/basepack/
|
69
|
-
"lib/netzke/basepack/
|
70
|
-
"lib/netzke/basepack/
|
71
|
-
"lib/netzke/basepack/grid_panel/record_form_window.rb",
|
72
|
-
"lib/netzke/basepack/grid_panel/services.rb",
|
73
|
-
"lib/netzke/basepack/paging_form_panel.rb",
|
74
|
-
"lib/netzke/basepack/paging_form_panel/javascripts/paging_form_panel.js",
|
75
|
-
"lib/netzke/basepack/panel.rb",
|
42
|
+
"lib/netzke/basepack/fields.rb",
|
43
|
+
"lib/netzke/basepack/form.rb",
|
44
|
+
"lib/netzke/basepack/form/javascripts/comma_list_cbg.js",
|
45
|
+
"lib/netzke/basepack/form/javascripts/form.js",
|
46
|
+
"lib/netzke/basepack/form/javascripts/n_radio_group.js",
|
47
|
+
"lib/netzke/basepack/form/javascripts/readonly_mode.js",
|
48
|
+
"lib/netzke/basepack/form/services.rb",
|
49
|
+
"lib/netzke/basepack/form/stylesheets/readonly_mode.css",
|
50
|
+
"lib/netzke/basepack/grid.rb",
|
51
|
+
"lib/netzke/basepack/grid/javascripts/advanced_search.js",
|
52
|
+
"lib/netzke/basepack/grid/javascripts/check_column_fix.js",
|
53
|
+
"lib/netzke/basepack/grid/javascripts/edit_in_form.js",
|
54
|
+
"lib/netzke/basepack/grid/javascripts/event_handling.js",
|
55
|
+
"lib/netzke/basepack/grid/javascripts/grid.js",
|
56
|
+
"lib/netzke/basepack/grid/javascripts/misc.js",
|
57
|
+
"lib/netzke/basepack/grid/services.rb",
|
58
|
+
"lib/netzke/basepack/item_persistence.rb",
|
59
|
+
"lib/netzke/basepack/item_persistence/events_plugin.rb",
|
60
|
+
"lib/netzke/basepack/paging_form.rb",
|
61
|
+
"lib/netzke/basepack/paging_form/javascripts/paging_form.js",
|
76
62
|
"lib/netzke/basepack/query_builder.rb",
|
77
63
|
"lib/netzke/basepack/query_builder/javascripts/query_builder.js",
|
64
|
+
"lib/netzke/basepack/record_form_window.rb",
|
78
65
|
"lib/netzke/basepack/search_panel.rb",
|
79
66
|
"lib/netzke/basepack/search_panel/javascripts/condition_field.js",
|
80
67
|
"lib/netzke/basepack/search_panel/javascripts/search_panel.js",
|
@@ -85,22 +72,13 @@ Gem::Specification.new do |s|
|
|
85
72
|
"lib/netzke/basepack/tab_panel.rb",
|
86
73
|
"lib/netzke/basepack/tab_panel/javascripts/tab_panel.js",
|
87
74
|
"lib/netzke/basepack/version.rb",
|
75
|
+
"lib/netzke/basepack/viewport.rb",
|
88
76
|
"lib/netzke/basepack/window.rb",
|
89
77
|
"lib/netzke/basepack/window/javascripts/window.js",
|
90
78
|
"lib/netzke/basepack/wrap_lazy_loaded.rb",
|
91
|
-
"lib/netzke/basepack/wrapper.rb",
|
92
|
-
"lib/netzke/data_mapper.rb",
|
93
|
-
"lib/netzke/data_mapper/attributes.rb",
|
94
|
-
"lib/netzke/data_mapper/combobox_options.rb",
|
95
|
-
"lib/netzke/data_mapper/relation_extensions.rb",
|
96
|
-
"lib/netzke/sequel.rb",
|
97
|
-
"lib/netzke/sequel/attributes.rb",
|
98
|
-
"lib/netzke/sequel/combobox_options.rb",
|
99
|
-
"lib/netzke/sequel/relation_extensions.rb",
|
100
79
|
"lib/tasks/netzke_basepack_tasks.rake",
|
101
80
|
"locales/de.yml",
|
102
81
|
"locales/en.yml",
|
103
|
-
"locales/zh-cn.yml",
|
104
82
|
"netzke-basepack.gemspec",
|
105
83
|
"stylesheets/basepack.css",
|
106
84
|
"stylesheets/datetimefield.css",
|
@@ -114,45 +92,48 @@ Gem::Specification.new do |s|
|
|
114
92
|
"test/basepack_test_app/app/components/author_form.rb",
|
115
93
|
"test/basepack_test_app/app/components/author_grid.rb",
|
116
94
|
"test/basepack_test_app/app/components/book_form.rb",
|
117
|
-
"test/basepack_test_app/app/components/book_form_with_custom_fields.rb",
|
118
95
|
"test/basepack_test_app/app/components/book_form_with_defaults.rb",
|
96
|
+
"test/basepack_test_app/app/components/book_form_with_file_upload.rb",
|
119
97
|
"test/basepack_test_app/app/components/book_form_with_nested_attributes.rb",
|
120
98
|
"test/basepack_test_app/app/components/book_grid.rb",
|
121
99
|
"test/basepack_test_app/app/components/book_grid_filtering.rb",
|
122
100
|
"test/basepack_test_app/app/components/book_grid_loader.rb",
|
123
|
-
"test/basepack_test_app/app/components/book_grid_with_column_actions.rb",
|
124
101
|
"test/basepack_test_app/app/components/book_grid_with_custom_columns.rb",
|
125
102
|
"test/basepack_test_app/app/components/book_grid_with_default_values.rb",
|
126
|
-
"test/basepack_test_app/app/components/
|
103
|
+
"test/basepack_test_app/app/components/book_grid_with_excluded_columns.rb",
|
127
104
|
"test/basepack_test_app/app/components/book_grid_with_extra_feedback.rb",
|
128
105
|
"test/basepack_test_app/app/components/book_grid_with_extra_filters.rb",
|
106
|
+
"test/basepack_test_app/app/components/book_grid_with_mass_assignment_security.rb",
|
129
107
|
"test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb",
|
130
108
|
"test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb",
|
131
109
|
"test/basepack_test_app/app/components/book_grid_with_paging.rb",
|
132
110
|
"test/basepack_test_app/app/components/book_grid_with_persistence.rb",
|
111
|
+
"test/basepack_test_app/app/components/book_grid_with_scope.rb",
|
133
112
|
"test/basepack_test_app/app/components/book_grid_with_scoped_authors.rb",
|
134
113
|
"test/basepack_test_app/app/components/book_grid_with_virtual_attributes.rb",
|
135
|
-
"test/basepack_test_app/app/components/
|
114
|
+
"test/basepack_test_app/app/components/book_paging_form.rb",
|
136
115
|
"test/basepack_test_app/app/components/book_query_builder.rb",
|
137
116
|
"test/basepack_test_app/app/components/book_search_panel.rb",
|
138
117
|
"test/basepack_test_app/app/components/book_search_panel/javascripts/i18n_de.js",
|
139
118
|
"test/basepack_test_app/app/components/book_with_custom_primary_key_grid.rb",
|
140
119
|
"test/basepack_test_app/app/components/books_bound_to_author.rb",
|
120
|
+
"test/basepack_test_app/app/components/border_layout_panel_with_persistence.rb",
|
141
121
|
"test/basepack_test_app/app/components/double_book_grid.rb",
|
142
122
|
"test/basepack_test_app/app/components/extras/book_presentation.rb",
|
143
123
|
"test/basepack_test_app/app/components/form_without_model.rb",
|
144
|
-
"test/basepack_test_app/app/components/
|
124
|
+
"test/basepack_test_app/app/components/grid_with_initial_sorting.rb",
|
125
|
+
"test/basepack_test_app/app/components/grid_with_inline_data.rb",
|
145
126
|
"test/basepack_test_app/app/components/lockable_book_form.rb",
|
146
127
|
"test/basepack_test_app/app/components/lockable_user_form.rb",
|
147
128
|
"test/basepack_test_app/app/components/paging_form_with_search.rb",
|
148
|
-
"test/basepack_test_app/app/components/
|
129
|
+
"test/basepack_test_app/app/components/panel_with_persistent_regions.rb",
|
130
|
+
"test/basepack_test_app/app/components/query_builder.rb",
|
149
131
|
"test/basepack_test_app/app/components/simple_panel.rb",
|
150
|
-
"test/basepack_test_app/app/components/simple_tab_panel.rb",
|
151
132
|
"test/basepack_test_app/app/components/simple_window.rb",
|
152
|
-
"test/basepack_test_app/app/components/
|
153
|
-
"test/basepack_test_app/app/components/some_accordion_panel.rb",
|
133
|
+
"test/basepack_test_app/app/components/some_accordion.rb",
|
154
134
|
"test/basepack_test_app/app/components/some_auth_app.rb",
|
155
135
|
"test/basepack_test_app/app/components/some_border_layout.rb",
|
136
|
+
"test/basepack_test_app/app/components/some_search_panel.rb",
|
156
137
|
"test/basepack_test_app/app/components/some_simple_app.rb",
|
157
138
|
"test/basepack_test_app/app/components/some_tab_panel.rb",
|
158
139
|
"test/basepack_test_app/app/components/user_form.rb",
|
@@ -171,9 +152,6 @@ Gem::Specification.new do |s|
|
|
171
152
|
"test/basepack_test_app/app/models/book_with_custom_primary_key.rb",
|
172
153
|
"test/basepack_test_app/app/models/role.rb",
|
173
154
|
"test/basepack_test_app/app/models/user.rb",
|
174
|
-
"test/basepack_test_app/app/presenters/forms/generic_user.rb",
|
175
|
-
"test/basepack_test_app/app/views/components/loadable_window.html.erb",
|
176
|
-
"test/basepack_test_app/app/views/components/simple_panel.html.erb",
|
177
155
|
"test/basepack_test_app/app/views/layouts/application.html.erb",
|
178
156
|
"test/basepack_test_app/app/views/layouts/components.html.erb",
|
179
157
|
"test/basepack_test_app/app/views/layouts/nested.html.erb",
|
@@ -212,7 +190,6 @@ Gem::Specification.new do |s|
|
|
212
190
|
"test/basepack_test_app/db/schema.rb",
|
213
191
|
"test/basepack_test_app/db/seeds.rb",
|
214
192
|
"test/basepack_test_app/features/accordion_panel.feature",
|
215
|
-
"test/basepack_test_app/features/components_in_view.feature",
|
216
193
|
"test/basepack_test_app/features/form_panel.feature",
|
217
194
|
"test/basepack_test_app/features/grid_panel.feature",
|
218
195
|
"test/basepack_test_app/features/grid_panel_filters.feature",
|
@@ -221,9 +198,9 @@ Gem::Specification.new do |s|
|
|
221
198
|
"test/basepack_test_app/features/i18n.feature",
|
222
199
|
"test/basepack_test_app/features/nested_attributes.feature",
|
223
200
|
"test/basepack_test_app/features/paging_form_panel.feature",
|
201
|
+
"test/basepack_test_app/features/persistent_regions.feature",
|
224
202
|
"test/basepack_test_app/features/search_in_grid.feature",
|
225
203
|
"test/basepack_test_app/features/simple_app.feature",
|
226
|
-
"test/basepack_test_app/features/simple_panel.feature",
|
227
204
|
"test/basepack_test_app/features/step_definitions/accordion_steps.rb",
|
228
205
|
"test/basepack_test_app/features/step_definitions/ext_steps.rb",
|
229
206
|
"test/basepack_test_app/features/step_definitions/form_panel_steps.rb",
|
@@ -231,13 +208,12 @@ Gem::Specification.new do |s|
|
|
231
208
|
"test/basepack_test_app/features/step_definitions/grid_panel_steps.rb",
|
232
209
|
"test/basepack_test_app/features/step_definitions/pickle_steps.rb",
|
233
210
|
"test/basepack_test_app/features/step_definitions/web_steps.rb",
|
211
|
+
"test/basepack_test_app/features/step_definitions/window_steps.rb",
|
234
212
|
"test/basepack_test_app/features/support/env.rb",
|
235
213
|
"test/basepack_test_app/features/support/paths.rb",
|
236
214
|
"test/basepack_test_app/features/support/pickle.rb",
|
237
215
|
"test/basepack_test_app/features/support/selectors.rb",
|
238
216
|
"test/basepack_test_app/features/tab_panel.feature",
|
239
|
-
"test/basepack_test_app/features/validations_in_grid.feature",
|
240
|
-
"test/basepack_test_app/features/virtual_attributes.feature",
|
241
217
|
"test/basepack_test_app/features/window.feature",
|
242
218
|
"test/basepack_test_app/lib/tasks/.gitkeep",
|
243
219
|
"test/basepack_test_app/lib/tasks/cucumber.rake",
|
@@ -258,13 +234,6 @@ Gem::Specification.new do |s|
|
|
258
234
|
"test/basepack_test_app/public/stylesheets/.gitkeep",
|
259
235
|
"test/basepack_test_app/script/cucumber",
|
260
236
|
"test/basepack_test_app/script/rails",
|
261
|
-
"test/basepack_test_app/spec/components/form_panel_spec.rb",
|
262
|
-
"test/basepack_test_app/spec/components/grid_panel_spec.rb",
|
263
|
-
"test/basepack_test_app/spec/data_adapter/adapter_spec.rb",
|
264
|
-
"test/basepack_test_app/spec/data_adapter/attributes_spec.rb",
|
265
|
-
"test/basepack_test_app/spec/data_adapter/relation_extensions_spec.rb",
|
266
|
-
"test/basepack_test_app/spec/factories.rb",
|
267
|
-
"test/basepack_test_app/spec/spec_helper.rb",
|
268
237
|
"test/basepack_test_app/test/performance/browsing_test.rb",
|
269
238
|
"test/basepack_test_app/test/test_helper.rb",
|
270
239
|
"test/basepack_test_app/tmp/restart.txt",
|
@@ -290,19 +259,19 @@ Gem::Specification.new do |s|
|
|
290
259
|
]
|
291
260
|
s.homepage = "http://netzke.org"
|
292
261
|
s.require_paths = ["lib"]
|
293
|
-
s.rubygems_version = "1.8.
|
294
|
-
s.summary = "Pre-built Netzke
|
262
|
+
s.rubygems_version = "1.8.24"
|
263
|
+
s.summary = "Pre-built Netzke components"
|
295
264
|
|
296
265
|
if s.respond_to? :specification_version then
|
297
266
|
s.specification_version = 3
|
298
267
|
|
299
268
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
300
|
-
s.add_runtime_dependency(%q<netzke-core>, ["~> 0.
|
269
|
+
s.add_runtime_dependency(%q<netzke-core>, ["~> 0.8.0"])
|
301
270
|
else
|
302
|
-
s.add_dependency(%q<netzke-core>, ["~> 0.
|
271
|
+
s.add_dependency(%q<netzke-core>, ["~> 0.8.0"])
|
303
272
|
end
|
304
273
|
else
|
305
|
-
s.add_dependency(%q<netzke-core>, ["~> 0.
|
274
|
+
s.add_dependency(%q<netzke-core>, ["~> 0.8.0"])
|
306
275
|
end
|
307
276
|
end
|
308
277
|
|
data/stylesheets/basepack.css
CHANGED
@@ -29,44 +29,3 @@ left: -24px;
|
|
29
29
|
.x-statusbar .x-status-busy {
|
30
30
|
padding-left: 25px !important;
|
31
31
|
}
|
32
|
-
|
33
|
-
/* Tri-state checkbox */
|
34
|
-
.x-form-tscheckbox {
|
35
|
-
height: 13px;
|
36
|
-
width: 13px;
|
37
|
-
background: url('basepack/ts-checkbox.gif') no-repeat 0 0;
|
38
|
-
vertical-align: bottom;
|
39
|
-
}
|
40
|
-
.x-checkbox-checked .x-form-tscheckbox {
|
41
|
-
background-position:0 -13px;
|
42
|
-
}
|
43
|
-
.x-checkbox-undef .x-form-tscheckbox {
|
44
|
-
background-position:0 -26px;
|
45
|
-
}
|
46
|
-
.x-item-disabled .x-form-tscheckbox {
|
47
|
-
background-position:-39px 0;
|
48
|
-
}
|
49
|
-
.x-form-check-over .x-form-tscheckbox {
|
50
|
-
background-position: -13px 0;
|
51
|
-
}
|
52
|
-
.x-form-check-down .x-form-tscheckbox {
|
53
|
-
background-position:-26px 0;
|
54
|
-
}
|
55
|
-
.x-checkbox-checked .x-form-check-over .x-form-tscheckbox {
|
56
|
-
background-position:-13px -13px;
|
57
|
-
}
|
58
|
-
.x-checkbox-checked .x-form-check-down .x-form-tscheckbox {
|
59
|
-
background-position:-26px -13px;
|
60
|
-
}
|
61
|
-
.x-checkbox-checked.x-item-disabled .x-form-tscheckbox {
|
62
|
-
background-position:-39px -13px;
|
63
|
-
}
|
64
|
-
.x-checkbox-undef .x-form-check-over .x-form-tscheckbox {
|
65
|
-
background-position:-13px -26px;
|
66
|
-
}
|
67
|
-
.x-checkbox-undef .x-form-check-down .x-form-tscheckbox {
|
68
|
-
background-position:-26px -26px;
|
69
|
-
}
|
70
|
-
.x-checkbox-undef.x-item-disabled .x-form-tscheckbox {
|
71
|
-
background-position:-39px -26px;
|
72
|
-
}
|
@@ -1,59 +1,22 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
RAILS_VERSION = '3.2.1'
|
4
|
-
DM_VERSION = '1.2.0'
|
5
|
-
|
6
3
|
# we are getting AR still regardless of ORM env, because netzke-persistence needs it
|
7
|
-
gem 'rails',
|
4
|
+
gem 'rails', '~>3.2.0'
|
8
5
|
gem 'mysql2'
|
9
6
|
|
10
|
-
|
11
|
-
when 'dm'
|
12
|
-
# DataMapper
|
13
|
-
gem 'dm-rails', DM_VERSION
|
14
|
-
gem 'dm-mysql-adapter', DM_VERSION
|
15
|
-
gem 'dm-validations', DM_VERSION # needed for manual validations
|
16
|
-
gem 'dm-timestamps', DM_VERSION # needed for created_at and updated_at
|
17
|
-
gem 'dm-aggregates', DM_VERSION # needed for efficient count queries, else * will be selected and counted afterwards
|
18
|
-
when 'sq'
|
19
|
-
gem 'sequel'
|
20
|
-
end
|
21
|
-
|
22
|
-
gem 'netzke-core', :path => File.expand_path('../vendor/gems/netzke-core', __FILE__)
|
23
|
-
gem 'netzke-persistence', :path => File.expand_path('../vendor/gems/netzke-persistence', __FILE__)
|
24
|
-
|
25
|
-
# We need to manually include these Basepack dependencies, because we're not including Basepack as a gem
|
26
|
-
# gem 'will_paginate', :git=> "git://github.com/mislav/will_paginate.git"
|
7
|
+
gem 'netzke-core', github: "nomadcoder/netzke-core"
|
27
8
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
#
|
32
|
-
|
33
|
-
gem 'pry'
|
34
|
-
gem 'thin'
|
35
|
-
gem 'capybara'
|
36
|
-
gem 'capybara-screenshot'
|
9
|
+
group :test do
|
10
|
+
gem 'factory_girl'
|
11
|
+
gem 'selenium-webdriver'
|
12
|
+
gem 'launchy' # So you can do Then show me the page
|
13
|
+
gem 'capybara', '~>1'
|
37
14
|
gem 'cucumber-rails'
|
38
15
|
gem 'cucumber'
|
39
|
-
gem 'selenium-webdriver'
|
40
16
|
gem 'rspec-rails'
|
41
17
|
gem 'spork'
|
42
|
-
gem 'launchy' # So you can do Then show me the page
|
43
|
-
gem 'factory_girl'
|
44
|
-
end
|
45
18
|
|
46
|
-
|
47
|
-
gem '
|
48
|
-
case (ENV['ORM'] || '').downcase
|
49
|
-
when 'dm'
|
50
|
-
# if we are using dm, we need the sqlite adapter
|
51
|
-
gem 'dm-sqlite-adapter', DM_VERSION
|
52
|
-
else
|
53
|
-
# default case: use ar
|
54
|
-
# nothing to do here
|
55
|
-
end
|
56
|
-
# pickle branch with sequel support
|
57
|
-
gem 'pickle', :git=>'git://github.com/NZX/pickle.git'
|
19
|
+
# gem 'sqlite3-ruby', :require => 'sqlite3'
|
20
|
+
gem 'pickle'
|
58
21
|
gem 'database_cleaner'
|
59
22
|
end
|