netzke-basepack 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -4
- data/Manifest +1 -0
- data/lib/netzke/border_layout_panel.rb +1 -0
- data/lib/netzke/grid_panel.rb +1 -1
- data/lib/netzke/grid_panel_extras/interface.rb +21 -1
- data/lib/netzke/grid_panel_extras/js_builder.rb +15 -13
- data/netzke-basepack.gemspec +3 -3
- data/stylesheets/basepack.css +19 -0
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
v0.3.8
|
2
|
+
Fixing Ext's EditableItem render problem.
|
3
|
+
Filters by default enabled again in GridPanel.
|
4
|
+
GridPanel enhancement: base_params get sent along with post_data.
|
5
|
+
|
1
6
|
v0.3.7
|
2
7
|
Netzke-core version sync.
|
3
8
|
Rails 2.3.2 compatibility.
|
@@ -13,12 +18,12 @@ Bug fix: a couple of IE-related bugs.
|
|
13
18
|
Significant code clean-up.
|
14
19
|
|
15
20
|
v0.3.5
|
16
|
-
Netzke-core v0.2.8 compatibility
|
21
|
+
Netzke-core v0.2.8 compatibility.
|
17
22
|
|
18
23
|
v0.3.4
|
19
|
-
Quick tips added to the "tools"
|
20
|
-
Regression: the "General" configuration panel for GridPanel works again
|
21
|
-
GridPanel: rows_per_page configuration is now read from General config panel
|
24
|
+
Quick tips added to the "tools".
|
25
|
+
Regression: the "General" configuration panel for GridPanel works again.
|
26
|
+
GridPanel: rows_per_page configuration is now read from General config panel.
|
22
27
|
|
23
28
|
v0.3.3.1
|
24
29
|
Obviously using "new" as a property name in JavaScript isn't liked by Safari. Fixed.
|
data/Manifest
CHANGED
@@ -115,6 +115,7 @@ module Netzke
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def resize_region(params)
|
118
|
+
logger.debug "!!! params: #{params.inspect}"
|
118
119
|
persistent_config["#{params["region_name"]}_width"] = params["new_width"].to_i if params["new_width"]
|
119
120
|
persistent_config["#{params["region_name"]}_height"] = params["new_height"].to_i if params["new_height"]
|
120
121
|
{}
|
data/lib/netzke/grid_panel.rb
CHANGED
@@ -140,7 +140,27 @@ module Netzke
|
|
140
140
|
output_array
|
141
141
|
end
|
142
142
|
|
143
|
-
#
|
143
|
+
#
|
144
|
+
# Converts Ext.grid.GridFilters filters to searchlogic conditions, e.g.
|
145
|
+
# {"0" => {
|
146
|
+
# "data" => {
|
147
|
+
# "type" => "numeric",
|
148
|
+
# "comparison" => "gt",
|
149
|
+
# "value" => 10 },
|
150
|
+
# "field" => "id"
|
151
|
+
# },
|
152
|
+
# "1" => {
|
153
|
+
# "data" => {
|
154
|
+
# "type" => "string",
|
155
|
+
# "value" => "pizza"
|
156
|
+
# },
|
157
|
+
# "field" => "food_name"
|
158
|
+
# }}
|
159
|
+
#
|
160
|
+
# =>
|
161
|
+
#
|
162
|
+
# {"id_gt" => 100, "food_name_contains" => "pizza"}
|
163
|
+
#
|
144
164
|
def convert_filters(column_filter)
|
145
165
|
res = {}
|
146
166
|
column_filter.each_pair do |k,v|
|
@@ -223,15 +223,7 @@ module Netzke
|
|
223
223
|
JS
|
224
224
|
:apply => <<-JS.l,
|
225
225
|
function(){
|
226
|
-
|
227
226
|
var newRecords = [];
|
228
|
-
// if (this.store.newRecords){
|
229
|
-
// Ext.each(this.store.newRecords, function(r){
|
230
|
-
// newRecords.push(r.getChanges())
|
231
|
-
// }, this);
|
232
|
-
// // delete this.store.newRecords;
|
233
|
-
// }
|
234
|
-
|
235
227
|
var updatedRecords = [];
|
236
228
|
|
237
229
|
Ext.each(this.store.getModifiedRecords(),
|
@@ -245,13 +237,23 @@ module Netzke
|
|
245
237
|
this);
|
246
238
|
|
247
239
|
if (newRecords.length > 0 || updatedRecords.length > 0) {
|
240
|
+
var params = {};
|
241
|
+
|
242
|
+
if (newRecords.length > 0) {
|
243
|
+
params.created_records = Ext.encode(newRecords);
|
244
|
+
}
|
245
|
+
|
246
|
+
if (updatedRecords.length > 0) {
|
247
|
+
params.updated_records = Ext.encode(updatedRecords);
|
248
|
+
}
|
249
|
+
|
250
|
+
if (this.store.baseParams !== {}) {
|
251
|
+
params.base_params = Ext.encode(this.store.baseParams);
|
252
|
+
}
|
253
|
+
|
248
254
|
Ext.Ajax.request({
|
249
255
|
url:this.initialConfig.interface.postData,
|
250
|
-
params:
|
251
|
-
updated_records: Ext.encode(updatedRecords),
|
252
|
-
created_records: Ext.encode(newRecords),
|
253
|
-
filters: this.store.baseParams.filters
|
254
|
-
},
|
256
|
+
params: params,
|
255
257
|
success:function(response){
|
256
258
|
var m = Ext.decode(response.responseText);
|
257
259
|
if (m.success) {
|
data/netzke-basepack.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{netzke-basepack}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Sergei Kozlov"]
|
9
|
-
s.date = %q{2009-03-
|
9
|
+
s.date = %q{2009-03-27}
|
10
10
|
s.description = %q{Base Netzke widgets - grid, form, tree, and more}
|
11
11
|
s.email = %q{sergei@writelesscode.com}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "lib/app/models/netzke_form_panel_field.rb", "lib/app/models/netzke_grid_panel_column.rb", "lib/netzke/accordion_panel.rb", "lib/netzke/ar_ext.rb", "lib/netzke/basic_app.rb", "lib/netzke/border_layout_panel.rb", "lib/netzke/configuration_tool.rb", "lib/netzke/container.rb", "lib/netzke/db_fields.rb", "lib/netzke/fields_configurator.rb", "lib/netzke/form_panel.rb", "lib/netzke/form_panel_extras/interface.rb", "lib/netzke/form_panel_extras/javascripts/xcheckbox.js", "lib/netzke/form_panel_extras/javascripts/xdatetime.js", "lib/netzke/form_panel_extras/js_builder.rb", "lib/netzke/grid_panel.rb", "lib/netzke/grid_panel_extras/interface.rb", "lib/netzke/grid_panel_extras/javascripts/check-column.js", "lib/netzke/grid_panel_extras/javascripts/filters.js", "lib/netzke/grid_panel_extras/js_builder.rb", "lib/netzke/panel.rb", "lib/netzke/property_editor.rb", "lib/netzke/property_editor_extras/helper_model.rb", "lib/netzke/tab_panel.rb", "lib/netzke/table_editor.rb", "lib/netzke/tree_panel.rb", "lib/netzke/wrapper.rb", "lib/netzke-basepack.rb", "LICENSE", "README.rdoc", "tasks/netzke_basepack_tasks.rake", "TODO"]
|
13
|
-
s.files = ["CHANGELOG", "generators/netzke_basepack/netzke_basepack_generator.rb", "generators/netzke_basepack/USAGE", "generators/netzke_form_panel/netzke_form_panel_generator.rb", "generators/netzke_form_panel/templates/create_netzke_form_panel_fields.rb", "generators/netzke_grid_panel/netzke_grid_panel_generator.rb", "generators/netzke_grid_panel/templates/create_netzke_grid_panel_columns.rb", "init.rb", "install.rb", "javascripts/basepack.js", "lib/app/models/netzke_form_panel_field.rb", "lib/app/models/netzke_grid_panel_column.rb", "lib/netzke/accordion_panel.rb", "lib/netzke/ar_ext.rb", "lib/netzke/basic_app.rb", "lib/netzke/border_layout_panel.rb", "lib/netzke/configuration_tool.rb", "lib/netzke/container.rb", "lib/netzke/db_fields.rb", "lib/netzke/fields_configurator.rb", "lib/netzke/form_panel.rb", "lib/netzke/form_panel_extras/interface.rb", "lib/netzke/form_panel_extras/javascripts/xcheckbox.js", "lib/netzke/form_panel_extras/javascripts/xdatetime.js", "lib/netzke/form_panel_extras/js_builder.rb", "lib/netzke/grid_panel.rb", "lib/netzke/grid_panel_extras/interface.rb", "lib/netzke/grid_panel_extras/javascripts/check-column.js", "lib/netzke/grid_panel_extras/javascripts/filters.js", "lib/netzke/grid_panel_extras/js_builder.rb", "lib/netzke/panel.rb", "lib/netzke/property_editor.rb", "lib/netzke/property_editor_extras/helper_model.rb", "lib/netzke/tab_panel.rb", "lib/netzke/table_editor.rb", "lib/netzke/tree_panel.rb", "lib/netzke/wrapper.rb", "lib/netzke-basepack.rb", "LICENSE", "Manifest", "Rakefile", "README.rdoc", "stylesheets/basepack.css", "tasks/netzke_basepack_tasks.rake", "test/app_root/app/controllers/application.rb", "test/app_root/app/models/book.rb", "test/app_root/app/models/category.rb", "test/app_root/app/models/city.rb", "test/app_root/app/models/continent.rb", "test/app_root/app/models/country.rb", "test/app_root/app/models/genre.rb", "test/app_root/config/boot.rb", "test/app_root/config/database.yml", "test/app_root/config/environment.rb", "test/app_root/config/environments/in_memory.rb", "test/app_root/config/environments/mysql.rb", "test/app_root/config/environments/postgresql.rb", "test/app_root/config/environments/sqlite.rb", "test/app_root/config/environments/sqlite3.rb", "test/app_root/config/routes.rb", "test/app_root/db/migrate/20081222033343_create_books.rb", "test/app_root/db/migrate/20081222033440_create_genres.rb", "test/app_root/db/migrate/20081222035855_create_netzke_preferences.rb", "test/app_root/db/migrate/20081223024935_create_categories.rb", "test/app_root/db/migrate/20081223025635_create_countries.rb", "test/app_root/db/migrate/20081223025653_create_continents.rb", "test/app_root/db/migrate/20081223025732_create_cities.rb", "test/app_root/db/migrate/20090102223630_create_netzke_layouts.rb", "test/app_root/db/migrate/20090102223811_create_netzke_grid_panel_columns.rb", "test/app_root/script/console", "test/app_root/vendor/plugins/acts_as_list/init.rb", "test/app_root/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb", "test/app_root/vendor/plugins/acts_as_list/README", "test/ar_ext_test.rb", "test/border_layout_panel_test.rb", "test/console_with_fixtures.rb", "test/fixtures/books.yml", "test/fixtures/categories.yml", "test/fixtures/cities.yml", "test/fixtures/continents.yml", "test/fixtures/countries.yml", "test/fixtures/genres.yml", "test/grid_panel_test.rb", "test/netzke_basepack_test.rb", "test/schema.rb", "test/test_helper.rb", "TODO", "uninstall.rb"
|
13
|
+
s.files = ["CHANGELOG", "generators/netzke_basepack/netzke_basepack_generator.rb", "generators/netzke_basepack/USAGE", "generators/netzke_form_panel/netzke_form_panel_generator.rb", "generators/netzke_form_panel/templates/create_netzke_form_panel_fields.rb", "generators/netzke_grid_panel/netzke_grid_panel_generator.rb", "generators/netzke_grid_panel/templates/create_netzke_grid_panel_columns.rb", "init.rb", "install.rb", "javascripts/basepack.js", "lib/app/models/netzke_form_panel_field.rb", "lib/app/models/netzke_grid_panel_column.rb", "lib/netzke/accordion_panel.rb", "lib/netzke/ar_ext.rb", "lib/netzke/basic_app.rb", "lib/netzke/border_layout_panel.rb", "lib/netzke/configuration_tool.rb", "lib/netzke/container.rb", "lib/netzke/db_fields.rb", "lib/netzke/fields_configurator.rb", "lib/netzke/form_panel.rb", "lib/netzke/form_panel_extras/interface.rb", "lib/netzke/form_panel_extras/javascripts/xcheckbox.js", "lib/netzke/form_panel_extras/javascripts/xdatetime.js", "lib/netzke/form_panel_extras/js_builder.rb", "lib/netzke/grid_panel.rb", "lib/netzke/grid_panel_extras/interface.rb", "lib/netzke/grid_panel_extras/javascripts/check-column.js", "lib/netzke/grid_panel_extras/javascripts/filters.js", "lib/netzke/grid_panel_extras/js_builder.rb", "lib/netzke/panel.rb", "lib/netzke/property_editor.rb", "lib/netzke/property_editor_extras/helper_model.rb", "lib/netzke/tab_panel.rb", "lib/netzke/table_editor.rb", "lib/netzke/tree_panel.rb", "lib/netzke/wrapper.rb", "lib/netzke-basepack.rb", "LICENSE", "Manifest", "netzke-basepack.gemspec", "Rakefile", "README.rdoc", "stylesheets/basepack.css", "tasks/netzke_basepack_tasks.rake", "test/app_root/app/controllers/application.rb", "test/app_root/app/models/book.rb", "test/app_root/app/models/category.rb", "test/app_root/app/models/city.rb", "test/app_root/app/models/continent.rb", "test/app_root/app/models/country.rb", "test/app_root/app/models/genre.rb", "test/app_root/config/boot.rb", "test/app_root/config/database.yml", "test/app_root/config/environment.rb", "test/app_root/config/environments/in_memory.rb", "test/app_root/config/environments/mysql.rb", "test/app_root/config/environments/postgresql.rb", "test/app_root/config/environments/sqlite.rb", "test/app_root/config/environments/sqlite3.rb", "test/app_root/config/routes.rb", "test/app_root/db/migrate/20081222033343_create_books.rb", "test/app_root/db/migrate/20081222033440_create_genres.rb", "test/app_root/db/migrate/20081222035855_create_netzke_preferences.rb", "test/app_root/db/migrate/20081223024935_create_categories.rb", "test/app_root/db/migrate/20081223025635_create_countries.rb", "test/app_root/db/migrate/20081223025653_create_continents.rb", "test/app_root/db/migrate/20081223025732_create_cities.rb", "test/app_root/db/migrate/20090102223630_create_netzke_layouts.rb", "test/app_root/db/migrate/20090102223811_create_netzke_grid_panel_columns.rb", "test/app_root/script/console", "test/app_root/vendor/plugins/acts_as_list/init.rb", "test/app_root/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb", "test/app_root/vendor/plugins/acts_as_list/README", "test/ar_ext_test.rb", "test/border_layout_panel_test.rb", "test/console_with_fixtures.rb", "test/fixtures/books.yml", "test/fixtures/categories.yml", "test/fixtures/cities.yml", "test/fixtures/continents.yml", "test/fixtures/countries.yml", "test/fixtures/genres.yml", "test/grid_panel_test.rb", "test/netzke_basepack_test.rb", "test/schema.rb", "test/test_helper.rb", "TODO", "uninstall.rb"]
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.homepage = %q{http://writelesscode.com}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Netzke-basepack", "--main", "README.rdoc"]
|
data/stylesheets/basepack.css
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
/* Fix for Ext's EditableItem render problem (from http://www.extjs.com/forum/showthread.php?p=290267#post290267) */
|
2
|
+
.x-menu div.x-menu-item .x-menu-item-icon {
|
3
|
+
left: 0px;
|
4
|
+
margin-top: 0px !important;
|
5
|
+
position:relative;
|
6
|
+
background-position:center center;
|
7
|
+
}
|
8
|
+
.ext-ie .x-menu-item-icon {
|
9
|
+
left: -24px;
|
10
|
+
}
|
11
|
+
.ext-strict .x-menu-item-icon {
|
12
|
+
left: 3px;
|
13
|
+
}
|
14
|
+
.ext-ie6 .x-menu-item-icon {
|
15
|
+
left: -24px;
|
16
|
+
}
|
17
|
+
/* */
|
18
|
+
|
19
|
+
|
1
20
|
/* write accordion header in bold */
|
2
21
|
.x-accordion-hd {
|
3
22
|
font-weight:bold;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netzke-basepack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Kozlov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-27 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- lib/netzke-basepack.rb
|
117
117
|
- LICENSE
|
118
118
|
- Manifest
|
119
|
+
- netzke-basepack.gemspec
|
119
120
|
- Rakefile
|
120
121
|
- README.rdoc
|
121
122
|
- stylesheets/basepack.css
|
@@ -164,7 +165,6 @@ files:
|
|
164
165
|
- test/test_helper.rb
|
165
166
|
- TODO
|
166
167
|
- uninstall.rb
|
167
|
-
- netzke-basepack.gemspec
|
168
168
|
has_rdoc: true
|
169
169
|
homepage: http://writelesscode.com
|
170
170
|
post_install_message:
|