active_admin_filters_visibility 1.2.0 → 1.3.0
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.
- checksums.yaml +4 -4
- data/README.md +42 -10
- data/lib/active_admin_filters_visibility/version.rb +1 -1
- metadata +12 -15
- data/Gemfile +0 -3
- data/Rakefile +0 -1
- data/active_admin_filters_visibility.gemspec +0 -20
- data/screen/example_aa_filters_ordering.gif +0 -0
- data/screen/example_aa_filters_visibility.gif +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66a4870b3e1fd0426035d2a1c677e79c83b41f2ee560793ad998c8df90921f3d
|
|
4
|
+
data.tar.gz: 805910dc3ffea54dd4b7d0eab7e720f42f34e02ba6ef990447e9b0e1b2a2ff60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3281446f02de7ec2895d08f7c65d1c9538bc9bf92f2bed1e2aaca42f040acdf95524c6ae92b89d3f4d3c9fb3ebb882b8fd7f3281745bbdee8ef6209bb28fcfe6
|
|
7
|
+
data.tar.gz: c136bc42a02fbdea449d44f8726ffa7cfe70110e793914f2d3e6d9b425c2c0da833e2d19d1a2a280c759e5fa8989b0eed887a65d716a5d22b0ef60ed3a4eef6f
|
data/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
[](https://badge.fury.io/rb/active_admin_filters_visibility)
|
|
2
|
+
[](https://badge.fury.io/js/@activeadmin-plugins%2Factive_admin_filters_visibility)
|
|
3
|
+

|
|
4
|
+
|
|
1
5
|
# ActiveAdminFiltersVisibility
|
|
2
6
|
|
|
3
7
|
ActiveAdmin plugin allows to hide any filter from Filters Sidebar.
|
|
4
8
|
Useful when page has many filters, but admin user needs only some of them.
|
|
5
|
-
Every filter saves its state using browser's LocalStorage.
|
|
9
|
+
Every filter saves its state using browser's LocalStorage.
|
|
6
10
|
|
|
7
11
|

|
|
8
12
|
|
|
@@ -15,23 +19,51 @@ Also you can use drag&drop to change filters order
|
|
|
15
19
|
In Gemfile add
|
|
16
20
|
|
|
17
21
|
```ruby
|
|
18
|
-
gem 'active_admin_filters_visibility', git: 'https://github.com/activeadmin-plugins/active_admin_filters_visibility'
|
|
22
|
+
gem 'active_admin_filters_visibility', git: 'https://github.com/activeadmin-plugins/active_admin_filters_visibility'
|
|
19
23
|
```
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
##### Using assets via Sprockets
|
|
26
|
+
in the
|
|
27
|
+
```
|
|
23
28
|
app/assets/javascript/active_admin.coffee
|
|
24
29
|
```
|
|
25
30
|
|
|
26
|
-
and
|
|
31
|
+
and
|
|
27
32
|
|
|
28
33
|
```coffeescript
|
|
29
34
|
#= require active_admin_filters_visibility
|
|
30
35
|
```
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
##### Using assets via Webpacker (or any other assets bundler) as a NPM module (Yarn package)
|
|
38
|
+
|
|
39
|
+
Execute:
|
|
40
|
+
|
|
41
|
+
$ npm i @activeadmin-plugins/active_admin_filters_visibility
|
|
42
|
+
|
|
43
|
+
Or
|
|
33
44
|
|
|
34
|
-
|
|
45
|
+
$ yarn add @activeadmin-plugins/active_admin_filters_visibility
|
|
46
|
+
|
|
47
|
+
Or add manually to `package.json`:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@activeadmin-plugins/active_admin_filters_visibility": "1.2.0"
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
and execute:
|
|
55
|
+
|
|
56
|
+
$ yarn
|
|
57
|
+
|
|
58
|
+
Add the following line into `app/assets/javascripts/active_admin.js`:
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import '@activeadmin-plugins/active_admin_filters_visibility';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
##### Initialization:
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
35
67
|
$(document).ready(function() {
|
|
36
68
|
$('#filters_sidebar_section').activeAdminFiltersVisibility();
|
|
37
69
|
});
|
|
@@ -43,7 +75,7 @@ and initialize it with:
|
|
|
43
75
|
$('.jquery-selector').activeAdminFiltersVisibility(options)
|
|
44
76
|
```
|
|
45
77
|
|
|
46
|
-
ActiveAdminFiltersVisibility is a standard jQuery Plugin, and accepts some "options" as a hash.
|
|
78
|
+
ActiveAdminFiltersVisibility is a standard jQuery Plugin, and accepts some "options" as a hash.
|
|
47
79
|
Default is:
|
|
48
80
|
|
|
49
81
|
```javascript
|
|
@@ -65,8 +97,8 @@ Default is:
|
|
|
65
97
|
You can change icon - this is a HTML text or symbol. You can pass empty string and customize it with your CSS.
|
|
66
98
|
Or you can set class("iconClass") for icon or inline styles("iconStyle").
|
|
67
99
|
|
|
68
|
-
This plugin has minimal CSS styling.
|
|
69
|
-
In case you want to use custom CSS, default styling can be ignored:
|
|
100
|
+
This plugin has minimal CSS styling.
|
|
101
|
+
In case you want to use custom CSS, default styling can be ignored:
|
|
70
102
|
set ```skipDefaultCss``` to ```true```
|
|
71
103
|
|
|
72
104
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_admin_filters_visibility
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gena M.
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activeadmin
|
|
@@ -16,14 +15,20 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '3.2'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 4.0.0.a
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
26
|
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
28
|
+
version: '3.2'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 4.0.0.a
|
|
27
32
|
description: extension for activeadmin gem to hide any filters from sidebar-filters
|
|
28
33
|
panel
|
|
29
34
|
email:
|
|
@@ -32,20 +37,14 @@ executables: []
|
|
|
32
37
|
extensions: []
|
|
33
38
|
extra_rdoc_files: []
|
|
34
39
|
files:
|
|
35
|
-
- Gemfile
|
|
36
40
|
- LICENSE
|
|
37
41
|
- README.md
|
|
38
|
-
- Rakefile
|
|
39
|
-
- active_admin_filters_visibility.gemspec
|
|
40
42
|
- app/assets/javascripts/active_admin_filters_visibility.js
|
|
41
43
|
- lib/active_admin_filters_visibility.rb
|
|
42
44
|
- lib/active_admin_filters_visibility/version.rb
|
|
43
|
-
- screen/example_aa_filters_ordering.gif
|
|
44
|
-
- screen/example_aa_filters_visibility.gif
|
|
45
45
|
homepage: https://github.com/workgena/active_admin_filters_visibility
|
|
46
46
|
licenses: []
|
|
47
47
|
metadata: {}
|
|
48
|
-
post_install_message:
|
|
49
48
|
rdoc_options: []
|
|
50
49
|
require_paths:
|
|
51
50
|
- lib
|
|
@@ -53,16 +52,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
53
52
|
requirements:
|
|
54
53
|
- - ">="
|
|
55
54
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
55
|
+
version: '3.3'
|
|
57
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - ">="
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
60
|
version: '0'
|
|
62
61
|
requirements: []
|
|
63
|
-
|
|
64
|
-
rubygems_version: 2.7.7
|
|
65
|
-
signing_key:
|
|
62
|
+
rubygems_version: 3.6.9
|
|
66
63
|
specification_version: 4
|
|
67
64
|
summary: active_admin_filters_visibility gem
|
|
68
65
|
test_files: []
|
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'bundler/gem_tasks'
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
$:.push File.expand_path('../lib', __FILE__)
|
|
3
|
-
require 'active_admin_filters_visibility/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |s|
|
|
6
|
-
s.name = 'active_admin_filters_visibility'
|
|
7
|
-
s.version = ActiveAdminFiltersVisibility::VERSION
|
|
8
|
-
s.authors = ['Gena M.']
|
|
9
|
-
s.email = ['workgena@gmail.com']
|
|
10
|
-
s.homepage = 'https://github.com/workgena/active_admin_filters_visibility'
|
|
11
|
-
s.summary = %q{active_admin_filters_visibility gem}
|
|
12
|
-
s.description = %q{extension for activeadmin gem to hide any filters from sidebar-filters panel}
|
|
13
|
-
|
|
14
|
-
s.add_dependency 'activeadmin'
|
|
15
|
-
|
|
16
|
-
s.files = `git ls-files`.split("\n")
|
|
17
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
-
s.require_paths = ['lib']
|
|
20
|
-
end
|
|
Binary file
|
|
Binary file
|