netzke-basepack 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,5 +1,13 @@
1
+ v0.4.1
2
+ Fix: afterlayout call moved to js_after_constructor in BasicApp
3
+ Fix: cleaner persistent_config handling
4
+ New: default's configuration enabled for FormPanel on class-level
5
+ Fix: differently configured forms on the same page were showing the same columns
6
+ Fix: TableEditor was showing config-tool by default (must be hidden)
7
+
1
8
  v0.4.0
2
- Rework: got rid of NetzkeFormPanelField and NetzkeGridPanelColumn classes along with their tables. The layout is now stored in netzke_preferences.
9
+ 2009-05-07
10
+ Refactor: got rid of NetzkeFormPanelField and NetzkeGridPanelColumn classes along with their tables. The layout is now stored in netzke_preferences.
3
11
  New: dynamic hiding of columns from column menu in GridPanel.
4
12
  New: FormPanel now supports combo boxes.
5
13
  Fix: config[:bbar] set to 'false' now works in grids with pagination
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Echoe.new("netzke-basepack") do |p|
5
5
  p.email = "sergei@writelesscode.com"
6
6
  p.summary = "Base Netzke widgets - grid, form, tree, and more"
7
7
  p.url = "http://writelesscode.com"
8
- p.runtime_dependencies = ["searchlogic >=1.6.2", "netzke-core >= 0.3.0"]
8
+ p.runtime_dependencies = ["searchlogic >=1.6.2", "netzke-core >= 0.3.1"]
9
9
  p.development_dependencies = []
10
10
  p.test_pattern = 'test/**/*_test.rb'
11
11
 
@@ -119,7 +119,7 @@ class NetzkeHashRecord < Hash
119
119
  private
120
120
 
121
121
  def self.persistent_config
122
- @@persistent_config ||= Netzke::Base.config[:persistent_config_manager].constantize
122
+ @@persistent_config ||= Netzke::Base.persistent_config
123
123
  end
124
124
 
125
125
  def self.records
@@ -43,15 +43,11 @@ module Netzke
43
43
  })
44
44
  end
45
45
 
46
- def js_before_constructor
46
+ def js_after_constructor
47
47
  <<-JS.l
48
48
  // call appLoaded() once after the application is fully rendered
49
49
  this.on("afterlayout", function(){this.appLoaded();}, this, {single:true});
50
- JS
51
- end
52
50
 
53
- def js_after_constructor
54
- <<-JS.l
55
51
  // add initial menus to the tool-bar
56
52
  var toolbar = this.findById('main-toolbar');
57
53
  Ext.each(#{js_initial_menus.to_js}, function(menu){
@@ -3,6 +3,9 @@ module Netzke
3
3
  # Class-level configuration with defaults
4
4
  def self.config
5
5
  set_default_config({
6
+ :config_tool_enabled_by_default => false,
7
+ :persistent_layout_enabled_by_default => true,
8
+ :persistent_config_enabled_by_default => true
6
9
  })
7
10
  end
8
11
 
@@ -23,11 +26,11 @@ module Netzke
23
26
  def initial_config
24
27
  {
25
28
  :ext_config => {
26
- :config_tool => true
29
+ :config_tool => self.class.config[:config_tool_enabled_by_default],
27
30
  },
28
31
 
29
- :persistent_layout => true,
30
- :persistent_config => true
32
+ :persistent_layout => self.class.config[:persistent_layout_enabled_by_default],
33
+ :persistent_config => self.class.config[:persistent_config_enabled_by_default]
31
34
  }
32
35
  end
33
36
 
@@ -66,7 +69,7 @@ module Netzke
66
69
  end
67
70
 
68
71
  def fields
69
- @@fields ||= get_fields
72
+ @fields ||= get_fields
70
73
  end
71
74
 
72
75
  # parameters used to instantiate the JS object
@@ -86,8 +86,7 @@ module Netzke
86
86
  :widget_class_name => "GridPanel",
87
87
  :data_class_name => config[:data_class_name],
88
88
  :ext_config => {
89
- :title => config[:grid_title] || config[:data_class_name].pluralize,
90
- :config_tool => true
89
+ :title => config[:grid_title] || config[:data_class_name].pluralize
91
90
  }
92
91
  }.recursive_merge(config[:grid_config] || {}),
93
92
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{netzke-basepack}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
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"]
@@ -26,13 +26,13 @@ Gem::Specification.new do |s|
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
28
  s.add_runtime_dependency(%q<searchlogic>, [">= 1.6.2"])
29
- s.add_runtime_dependency(%q<netzke-core>, [">= 0", "= 0.3.0"])
29
+ s.add_runtime_dependency(%q<netzke-core>, [">= 0", "= 0.3.1"])
30
30
  else
31
31
  s.add_dependency(%q<searchlogic>, [">= 1.6.2"])
32
- s.add_dependency(%q<netzke-core>, [">= 0", "= 0.3.0"])
32
+ s.add_dependency(%q<netzke-core>, [">= 0", "= 0.3.1"])
33
33
  end
34
34
  else
35
35
  s.add_dependency(%q<searchlogic>, [">= 1.6.2"])
36
- s.add_dependency(%q<netzke-core>, [">= 0", "= 0.3.0"])
36
+ s.add_dependency(%q<netzke-core>, [">= 0", "= 0.3.1"])
37
37
  end
38
38
  end
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergei Kozlov
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: "0"
34
34
  - - "="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.3.0
36
+ version: 0.3.1
37
37
  version:
38
38
  description: Base Netzke widgets - grid, form, tree, and more
39
39
  email: sergei@writelesscode.com