netzke-basepack 0.6.4 → 0.6.5
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.rdoc +10 -0
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/javascripts/basepack.js +4 -108
- data/javascripts/feedback_ghost.js +34 -0
- data/lib/netzke/basepack.rb +1 -0
- data/lib/netzke/basepack/form_panel.rb +7 -6
- data/lib/netzke/basepack/form_panel/fields.rb +6 -14
- data/lib/netzke/basepack/form_panel/javascripts/form_panel.js +53 -27
- data/lib/netzke/basepack/form_panel/javascripts/misc.js +4 -0
- data/lib/netzke/basepack/form_panel/javascripts/readonly_mode.js +4 -21
- data/lib/netzke/basepack/form_panel/services.rb +10 -3
- data/lib/netzke/basepack/grid_panel.rb +40 -26
- data/lib/netzke/basepack/grid_panel/columns.rb +25 -0
- data/lib/netzke/basepack/grid_panel/javascripts/grid_panel.js +4 -2
- data/lib/netzke/basepack/grid_panel/services.rb +10 -33
- data/lib/netzke/basepack/search_window.rb +2 -2
- data/lib/netzke/basepack/version.rb +1 -1
- data/netzke-basepack.gemspec +44 -145
- data/test/rails_app/Gemfile +3 -5
- data/test/rails_app/Gemfile.lock +78 -84
- data/test/rails_app/app/components/book_form.rb +12 -0
- data/test/rails_app/app/components/book_grid_with_scoped_authors.rb +8 -0
- data/test/rails_app/app/components/book_paging_form_panel.rb +3 -2
- data/test/rails_app/app/components/form_without_model.rb +2 -1
- data/test/rails_app/app/views/components/loadable_window.html.erb +9 -0
- data/test/rails_app/app/views/layouts/application.html.erb +1 -1
- data/test/rails_app/config/cucumber.yml +8 -0
- data/test/rails_app/config/{database.yml → database.yml.sample} +4 -1
- data/test/rails_app/config/locales/es.yml +4 -1
- data/{features → test/rails_app/features}/accordion_panel.feature +1 -4
- data/{features → test/rails_app/features}/components_in_view.feature +0 -0
- data/{features → test/rails_app/features}/form_panel.feature +18 -13
- data/{features → test/rails_app/features}/grid_panel.feature +0 -0
- data/test/rails_app/features/i18n.feature +18 -0
- data/{features → test/rails_app/features}/nested_attributes.feature +0 -0
- data/{features → test/rails_app/features}/paging_form_panel.feature +13 -1
- data/{features → test/rails_app/features}/search_in_grid.feature +0 -0
- data/{features → test/rails_app/features}/simple_app.feature +0 -0
- data/{features → test/rails_app/features}/simple_panel.feature +1 -5
- data/{features → test/rails_app/features}/step_definitions/accordion_steps.rb +0 -0
- data/{features → test/rails_app/features}/step_definitions/form_panel_steps.rb +1 -1
- data/{features → test/rails_app/features}/step_definitions/generic_steps.rb +0 -0
- data/{features → test/rails_app/features}/step_definitions/grid_panel_steps.rb +0 -0
- data/{features → test/rails_app/features}/step_definitions/pickle_steps.rb +0 -0
- data/{features → test/rails_app/features}/step_definitions/web_steps.rb +0 -0
- data/{features → test/rails_app/features}/support/env.rb +14 -13
- data/test/rails_app/features/support/paths.rb +24 -6
- data/{features → test/rails_app/features}/support/pickle.rb +0 -0
- data/test/rails_app/features/support/selectors.rb +39 -0
- data/{features → test/rails_app/features}/tab_panel.feature +1 -4
- data/{features → test/rails_app/features}/validations_in_grid.feature +0 -0
- data/{features → test/rails_app/features}/virtual_attributes.feature +0 -0
- data/{features → test/rails_app/features}/window.feature +0 -0
- data/test/rails_app/lib/tasks/cucumber.rake +71 -0
- data/test/rails_app/script/cucumber +10 -0
- data/{spec → test/rails_app/spec}/active_record/attributes_spec.rb +0 -0
- data/{spec → test/rails_app/spec}/active_record/relation_extensions_spec.rb +0 -0
- data/{spec → test/rails_app/spec}/components/form_panel_spec.rb +0 -0
- data/{spec → test/rails_app/spec}/components/grid_panel_spec.rb +0 -0
- data/{spec → test/rails_app/spec}/factories.rb +0 -0
- data/{spec → test/rails_app/spec}/spec_helper.rb +1 -6
- metadata +43 -141
- data/autotest/discover.rb +0 -3
- data/config/database.yml +0 -2
- data/features/i18n.feature +0 -18
- data/features/support/paths.rb +0 -65
- data/lib/netzke/basepack/form_panel/javascripts/display_mode.js +0 -68
- data/lib/netzke/basepack/form_panel/javascripts/netzkefileupload.js +0 -5
- data/test/rails_app/spec/controllers/embedded_components_controller_spec.rb +0 -12
- data/test/rails_app/spec/helpers/embedded_components_helper_spec.rb +0 -15
- data/test/rails_app/spec/models/address_spec.rb +0 -5
- data/test/rails_app/spec/models/author_spec.rb +0 -5
- data/test/rails_app/spec/models/book_spec.rb +0 -5
- data/test/rails_app/spec/models/role_spec.rb +0 -5
- data/test/rails_app/spec/models/user_spec.rb +0 -5
- data/test/rails_app/spec/views/embedded_components/index.html.erb_spec.rb +0 -5
|
@@ -42,11 +42,11 @@ module Netzke
|
|
|
42
42
|
# * +enable_context_menu+ - (defaults to true) enable rows context menu
|
|
43
43
|
# * +enable_rows_reordering+ - (defaults to false) enable reordering of rows with drag-n-drop; underlying model (specified in +model+) must implement "acts_as_list"-compatible functionality
|
|
44
44
|
# * +enable_pagination+ - (defaults to true) enable pagination
|
|
45
|
-
# * +rows_per_page+ - (defaults to 30) number of rows per page (ignored when +enable_pagination+ is set to
|
|
45
|
+
# * +rows_per_page+ - (defaults to 30) number of rows per page (ignored when +enable_pagination+ is set to +false+)
|
|
46
46
|
# * +load_inline_data+ - (defaults to true) load initial data into the grid right after its instantiation
|
|
47
47
|
# * (TODO) +mode+ - when set to +config+, GridPanel loads in configuration mode
|
|
48
|
-
# *
|
|
49
|
-
# *
|
|
48
|
+
# * <tt>[add|edit|multi_edit]_search_form_config</tt> - additional configuration for add/edit/multi_edit/search form panel
|
|
49
|
+
# * <tt>[add|edit|multi_edit]_form_window_config</tt> - additional configuration for the window that wrapps up add/edit/multi_edit form panel
|
|
50
50
|
#
|
|
51
51
|
# == Columns
|
|
52
52
|
# Columns are configured by passing an array to the +columns+ option. Each element in the array is either the name of model's (virtual) attribute (in which case the configuration will be fully automatic), or a hash that may contain the following configuration options as keys:
|
|
@@ -58,11 +58,12 @@ module Netzke
|
|
|
58
58
|
# * +getter+ - a lambda that receives a record as a parameter, and is expected to return a string that will be sent to the cell (can be HTML code), e.g.:
|
|
59
59
|
#
|
|
60
60
|
# :getter => lambda {|r| [r.first_name, r.last_name].join }
|
|
61
|
-
|
|
62
61
|
# * +setter+ - a lambda that receives a record as first parameter, and the value passed from the cell as the second parameter, and is expected to modify the record accordingly, e.g.:
|
|
63
62
|
#
|
|
64
63
|
# :setter => lambda { |r,v| r.first_name, r.last_name = v.split(" ") }
|
|
65
64
|
#
|
|
65
|
+
# * +scope+ - the scope for one-to-many association column. Same syntax applies as for scoping out records for the grid itself. See "One-to-many association support" for details.
|
|
66
|
+
#
|
|
66
67
|
# * +sorting_scope+ - the name of the scope used for sorting the column. This can be useful for virtual columns for example. The scope will get one parameter specifying the direction (:asc or :desc). Example:
|
|
67
68
|
#
|
|
68
69
|
# columns => [{ :name => "complete_user_name", :sorting_scope => :sort_user_by_full_name }, ...]
|
|
@@ -75,6 +76,17 @@ module Netzke
|
|
|
75
76
|
#
|
|
76
77
|
# Besides these options, a column can receive any meaningful config option understood by Ext.grid.Column (http://dev.sencha.com/deploy/dev/docs/?class=Ext.grid.Column)
|
|
77
78
|
#
|
|
79
|
+
# == One-to-many association support
|
|
80
|
+
# If the model bound to a grid +belongs_to+ another model, GridPanel can display an "assocition column" - where the user can select the associated record from a drop-down box. You can specify which method of the association should be used as the display value for the drop-down box options by using the double-underscore notation on the column name, where the association name is separated from the association method by "__" (double underscore). For example, let's say we have a Book that +belongs_to+ model Author, and Author responds to +first_name+. This way, the book grid can have a column defined as follows:
|
|
81
|
+
#
|
|
82
|
+
# {:name => "author__first_name"}
|
|
83
|
+
#
|
|
84
|
+
# GridPanel will detect it to be an association column, and will use the drop-down box for selecting an author, where the list of authors will be represented by the author's first name.
|
|
85
|
+
#
|
|
86
|
+
# In order to scope out the records displayed in the drop-down box, the +scope+ column option can be used, e.g.:
|
|
87
|
+
#
|
|
88
|
+
# {:name => "author__first_name", :scope => lambda{|relation| relation.where(:popular => true)}}
|
|
89
|
+
#
|
|
78
90
|
# == Actions
|
|
79
91
|
# You can override GridPanel's actions to change their text, icons, and tooltips (see http://api.netzke.org/core/Netzke/Actions.html).
|
|
80
92
|
#
|
|
@@ -101,7 +113,7 @@ module Netzke
|
|
|
101
113
|
#
|
|
102
114
|
# The following class configuration options are available:
|
|
103
115
|
# * +column_filters_available+ - (defaults to true) include code for the filters in the column's context menu
|
|
104
|
-
# * (TODO)+config_tool_available+ - (defaults to true) include code for the configuration tool that launches the configuration panel
|
|
116
|
+
# * (TODO) +config_tool_available+ - (defaults to true) include code for the configuration tool that launches the configuration panel
|
|
105
117
|
# * +edit_in_form_available+ - (defaults to true) include code for (multi-record) editing and adding records through a form
|
|
106
118
|
# * +extended_search_available+ - (defaults to true) include code for extended configurable search
|
|
107
119
|
class GridPanel < Netzke::Base
|
|
@@ -166,25 +178,25 @@ module Netzke
|
|
|
166
178
|
js_include(ex.join("#{File.dirname(__FILE__)}/grid_panel/javascripts/rows-dd.js"))
|
|
167
179
|
end
|
|
168
180
|
|
|
169
|
-
def js_config
|
|
181
|
+
def js_config #:nodoc:
|
|
170
182
|
super.merge({
|
|
171
183
|
:bbar => config.has_key?(:bbar) ? config[:bbar] : default_bbar,
|
|
172
184
|
:context_menu => config.has_key?(:context_menu) ? config[:context_menu] : default_context_menu,
|
|
173
185
|
:columns => columns(:with_meta => true), # columns
|
|
174
|
-
:columns_order =>
|
|
186
|
+
:columns_order => columns_order,
|
|
175
187
|
:model => config[:model], # the model name
|
|
176
188
|
:inline_data => (get_data if config[:load_inline_data]), # inline data (loaded along with the grid panel)
|
|
177
189
|
:pri => data_class.primary_key # table primary key name
|
|
178
190
|
})
|
|
179
191
|
end
|
|
180
192
|
|
|
181
|
-
def get_association_values(record)
|
|
193
|
+
def get_association_values(record) #:nodoc:
|
|
182
194
|
columns.select{ |c| c[:name].index("__") }.each.inject({}) do |r,c|
|
|
183
195
|
r.merge(c[:name] => record.value_for_attribute(c, true))
|
|
184
196
|
end
|
|
185
197
|
end
|
|
186
198
|
|
|
187
|
-
def get_default_association_values
|
|
199
|
+
def get_default_association_values #:nodoc:
|
|
188
200
|
columns.select{ |c| c[:name].index("__") && c[:default_value] }.each.inject({}) do |r,c|
|
|
189
201
|
assoc, assoc_method = assoc_and_assoc_method_for_column(c)
|
|
190
202
|
assoc_instance = assoc.klass.find(c[:default_value])
|
|
@@ -193,6 +205,7 @@ module Netzke
|
|
|
193
205
|
end
|
|
194
206
|
memoize :get_default_association_values
|
|
195
207
|
|
|
208
|
+
# Override to change the default bottom toolbar
|
|
196
209
|
def default_bbar
|
|
197
210
|
res = %w{ add edit apply del }.map(&:to_sym).map(&:action)
|
|
198
211
|
res << "-" << :add_in_form.action << :edit_in_form.action if config[:enable_edit_in_form]
|
|
@@ -200,29 +213,30 @@ module Netzke
|
|
|
200
213
|
res
|
|
201
214
|
end
|
|
202
215
|
|
|
216
|
+
# Override to change the default context menu
|
|
203
217
|
def default_context_menu
|
|
204
218
|
res = %w{ edit del }.map(&:to_sym).map(&:action)
|
|
205
219
|
res << "-" << :edit_in_form.action if config[:enable_edit_in_form]
|
|
206
220
|
res
|
|
207
221
|
end
|
|
208
222
|
|
|
209
|
-
def configuration_components
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
end
|
|
223
|
+
# def configuration_components
|
|
224
|
+
# res = []
|
|
225
|
+
# res << {
|
|
226
|
+
# :persistent_config => true,
|
|
227
|
+
# :name => 'columns',
|
|
228
|
+
# :class_name => "FieldsConfigurator",
|
|
229
|
+
# :active => true,
|
|
230
|
+
# :owner => self
|
|
231
|
+
# }
|
|
232
|
+
# res << {
|
|
233
|
+
# :name => 'general',
|
|
234
|
+
# :class_name => "PropertyEditor",
|
|
235
|
+
# :component => self,
|
|
236
|
+
# :title => false
|
|
237
|
+
# }
|
|
238
|
+
# res
|
|
239
|
+
# end
|
|
226
240
|
|
|
227
241
|
action :add do
|
|
228
242
|
{
|
|
@@ -151,6 +151,31 @@ module Netzke
|
|
|
151
151
|
|
|
152
152
|
private
|
|
153
153
|
|
|
154
|
+
def initial_columns_order
|
|
155
|
+
columns.map do |c|
|
|
156
|
+
{
|
|
157
|
+
:name => c[:name],
|
|
158
|
+
:width => c[:width],
|
|
159
|
+
:hidden => c[:hidden]
|
|
160
|
+
}
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def columns_order
|
|
165
|
+
if config[:persistence]
|
|
166
|
+
update_state(:columns_order, initial_columns_order) if columns_have_changed?
|
|
167
|
+
state[:columns_order] || initial_columns_order
|
|
168
|
+
else
|
|
169
|
+
initial_columns_order
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
def columns_have_changed?
|
|
174
|
+
init_column_names = initial_columns_order.map{ |c| c[:name].to_s }.sort
|
|
175
|
+
stored_column_names = (state[:columns_order] || initial_columns_order).map{ |c| c[:name].to_s }.sort
|
|
176
|
+
init_column_names != stored_column_names
|
|
177
|
+
end
|
|
178
|
+
|
|
154
179
|
def filter_out_excluded_columns(cols)
|
|
155
180
|
cols.reject!{ |c| c[:included] == false }
|
|
156
181
|
end
|
|
@@ -116,14 +116,16 @@
|
|
|
116
116
|
// After we created the record (model), we can get rid of the meta column
|
|
117
117
|
this.columns.remove(metaColumn);
|
|
118
118
|
|
|
119
|
-
// Prepare column model config with columns in the correct order
|
|
119
|
+
// Prepare column model config with columns in the correct order; columns out of order go to the end.
|
|
120
120
|
var colModelConfig = [];
|
|
121
|
+
var columns = this.columns;
|
|
121
122
|
|
|
122
123
|
Ext.each(this.columnsOrder, function(c) {
|
|
123
124
|
var mainColConfig;
|
|
124
125
|
Ext.each(this.columns, function(oc) {
|
|
125
126
|
if (c.name === oc.name) {
|
|
126
|
-
mainColConfig = oc;
|
|
127
|
+
mainColConfig = Ext.apply({}, oc);
|
|
128
|
+
// oc.inOrder = true;
|
|
127
129
|
return false;
|
|
128
130
|
}
|
|
129
131
|
});
|
|
@@ -45,7 +45,7 @@ module Netzke
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
endpoint :resize_column do |params|
|
|
48
|
-
raise "Called
|
|
48
|
+
raise "Called resize_column endpoint while not configured to do so" if !config[:persistence]
|
|
49
49
|
current_columns_order = state[:columns_order] || initial_columns_order
|
|
50
50
|
current_columns_order[normalize_index(params[:index].to_i)][:width] = params[:size].to_i
|
|
51
51
|
update_state(:columns_order, current_columns_order)
|
|
@@ -53,7 +53,7 @@ module Netzke
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
endpoint :move_column do |params|
|
|
56
|
-
raise "Called
|
|
56
|
+
raise "Called move_column endpoint while not configured to do so" if !config[:persistence]
|
|
57
57
|
remove_from = normalize_index(params[:old_index].to_i)
|
|
58
58
|
insert_to = normalize_index(params[:new_index].to_i)
|
|
59
59
|
|
|
@@ -68,9 +68,9 @@ module Netzke
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
endpoint :hide_column do |params|
|
|
71
|
-
raise "Called
|
|
71
|
+
raise "Called hide_column endpoint while not configured to do so" if !config[:persistence]
|
|
72
72
|
current_columns_order = state[:columns_order] || initial_columns_order
|
|
73
|
-
current_columns_order[normalize_index(params[:index].to_i)][:hidden] = params[:hidden]
|
|
73
|
+
current_columns_order[normalize_index(params[:index].to_i)][:hidden] = params[:hidden]
|
|
74
74
|
update_state(:columns_order, current_columns_order)
|
|
75
75
|
{}
|
|
76
76
|
end
|
|
@@ -102,11 +102,11 @@ module Netzke
|
|
|
102
102
|
|
|
103
103
|
end
|
|
104
104
|
#
|
|
105
|
-
# Some components' overridden
|
|
105
|
+
# Some components' overridden endpoints
|
|
106
106
|
#
|
|
107
107
|
|
|
108
|
-
## Edit in form specific
|
|
109
|
-
def
|
|
108
|
+
## Edit in form specific endpoint
|
|
109
|
+
def add_form__form_panel0__netzke_submit_endpoint(params)
|
|
110
110
|
res = component_instance(:add_form__form_panel0).netzke_submit(params)
|
|
111
111
|
|
|
112
112
|
if res[:set_form_values]
|
|
@@ -117,7 +117,7 @@ module Netzke
|
|
|
117
117
|
res.to_nifty_json
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
def
|
|
120
|
+
def edit_form__form_panel0__netzke_submit_endpoint(params)
|
|
121
121
|
res = component_instance(:edit_form__form_panel0).netzke_submit(params)
|
|
122
122
|
|
|
123
123
|
if res[:set_form_values]
|
|
@@ -128,11 +128,11 @@ module Netzke
|
|
|
128
128
|
res.to_nifty_json
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
def
|
|
131
|
+
def multi_edit_form__multi_edit_form0__netzke_submit_endpoint(params)
|
|
132
132
|
ids = ActiveSupport::JSON.decode(params.delete(:ids))
|
|
133
133
|
data = ids.collect{ |id| ActiveSupport::JSON.decode(params[:data]).merge("id" => id) }
|
|
134
134
|
|
|
135
|
-
data.map!{|el| el.delete_if{ |k,v| v.blank? }} # only interested in set values
|
|
135
|
+
data.map!{|el| el.delete_if{ |k,v| v.is_a?(String) && v.blank? }} # only interested in set values
|
|
136
136
|
|
|
137
137
|
mod_records_count = process_data(data, :update).count
|
|
138
138
|
|
|
@@ -354,29 +354,6 @@ module Netzke
|
|
|
354
354
|
end
|
|
355
355
|
end
|
|
356
356
|
|
|
357
|
-
def initial_columns_order
|
|
358
|
-
columns.map do |c|
|
|
359
|
-
{
|
|
360
|
-
:name => c[:name],
|
|
361
|
-
:width => c[:width],
|
|
362
|
-
:hidden => c[:hidden]
|
|
363
|
-
}
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
# def check_for_positive_result(res)
|
|
368
|
-
# if res[:set_form_values]
|
|
369
|
-
# # successful creation
|
|
370
|
-
# res[:set_form_values] = nil
|
|
371
|
-
# res.merge!({
|
|
372
|
-
# :parent => {:on_successfull_edit => true}
|
|
373
|
-
# })
|
|
374
|
-
# true
|
|
375
|
-
# else
|
|
376
|
-
# false
|
|
377
|
-
# end
|
|
378
|
-
# end
|
|
379
|
-
|
|
380
357
|
end
|
|
381
358
|
end
|
|
382
359
|
end
|
|
@@ -3,11 +3,11 @@ module Netzke
|
|
|
3
3
|
class SearchWindow < Netzke::Basepack::Window
|
|
4
4
|
|
|
5
5
|
action :search do
|
|
6
|
-
{ :text => I18n.t('netzke.basepack.search_window.
|
|
6
|
+
{ :text => I18n.t('netzke.basepack.search_window.actions.search') }
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
action :cancel do
|
|
10
|
-
{ :text => I18n.t('netzke.basepack.search_window.
|
|
10
|
+
{ :text => I18n.t('netzke.basepack.search_window.actions.cancel') }
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
js_properties :width => "50%",
|
data/netzke-basepack.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{netzke-basepack}
|
|
8
|
-
s.version = "0.6.
|
|
8
|
+
s.version = "0.6.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Sergei Kozlov"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-08-16}
|
|
13
13
|
s.description = %q{A set of full-featured extendible Netzke components (such as FormPanel, GridPanel, Window, BorderLayoutPanel, etc) which can be used as building block for your RIA}
|
|
14
14
|
s.email = %q{sergei@playcode.nl}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -26,36 +26,12 @@ Gem::Specification.new do |s|
|
|
|
26
26
|
"app/models/netzke_field_list.rb",
|
|
27
27
|
"app/models/netzke_model_attr_list.rb",
|
|
28
28
|
"app/models/netzke_persistent_array_auto_model.rb",
|
|
29
|
-
"autotest/discover.rb",
|
|
30
|
-
"config/database.yml",
|
|
31
|
-
"features/accordion_panel.feature",
|
|
32
|
-
"features/components_in_view.feature",
|
|
33
|
-
"features/form_panel.feature",
|
|
34
|
-
"features/grid_panel.feature",
|
|
35
|
-
"features/i18n.feature",
|
|
36
|
-
"features/nested_attributes.feature",
|
|
37
|
-
"features/paging_form_panel.feature",
|
|
38
|
-
"features/search_in_grid.feature",
|
|
39
|
-
"features/simple_app.feature",
|
|
40
|
-
"features/simple_panel.feature",
|
|
41
|
-
"features/step_definitions/accordion_steps.rb",
|
|
42
|
-
"features/step_definitions/form_panel_steps.rb",
|
|
43
|
-
"features/step_definitions/generic_steps.rb",
|
|
44
|
-
"features/step_definitions/grid_panel_steps.rb",
|
|
45
|
-
"features/step_definitions/pickle_steps.rb",
|
|
46
|
-
"features/step_definitions/web_steps.rb",
|
|
47
|
-
"features/support/env.rb",
|
|
48
|
-
"features/support/paths.rb",
|
|
49
|
-
"features/support/pickle.rb",
|
|
50
|
-
"features/tab_panel.feature",
|
|
51
|
-
"features/validations_in_grid.feature",
|
|
52
|
-
"features/virtual_attributes.feature",
|
|
53
|
-
"features/window.feature",
|
|
54
29
|
"from_05_to_06.rdoc",
|
|
55
30
|
"init.rb",
|
|
56
31
|
"install.rb",
|
|
57
32
|
"javascripts/basepack.js",
|
|
58
33
|
"javascripts/datetimefield.js",
|
|
34
|
+
"javascripts/feedback_ghost.js",
|
|
59
35
|
"lib/generators/netzke/basepack_generator.rb",
|
|
60
36
|
"lib/generators/netzke/templates/assets/ts-checkbox.gif",
|
|
61
37
|
"lib/generators/netzke/templates/create_netzke_field_lists.rb",
|
|
@@ -73,10 +49,9 @@ Gem::Specification.new do |s|
|
|
|
73
49
|
"lib/netzke/basepack/form_panel.rb",
|
|
74
50
|
"lib/netzke/basepack/form_panel/fields.rb",
|
|
75
51
|
"lib/netzke/basepack/form_panel/javascripts/comma_list_cbg.js",
|
|
76
|
-
"lib/netzke/basepack/form_panel/javascripts/display_mode.js",
|
|
77
52
|
"lib/netzke/basepack/form_panel/javascripts/form_panel.js",
|
|
53
|
+
"lib/netzke/basepack/form_panel/javascripts/misc.js",
|
|
78
54
|
"lib/netzke/basepack/form_panel/javascripts/n_radio_group.js",
|
|
79
|
-
"lib/netzke/basepack/form_panel/javascripts/netzkefileupload.js",
|
|
80
55
|
"lib/netzke/basepack/form_panel/javascripts/readonly_mode.js",
|
|
81
56
|
"lib/netzke/basepack/form_panel/services.rb",
|
|
82
57
|
"lib/netzke/basepack/form_panel/stylesheets/readonly_mode.css",
|
|
@@ -110,12 +85,6 @@ Gem::Specification.new do |s|
|
|
|
110
85
|
"lib/tasks/netzke_basepack_tasks.rake",
|
|
111
86
|
"locales/en.yml",
|
|
112
87
|
"netzke-basepack.gemspec",
|
|
113
|
-
"spec/active_record/attributes_spec.rb",
|
|
114
|
-
"spec/active_record/relation_extensions_spec.rb",
|
|
115
|
-
"spec/components/form_panel_spec.rb",
|
|
116
|
-
"spec/components/grid_panel_spec.rb",
|
|
117
|
-
"spec/factories.rb",
|
|
118
|
-
"spec/spec_helper.rb",
|
|
119
88
|
"stylesheets/basepack.css",
|
|
120
89
|
"stylesheets/datetimefield.css",
|
|
121
90
|
"test/console_with_fixtures.rb",
|
|
@@ -141,6 +110,7 @@ Gem::Specification.new do |s|
|
|
|
141
110
|
"test/rails_app/app/components/book_grid_with_custom_columns.rb",
|
|
142
111
|
"test/rails_app/app/components/book_grid_with_default_values.rb",
|
|
143
112
|
"test/rails_app/app/components/book_grid_with_nested_attributes.rb",
|
|
113
|
+
"test/rails_app/app/components/book_grid_with_scoped_authors.rb",
|
|
144
114
|
"test/rails_app/app/components/book_grid_with_virtual_attributes.rb",
|
|
145
115
|
"test/rails_app/app/components/book_paging_form_panel.rb",
|
|
146
116
|
"test/rails_app/app/components/book_presentation.rb",
|
|
@@ -180,13 +150,15 @@ Gem::Specification.new do |s|
|
|
|
180
150
|
"test/rails_app/app/models/role.rb",
|
|
181
151
|
"test/rails_app/app/models/user.rb",
|
|
182
152
|
"test/rails_app/app/presenters/forms/generic_user.rb",
|
|
153
|
+
"test/rails_app/app/views/components/loadable_window.html.erb",
|
|
183
154
|
"test/rails_app/app/views/components/simple_panel.html.erb",
|
|
184
155
|
"test/rails_app/app/views/layouts/application.html.erb",
|
|
185
156
|
"test/rails_app/app/views/layouts/nested.html.erb",
|
|
186
157
|
"test/rails_app/config.ru",
|
|
187
158
|
"test/rails_app/config/application.rb",
|
|
188
159
|
"test/rails_app/config/boot.rb",
|
|
189
|
-
"test/rails_app/config/
|
|
160
|
+
"test/rails_app/config/cucumber.yml",
|
|
161
|
+
"test/rails_app/config/database.yml.sample",
|
|
190
162
|
"test/rails_app/config/environment.rb",
|
|
191
163
|
"test/rails_app/config/environments/development.rb",
|
|
192
164
|
"test/rails_app/config/environments/production.rb",
|
|
@@ -208,8 +180,32 @@ Gem::Specification.new do |s|
|
|
|
208
180
|
"test/rails_app/db/migrate/20110213213050_create_netzke_component_states.rb",
|
|
209
181
|
"test/rails_app/db/schema.rb",
|
|
210
182
|
"test/rails_app/db/seeds.rb",
|
|
183
|
+
"test/rails_app/features/accordion_panel.feature",
|
|
184
|
+
"test/rails_app/features/components_in_view.feature",
|
|
185
|
+
"test/rails_app/features/form_panel.feature",
|
|
186
|
+
"test/rails_app/features/grid_panel.feature",
|
|
187
|
+
"test/rails_app/features/i18n.feature",
|
|
188
|
+
"test/rails_app/features/nested_attributes.feature",
|
|
189
|
+
"test/rails_app/features/paging_form_panel.feature",
|
|
190
|
+
"test/rails_app/features/search_in_grid.feature",
|
|
191
|
+
"test/rails_app/features/simple_app.feature",
|
|
192
|
+
"test/rails_app/features/simple_panel.feature",
|
|
193
|
+
"test/rails_app/features/step_definitions/accordion_steps.rb",
|
|
194
|
+
"test/rails_app/features/step_definitions/form_panel_steps.rb",
|
|
195
|
+
"test/rails_app/features/step_definitions/generic_steps.rb",
|
|
196
|
+
"test/rails_app/features/step_definitions/grid_panel_steps.rb",
|
|
197
|
+
"test/rails_app/features/step_definitions/pickle_steps.rb",
|
|
198
|
+
"test/rails_app/features/step_definitions/web_steps.rb",
|
|
199
|
+
"test/rails_app/features/support/env.rb",
|
|
211
200
|
"test/rails_app/features/support/paths.rb",
|
|
201
|
+
"test/rails_app/features/support/pickle.rb",
|
|
202
|
+
"test/rails_app/features/support/selectors.rb",
|
|
203
|
+
"test/rails_app/features/tab_panel.feature",
|
|
204
|
+
"test/rails_app/features/validations_in_grid.feature",
|
|
205
|
+
"test/rails_app/features/virtual_attributes.feature",
|
|
206
|
+
"test/rails_app/features/window.feature",
|
|
212
207
|
"test/rails_app/lib/tasks/.gitkeep",
|
|
208
|
+
"test/rails_app/lib/tasks/cucumber.rake",
|
|
213
209
|
"test/rails_app/public/404.html",
|
|
214
210
|
"test/rails_app/public/422.html",
|
|
215
211
|
"test/rails_app/public/500.html",
|
|
@@ -225,15 +221,14 @@ Gem::Specification.new do |s|
|
|
|
225
221
|
"test/rails_app/public/netzke/basepack/ts-checkbox.gif",
|
|
226
222
|
"test/rails_app/public/robots.txt",
|
|
227
223
|
"test/rails_app/public/stylesheets/.gitkeep",
|
|
224
|
+
"test/rails_app/script/cucumber",
|
|
228
225
|
"test/rails_app/script/rails",
|
|
229
|
-
"test/rails_app/spec/
|
|
230
|
-
"test/rails_app/spec/
|
|
231
|
-
"test/rails_app/spec/
|
|
232
|
-
"test/rails_app/spec/
|
|
233
|
-
"test/rails_app/spec/
|
|
234
|
-
"test/rails_app/spec/
|
|
235
|
-
"test/rails_app/spec/models/user_spec.rb",
|
|
236
|
-
"test/rails_app/spec/views/embedded_components/index.html.erb_spec.rb",
|
|
226
|
+
"test/rails_app/spec/active_record/attributes_spec.rb",
|
|
227
|
+
"test/rails_app/spec/active_record/relation_extensions_spec.rb",
|
|
228
|
+
"test/rails_app/spec/components/form_panel_spec.rb",
|
|
229
|
+
"test/rails_app/spec/components/grid_panel_spec.rb",
|
|
230
|
+
"test/rails_app/spec/factories.rb",
|
|
231
|
+
"test/rails_app/spec/spec_helper.rb",
|
|
237
232
|
"test/rails_app/test/performance/browsing_test.rb",
|
|
238
233
|
"test/rails_app/test/test_helper.rb",
|
|
239
234
|
"test/rails_app/tmp/restart.txt",
|
|
@@ -265,121 +260,25 @@ Gem::Specification.new do |s|
|
|
|
265
260
|
|
|
266
261
|
}
|
|
267
262
|
s.require_paths = ["lib"]
|
|
268
|
-
s.rubygems_version = %q{1.
|
|
263
|
+
s.rubygems_version = %q{1.6.2}
|
|
269
264
|
s.summary = %q{Pre-built Rails + ExtJS components for your RIA}
|
|
270
|
-
s.test_files = [
|
|
271
|
-
"spec/active_record/attributes_spec.rb",
|
|
272
|
-
"spec/active_record/relation_extensions_spec.rb",
|
|
273
|
-
"spec/components/form_panel_spec.rb",
|
|
274
|
-
"spec/components/grid_panel_spec.rb",
|
|
275
|
-
"spec/factories.rb",
|
|
276
|
-
"spec/spec_helper.rb",
|
|
277
|
-
"test/console_with_fixtures.rb",
|
|
278
|
-
"test/rails_app/app/components/author_grid.rb",
|
|
279
|
-
"test/rails_app/app/components/book_form.rb",
|
|
280
|
-
"test/rails_app/app/components/book_form_with_custom_fields.rb",
|
|
281
|
-
"test/rails_app/app/components/book_form_with_nested_attributes.rb",
|
|
282
|
-
"test/rails_app/app/components/book_grid.rb",
|
|
283
|
-
"test/rails_app/app/components/book_grid_loader.rb",
|
|
284
|
-
"test/rails_app/app/components/book_grid_with_custom_columns.rb",
|
|
285
|
-
"test/rails_app/app/components/book_grid_with_default_values.rb",
|
|
286
|
-
"test/rails_app/app/components/book_grid_with_nested_attributes.rb",
|
|
287
|
-
"test/rails_app/app/components/book_grid_with_virtual_attributes.rb",
|
|
288
|
-
"test/rails_app/app/components/book_paging_form_panel.rb",
|
|
289
|
-
"test/rails_app/app/components/book_presentation.rb",
|
|
290
|
-
"test/rails_app/app/components/book_query_builder.rb",
|
|
291
|
-
"test/rails_app/app/components/book_search_panel.rb",
|
|
292
|
-
"test/rails_app/app/components/books_bound_to_author.rb",
|
|
293
|
-
"test/rails_app/app/components/double_book_grid.rb",
|
|
294
|
-
"test/rails_app/app/components/form_without_model.rb",
|
|
295
|
-
"test/rails_app/app/components/generic_user_form.rb",
|
|
296
|
-
"test/rails_app/app/components/lockable_book_form.rb",
|
|
297
|
-
"test/rails_app/app/components/lockable_user_form.rb",
|
|
298
|
-
"test/rails_app/app/components/paging_form_with_search.rb",
|
|
299
|
-
"test/rails_app/app/components/simple_accordion.rb",
|
|
300
|
-
"test/rails_app/app/components/simple_panel.rb",
|
|
301
|
-
"test/rails_app/app/components/simple_tab_panel.rb",
|
|
302
|
-
"test/rails_app/app/components/simple_window.rb",
|
|
303
|
-
"test/rails_app/app/components/simple_wrapper.rb",
|
|
304
|
-
"test/rails_app/app/components/some_accordion_panel.rb",
|
|
305
|
-
"test/rails_app/app/components/some_auth_app.rb",
|
|
306
|
-
"test/rails_app/app/components/some_border_layout.rb",
|
|
307
|
-
"test/rails_app/app/components/some_simple_app.rb",
|
|
308
|
-
"test/rails_app/app/components/some_tab_panel.rb",
|
|
309
|
-
"test/rails_app/app/components/user_form.rb",
|
|
310
|
-
"test/rails_app/app/components/user_form_with_default_fields.rb",
|
|
311
|
-
"test/rails_app/app/components/user_grid.rb",
|
|
312
|
-
"test/rails_app/app/components/user_grid_with_customized_form_fields.rb",
|
|
313
|
-
"test/rails_app/app/components/window_component_loader.rb",
|
|
314
|
-
"test/rails_app/app/controllers/application_controller.rb",
|
|
315
|
-
"test/rails_app/app/controllers/components_controller.rb",
|
|
316
|
-
"test/rails_app/app/controllers/welcome_controller.rb",
|
|
317
|
-
"test/rails_app/app/helpers/application_helper.rb",
|
|
318
|
-
"test/rails_app/app/helpers/embedded_components_helper.rb",
|
|
319
|
-
"test/rails_app/app/models/address.rb",
|
|
320
|
-
"test/rails_app/app/models/author.rb",
|
|
321
|
-
"test/rails_app/app/models/book.rb",
|
|
322
|
-
"test/rails_app/app/models/role.rb",
|
|
323
|
-
"test/rails_app/app/models/user.rb",
|
|
324
|
-
"test/rails_app/app/presenters/forms/generic_user.rb",
|
|
325
|
-
"test/rails_app/config/application.rb",
|
|
326
|
-
"test/rails_app/config/boot.rb",
|
|
327
|
-
"test/rails_app/config/environment.rb",
|
|
328
|
-
"test/rails_app/config/environments/development.rb",
|
|
329
|
-
"test/rails_app/config/environments/production.rb",
|
|
330
|
-
"test/rails_app/config/environments/test.rb",
|
|
331
|
-
"test/rails_app/config/initializers/backtrace_silencers.rb",
|
|
332
|
-
"test/rails_app/config/initializers/inflections.rb",
|
|
333
|
-
"test/rails_app/config/initializers/mime_types.rb",
|
|
334
|
-
"test/rails_app/config/initializers/netzke.rb",
|
|
335
|
-
"test/rails_app/config/initializers/secret_token.rb",
|
|
336
|
-
"test/rails_app/config/initializers/session_store.rb",
|
|
337
|
-
"test/rails_app/config/routes.rb",
|
|
338
|
-
"test/rails_app/db/migrate/20100914104207_create_users.rb",
|
|
339
|
-
"test/rails_app/db/migrate/20100914104236_create_roles.rb",
|
|
340
|
-
"test/rails_app/db/migrate/20101026185816_create_authors.rb",
|
|
341
|
-
"test/rails_app/db/migrate/20101026190021_create_books.rb",
|
|
342
|
-
"test/rails_app/db/migrate/20110101143818_create_addresses.rb",
|
|
343
|
-
"test/rails_app/db/migrate/20110213213050_create_netzke_component_states.rb",
|
|
344
|
-
"test/rails_app/db/schema.rb",
|
|
345
|
-
"test/rails_app/db/seeds.rb",
|
|
346
|
-
"test/rails_app/features/support/paths.rb",
|
|
347
|
-
"test/rails_app/spec/controllers/embedded_components_controller_spec.rb",
|
|
348
|
-
"test/rails_app/spec/helpers/embedded_components_helper_spec.rb",
|
|
349
|
-
"test/rails_app/spec/models/address_spec.rb",
|
|
350
|
-
"test/rails_app/spec/models/author_spec.rb",
|
|
351
|
-
"test/rails_app/spec/models/book_spec.rb",
|
|
352
|
-
"test/rails_app/spec/models/role_spec.rb",
|
|
353
|
-
"test/rails_app/spec/models/user_spec.rb",
|
|
354
|
-
"test/rails_app/spec/views/embedded_components/index.html.erb_spec.rb",
|
|
355
|
-
"test/rails_app/test/performance/browsing_test.rb",
|
|
356
|
-
"test/rails_app/test/test_helper.rb",
|
|
357
|
-
"test/schema.rb",
|
|
358
|
-
"test/test_helper.rb",
|
|
359
|
-
"test/unit/accordion_panel_test.rb",
|
|
360
|
-
"test/unit/active_record_basepack_test.rb",
|
|
361
|
-
"test/unit/fields_configuration_test.rb",
|
|
362
|
-
"test/unit/grid_panel_test.rb",
|
|
363
|
-
"test/unit/netzke_basepack_test.rb",
|
|
364
|
-
"test/unit/tab_panel_test.rb"
|
|
365
|
-
]
|
|
366
265
|
|
|
367
266
|
if s.respond_to? :specification_version then
|
|
368
267
|
s.specification_version = 3
|
|
369
268
|
|
|
370
269
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
371
|
-
s.add_runtime_dependency(%q<netzke-core>, ["~> 0.6.
|
|
270
|
+
s.add_runtime_dependency(%q<netzke-core>, ["~> 0.6.7"])
|
|
372
271
|
s.add_runtime_dependency(%q<meta_where>, [">= 0.9.3"])
|
|
373
272
|
s.add_runtime_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
|
374
273
|
s.add_runtime_dependency(%q<acts_as_list>, [">= 0"])
|
|
375
274
|
else
|
|
376
|
-
s.add_dependency(%q<netzke-core>, ["~> 0.6.
|
|
275
|
+
s.add_dependency(%q<netzke-core>, ["~> 0.6.7"])
|
|
377
276
|
s.add_dependency(%q<meta_where>, [">= 0.9.3"])
|
|
378
277
|
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
|
379
278
|
s.add_dependency(%q<acts_as_list>, [">= 0"])
|
|
380
279
|
end
|
|
381
280
|
else
|
|
382
|
-
s.add_dependency(%q<netzke-core>, ["~> 0.6.
|
|
281
|
+
s.add_dependency(%q<netzke-core>, ["~> 0.6.7"])
|
|
383
282
|
s.add_dependency(%q<meta_where>, [">= 0.9.3"])
|
|
384
283
|
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
|
385
284
|
s.add_dependency(%q<acts_as_list>, [">= 0"])
|