netzke-basepack 0.12.3 → 0.12.4

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.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.12.4 - WIP
2
+ * Remove (broken) `load_inline_data` option
3
+
1
4
  # 0.12.3 - 2015-06-16
2
5
  * Fix bug preventing primary key column from being overridden in a specific case
3
6
  * Fix grid freeze when `prohibit_read` is set to true
data/Gemfile CHANGED
@@ -22,6 +22,6 @@ group :development, :test do
22
22
  gem 'web-console', '~> 2.0'
23
23
  # gem 'spring' # troubles...
24
24
  gem 'pry-rails'
25
- gem 'netzke-core', github: 'netzke/netzke-core'
26
- gem 'netzke-testing', github: 'netzke/netzke-testing'
25
+ gem 'netzke-core', github: 'netzke/netzke-core', branch: 'master'
26
+ gem 'netzke-testing', github: 'netzke/netzke-testing', branch: 'master'
27
27
  end
@@ -28,8 +28,8 @@ module Netzke
28
28
  class Form < Netzke::Base
29
29
  include self::Endpoints
30
30
  include self::Services
31
- include Fields
32
- include DataAccessor
31
+ include Netzke::Basepack::Fields
32
+ include Netzke::Basepack::DataAccessor
33
33
  include Netzke::Core::ConfigToDslDelegator
34
34
 
35
35
  js_configure do |c|
@@ -73,11 +73,6 @@ module Netzke
73
73
  #
74
74
  # (defaults to 30) number of rows per page (ignored when +enable_pagination+ is set to +false+)
75
75
  #
76
- # [load_inline_data]
77
- #
78
- # (defaults to false) grid is being loaded along with its initial data; use with precaution, preferred method is
79
- # auto-loading of data in a separate server request (see +data_store+)
80
- #
81
76
  # [data_store]
82
77
  #
83
78
  # (defaults to empty Hash) extra configuration for the JS class's internal store (see
@@ -342,8 +337,8 @@ module Netzke
342
337
  class Grid < Netzke::Base
343
338
  include self::Endpoints
344
339
  include self::Services
345
- include Columns
346
- include DataAccessor
340
+ include Netzke::Basepack::Columns
341
+ include Netzke::Basepack::DataAccessor
347
342
  include Netzke::Core::ConfigToDslDelegator
348
343
 
349
344
  class_attribute :column_filters_available
@@ -398,7 +393,6 @@ module Netzke
398
393
  c.context_menu = context_menu
399
394
  c.columns = {items: js_columns}
400
395
  c.columns_order = columns_order
401
- c.inline_data = read if c.load_inline_data
402
396
  c.pri = data_adapter.primary_key
403
397
  if c.default_filters
404
398
  populate_cols_with_filters(c)
@@ -41,9 +41,6 @@
41
41
  // data store
42
42
  this.store = this.netzkeBuildStore();
43
43
 
44
- // load inline data if available
45
- if (this.inlineData) this.store.loadRawData(this.inlineData);
46
-
47
44
  // Cell editing
48
45
  if (!this.prohibitUpdate && this.enableEditInline) {
49
46
  this.plugins.push(Ext.create('Ext.grid.plugin.CellEditing', {pluginId: 'celleditor'}));
@@ -154,7 +151,7 @@
154
151
  remoteSort: true,
155
152
  remoteFilter: true,
156
153
  pageSize: this.rowsPerPage,
157
- autoLoad: !this.loadInlineData
154
+ autoLoad: true
158
155
  }, this.dataStore));
159
156
 
160
157
  delete this.dataStore;
@@ -105,9 +105,8 @@ module Netzke
105
105
  c.title = c.title || self.class.js_config.properties[:title] || data_class.name.pluralize
106
106
  c.bbar = bbar
107
107
  # c.context_menu = context_menu
108
- c.columns = js_columns
108
+ c.columns = {items: js_columns}
109
109
  c.columns_order = columns_order
110
- c.inline_data = read if c.load_inline_data
111
110
  c.pri = data_adapter.primary_key
112
111
 
113
112
  if c.default_filters
@@ -1,5 +1,5 @@
1
1
  module Netzke
2
2
  module Basepack
3
- VERSION = "0.12.3"
3
+ VERSION = "0.12.4"
4
4
  end
5
5
  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.12.3
4
+ version: 0.12.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-16 00:00:00.000000000 Z
12
+ date: 2015-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: netzke-core