widget_list 1.3.4 → 1.3.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/.gitignore +35 -35
- data/Gemfile +3 -3
- data/LICENSE.txt +21 -21
- data/README.md +736 -728
- data/Rakefile +1 -1
- data/app/views/widget_list/_condition_fields.html.erb +0 -0
- data/app/views/widget_list/_ransack_fields.html.erb +0 -0
- data/app/views/widget_list/_ransack_widget_list_advanced_search.html.erb +0 -0
- data/app/views/widget_list/administration/_button_row.html.erb +13 -13
- data/app/views/widget_list/administration/_checkbox_row.html.erb +18 -18
- data/app/views/widget_list/administration/_field_row.html.erb +11 -11
- data/app/views/widget_list/administration/_output.html.erb +1100 -1100
- data/app/views/widget_list/administration/_output_save.html.erb +1 -1
- data/app/views/widget_list/list_partials/_col.html.erb +0 -0
- data/app/views/widget_list/list_partials/_list_description.html.erb +2 -2
- data/app/views/widget_list/list_partials/_no_sort_column.html.erb +0 -0
- data/app/views/widget_list/list_partials/_outer_shell.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_jump_active.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_jump_unactive.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_next_active.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_next_disabled.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_previous_active.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_previous_disabled.html.erb +0 -0
- data/app/views/widget_list/list_partials/_pagination_wrapper.html.erb +0 -0
- data/app/views/widget_list/list_partials/_row.html.erb +0 -0
- data/app/views/widget_list/list_partials/_sequence.html.erb +0 -0
- data/app/views/widget_list/list_partials/_sort_column.html.erb +0 -0
- data/checkin_gem.sh +0 -0
- data/lib/extensions/action_controller_base.rb +33 -33
- data/lib/widget_list.rb +4685 -4389
- data/lib/widget_list/engine.rb +8 -8
- data/lib/widget_list/hash.rb +113 -113
- data/lib/widget_list/md5.rb +18 -18
- data/lib/widget_list/railtie.rb +42 -42
- data/lib/widget_list/sequel.rb +287 -218
- data/lib/widget_list/string.rb +41 -41
- data/lib/widget_list/tpl.rb +185 -185
- data/lib/widget_list/utils.rb +92 -92
- data/lib/widget_list/version.rb +3 -3
- data/lib/widget_list/widgets.rb +756 -756
- data/publish_gem.sh +37 -37
- data/vendor/assets/images/gobblecons/README.rtf +127 -127
- data/vendor/assets/javascripts/widget_list.js +795 -795
- data/vendor/assets/stylesheets/widget_list.css +813 -813
- data/vendor/assets/stylesheets/widgets.css +116 -116
- data/widget_list.gemspec +38 -38
- metadata +63 -54
@@ -1,117 +1,117 @@
|
|
1
|
-
.inputLong, .inputLarge, .inputSmall, .inputMeniumTiny, .inputTiny
|
2
|
-
{
|
3
|
-
border: 0px;
|
4
|
-
display: inline-block;
|
5
|
-
padding:7px;
|
6
|
-
margin-right:0px;
|
7
|
-
padding-right:8px;
|
8
|
-
vertical-align:top;
|
9
|
-
height:20px;
|
10
|
-
}
|
11
|
-
|
12
|
-
select.inputLong, select.inputLarge, select.inputSmall
|
13
|
-
{
|
14
|
-
height:33px;
|
15
|
-
padding-top:7px;
|
16
|
-
}
|
17
|
-
|
18
|
-
.inputLong
|
19
|
-
{
|
20
|
-
background: url("../assets/images/long-text.jpg") no-repeat scroll 0px 2px transparent;
|
21
|
-
width: 301px;
|
22
|
-
}
|
23
|
-
|
24
|
-
.inputLarge
|
25
|
-
{
|
26
|
-
background: url("../assets/images/text-field.gif") no-repeat scroll 0px 2px transparent;
|
27
|
-
}
|
28
|
-
|
29
|
-
.inputSmall
|
30
|
-
{
|
31
|
-
background: url("../assets/images/text-field-small.gif") no-repeat scroll 0px 2px transparent;
|
32
|
-
}
|
33
|
-
|
34
|
-
.inputMeniumTiny
|
35
|
-
{
|
36
|
-
background: url("../assets/images/text-field-medium-tiny.gif") no-repeat scroll 0px 2px transparent;
|
37
|
-
}
|
38
|
-
|
39
|
-
.inputTiny
|
40
|
-
{
|
41
|
-
background: url("../assets/images/text-field-tiny.gif") no-repeat scroll 0px 2px transparent;
|
42
|
-
}
|
43
|
-
|
44
|
-
.inputLarge
|
45
|
-
{
|
46
|
-
width: 183px;
|
47
|
-
}
|
48
|
-
|
49
|
-
select.inputLarge
|
50
|
-
{
|
51
|
-
width: 197px;
|
52
|
-
}
|
53
|
-
|
54
|
-
.inputSmall
|
55
|
-
{
|
56
|
-
width: 130px;
|
57
|
-
}
|
58
|
-
|
59
|
-
.inputMeniumTiny
|
60
|
-
{
|
61
|
-
width: 72px;
|
62
|
-
}
|
63
|
-
|
64
|
-
.inputTiny
|
65
|
-
{
|
66
|
-
width: 58px;
|
67
|
-
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
/**
|
72
|
-
* Select box
|
73
|
-
*/
|
74
|
-
div.select-outer
|
75
|
-
{
|
76
|
-
position:relative;
|
77
|
-
background: transparent url('../assets/images/input_text_right.png') no-repeat scroll top right;
|
78
|
-
display: inline-block;
|
79
|
-
height: 27px;
|
80
|
-
line-height: 27px;
|
81
|
-
padding-right: 11px;
|
82
|
-
text-decoration: none;
|
83
|
-
}
|
84
|
-
|
85
|
-
div.select-outer .select-inner {position:relative;background: transparent url('../assets/images/input_text_left.png') no-repeat scroll top left;border: none;height: 27px;line-height: 27px;padding-left: 6px;width: auto;padding-right: 7px; margin-right:-6px}
|
86
|
-
|
87
|
-
div.select-outer div.select-inner select {padding:0px !important; margin:5px 0px 0px 0px !important; border:0px solid red !important;background:transparent !important; width:100% !important}
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Multiple Select box
|
91
|
-
*/
|
92
|
-
div.select-outer-multiple
|
93
|
-
{
|
94
|
-
position:relative;
|
95
|
-
background: transparent url('../assets/images/select-multiple-right.png') no-repeat scroll top right;
|
96
|
-
display: inline-block;
|
97
|
-
height: 140px;
|
98
|
-
padding-right: 13px;
|
99
|
-
text-decoration: none;
|
100
|
-
}
|
101
|
-
|
102
|
-
|
103
|
-
.fake-select
|
104
|
-
{
|
105
|
-
display: inline-block;
|
106
|
-
margin-left: 10px;
|
107
|
-
}
|
108
|
-
|
109
|
-
.fake-select .label
|
110
|
-
{
|
111
|
-
display: inline-block;
|
112
|
-
font-weight: bold;
|
113
|
-
}
|
114
|
-
|
115
|
-
div.select-outer-multiple .select-inner-multiple {position:relative;background: transparent url('../assets/images/select-multiple-left.png') no-repeat scroll top left;border: none;height: 138px;padding-left: 6px;width: auto;padding-right: 7px; margin-right:-10px}
|
116
|
-
|
1
|
+
.inputLong, .inputLarge, .inputSmall, .inputMeniumTiny, .inputTiny
|
2
|
+
{
|
3
|
+
border: 0px;
|
4
|
+
display: inline-block;
|
5
|
+
padding:7px;
|
6
|
+
margin-right:0px;
|
7
|
+
padding-right:8px;
|
8
|
+
vertical-align:top;
|
9
|
+
height:20px;
|
10
|
+
}
|
11
|
+
|
12
|
+
select.inputLong, select.inputLarge, select.inputSmall
|
13
|
+
{
|
14
|
+
height:33px;
|
15
|
+
padding-top:7px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.inputLong
|
19
|
+
{
|
20
|
+
background: url("../assets/images/long-text.jpg") no-repeat scroll 0px 2px transparent;
|
21
|
+
width: 301px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.inputLarge
|
25
|
+
{
|
26
|
+
background: url("../assets/images/text-field.gif") no-repeat scroll 0px 2px transparent;
|
27
|
+
}
|
28
|
+
|
29
|
+
.inputSmall
|
30
|
+
{
|
31
|
+
background: url("../assets/images/text-field-small.gif") no-repeat scroll 0px 2px transparent;
|
32
|
+
}
|
33
|
+
|
34
|
+
.inputMeniumTiny
|
35
|
+
{
|
36
|
+
background: url("../assets/images/text-field-medium-tiny.gif") no-repeat scroll 0px 2px transparent;
|
37
|
+
}
|
38
|
+
|
39
|
+
.inputTiny
|
40
|
+
{
|
41
|
+
background: url("../assets/images/text-field-tiny.gif") no-repeat scroll 0px 2px transparent;
|
42
|
+
}
|
43
|
+
|
44
|
+
.inputLarge
|
45
|
+
{
|
46
|
+
width: 183px;
|
47
|
+
}
|
48
|
+
|
49
|
+
select.inputLarge
|
50
|
+
{
|
51
|
+
width: 197px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.inputSmall
|
55
|
+
{
|
56
|
+
width: 130px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.inputMeniumTiny
|
60
|
+
{
|
61
|
+
width: 72px;
|
62
|
+
}
|
63
|
+
|
64
|
+
.inputTiny
|
65
|
+
{
|
66
|
+
width: 58px;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Select box
|
73
|
+
*/
|
74
|
+
div.select-outer
|
75
|
+
{
|
76
|
+
position:relative;
|
77
|
+
background: transparent url('../assets/images/input_text_right.png') no-repeat scroll top right;
|
78
|
+
display: inline-block;
|
79
|
+
height: 27px;
|
80
|
+
line-height: 27px;
|
81
|
+
padding-right: 11px;
|
82
|
+
text-decoration: none;
|
83
|
+
}
|
84
|
+
|
85
|
+
div.select-outer .select-inner {position:relative;background: transparent url('../assets/images/input_text_left.png') no-repeat scroll top left;border: none;height: 27px;line-height: 27px;padding-left: 6px;width: auto;padding-right: 7px; margin-right:-6px}
|
86
|
+
|
87
|
+
div.select-outer div.select-inner select {padding:0px !important; margin:5px 0px 0px 0px !important; border:0px solid red !important;background:transparent !important; width:100% !important}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Multiple Select box
|
91
|
+
*/
|
92
|
+
div.select-outer-multiple
|
93
|
+
{
|
94
|
+
position:relative;
|
95
|
+
background: transparent url('../assets/images/select-multiple-right.png') no-repeat scroll top right;
|
96
|
+
display: inline-block;
|
97
|
+
height: 140px;
|
98
|
+
padding-right: 13px;
|
99
|
+
text-decoration: none;
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
.fake-select
|
104
|
+
{
|
105
|
+
display: inline-block;
|
106
|
+
margin-left: 10px;
|
107
|
+
}
|
108
|
+
|
109
|
+
.fake-select .label
|
110
|
+
{
|
111
|
+
display: inline-block;
|
112
|
+
font-weight: bold;
|
113
|
+
}
|
114
|
+
|
115
|
+
div.select-outer-multiple .select-inner-multiple {position:relative;background: transparent url('../assets/images/select-multiple-left.png') no-repeat scroll top left;border: none;height: 138px;padding-left: 6px;width: auto;padding-right: 7px; margin-right:-10px}
|
116
|
+
|
117
117
|
div.select-outer-multiple div.select-inner-multiple select {padding:7px 0px !important;margin:0px !important;border:0px solid red !important;background:transparent !important; position:relative; top:4px; height:126px; width:100% !important}
|
data/widget_list.gemspec
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'widget_list/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
|
8
|
-
gem.name = "widget_list"
|
9
|
-
|
10
|
-
gem.version = WidgetList::VERSION
|
11
|
-
|
12
|
-
gem.authors = ["David Renne"]
|
13
|
-
|
14
|
-
gem.email = ["message_me_on_github@dave.com"]
|
15
|
-
|
16
|
-
gem.description = %q{An Advanced and flexible ajax data grid. Supports several databases where data is pulled from either using Sequel ORM (optional even though is a dependency), Active Record Models or Raw SQL.}
|
17
|
-
|
18
|
-
gem.summary = %q{In rails you have will_paginate and other gems like it using the ActiveRecord approach, but widget_list adds some awesome treats to standard boring pagers}
|
19
|
-
|
20
|
-
gem.homepage = "https://github.com/davidrenne/widget_list"
|
21
|
-
|
22
|
-
#
|
23
|
-
# SEQUEL IS NOW OPTIONAL!! I am sure most people will be using ActiveRecord ORM
|
24
|
-
# I am including it as a dependency just because it is easier to pull it down and have it available
|
25
|
-
#
|
26
|
-
gem.add_dependency('sequel', '3.42.0')
|
27
|
-
|
28
|
-
gem.add_dependency('ransack', '0.7.2')
|
29
|
-
|
30
|
-
gem.files = `git ls-files`.split($/)
|
31
|
-
|
32
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
33
|
-
|
34
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
35
|
-
|
36
|
-
gem.require_paths = ["lib"]
|
37
|
-
|
38
|
-
end
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'widget_list/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
|
8
|
+
gem.name = "widget_list"
|
9
|
+
|
10
|
+
gem.version = WidgetList::VERSION
|
11
|
+
|
12
|
+
gem.authors = ["David Renne"]
|
13
|
+
|
14
|
+
gem.email = ["message_me_on_github@dave.com"]
|
15
|
+
|
16
|
+
gem.description = %q{An Advanced and flexible ajax data grid. Supports several databases where data is pulled from either using Sequel ORM (optional even though is a dependency), Active Record Models or Raw SQL.}
|
17
|
+
|
18
|
+
gem.summary = %q{In rails you have will_paginate and other gems like it using the ActiveRecord approach, but widget_list adds some awesome treats to standard boring pagers}
|
19
|
+
|
20
|
+
gem.homepage = "https://github.com/davidrenne/widget_list"
|
21
|
+
|
22
|
+
#
|
23
|
+
# SEQUEL IS NOW OPTIONAL!! I am sure most people will be using ActiveRecord ORM
|
24
|
+
# I am including it as a dependency just because it is easier to pull it down and have it available
|
25
|
+
#
|
26
|
+
gem.add_dependency('sequel', '3.42.0')
|
27
|
+
|
28
|
+
gem.add_dependency('ransack', '0.7.2')
|
29
|
+
|
30
|
+
gem.files = `git ls-files`.split($/)
|
31
|
+
|
32
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
33
|
+
|
34
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
35
|
+
|
36
|
+
gem.require_paths = ["lib"]
|
37
|
+
|
38
|
+
end
|
metadata
CHANGED
@@ -1,57 +1,60 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: widget_list
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 3
|
8
|
+
- 5
|
9
|
+
version: 1.3.5
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- David Renne
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2013-09-28 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: sequel
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - '='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.42.0
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 3
|
29
|
+
- 42
|
30
|
+
- 0
|
29
31
|
version: 3.42.0
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: ransack
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - '='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.7.2
|
38
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: ransack
|
39
36
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 7
|
44
|
+
- 2
|
45
45
|
version: 0.7.2
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
email:
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
description: An Advanced and flexible ajax data grid. Supports several databases where data is pulled from either using Sequel ORM (optional even though is a dependency), Active Record Models or Raw SQL.
|
49
|
+
email:
|
50
50
|
- message_me_on_github@dave.com
|
51
51
|
executables: []
|
52
|
+
|
52
53
|
extensions: []
|
54
|
+
|
53
55
|
extra_rdoc_files: []
|
54
|
-
|
56
|
+
|
57
|
+
files:
|
55
58
|
- .gitignore
|
56
59
|
- .idea/.name
|
57
60
|
- .idea/encodings.xml
|
@@ -323,29 +326,35 @@ files:
|
|
323
326
|
- vendor/assets/stylesheets/widget_list.css
|
324
327
|
- vendor/assets/stylesheets/widgets.css
|
325
328
|
- widget_list.gemspec
|
329
|
+
has_rdoc: true
|
326
330
|
homepage: https://github.com/davidrenne/widget_list
|
327
331
|
licenses: []
|
332
|
+
|
328
333
|
post_install_message:
|
329
334
|
rdoc_options: []
|
330
|
-
|
335
|
+
|
336
|
+
require_paths:
|
331
337
|
- lib
|
332
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
requirements:
|
341
|
-
- -
|
342
|
-
- !ruby/object:Gem::Version
|
343
|
-
|
338
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
339
|
+
requirements:
|
340
|
+
- - ">="
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
segments:
|
343
|
+
- 0
|
344
|
+
version: "0"
|
345
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
346
|
+
requirements:
|
347
|
+
- - ">="
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
segments:
|
350
|
+
- 0
|
351
|
+
version: "0"
|
344
352
|
requirements: []
|
353
|
+
|
345
354
|
rubyforge_project:
|
346
|
-
rubygems_version: 1.
|
355
|
+
rubygems_version: 1.3.6
|
347
356
|
signing_key:
|
348
357
|
specification_version: 3
|
349
|
-
summary: In rails you have will_paginate and other gems like it using the ActiveRecord
|
350
|
-
approach, but widget_list adds some awesome treats to standard boring pagers
|
358
|
+
summary: In rails you have will_paginate and other gems like it using the ActiveRecord approach, but widget_list adds some awesome treats to standard boring pagers
|
351
359
|
test_files: []
|
360
|
+
|