blacklight-hierarchy 6.2.0 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -3
- data/app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js +7 -0
- data/app/assets/javascripts/blacklight/hierarchy/hierarchy.js +1 -1
- data/lib/blacklight/hierarchy/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fca18535296b68bd479804bc6b7ea6f8dc01672308b66cbfa40ac5ef976c18c
|
4
|
+
data.tar.gz: fc1c3126b371db5ff9a06af2a6595ea28b00c09f94904adf7ed012a194c60814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad00c8daa2fa49e1e199bb0a4d22ffd2edacf2fdced57944c56dbc975681b89e3c5e9106a8d9e8099ce51271a4209862b3cab42ce637917f7bb51b6887036ce6
|
7
|
+
data.tar.gz: 14e0f3810210f1eff1ea70873a9ef96acc1f0a84832fceb680f9fc9ab5399e8fcbe85134afe9f531c73105deb45ffc12abadcb20171a84ecf87084af68bff203
|
data/.github/workflows/ruby.yml
CHANGED
@@ -20,14 +20,14 @@ jobs:
|
|
20
20
|
matrix:
|
21
21
|
ruby: ['3.0', '3.1', '3.2']
|
22
22
|
rails_version: ['7.0.8']
|
23
|
-
blacklight_version: ['']
|
23
|
+
blacklight_version: ['7.35.0']
|
24
24
|
include:
|
25
25
|
- ruby: '2.7'
|
26
26
|
rails_version: '6.1.7.6'
|
27
27
|
- ruby: '3.2'
|
28
28
|
rails_version: '7.0.8'
|
29
|
-
name: 'Blacklight 8
|
30
|
-
blacklight_version: '8.
|
29
|
+
name: 'Blacklight 8.1'
|
30
|
+
blacklight_version: '8.1.0'
|
31
31
|
env:
|
32
32
|
BLACKLIGHT_VERSION: ${{ matrix.blacklight_version }}
|
33
33
|
steps:
|
@@ -4,6 +4,13 @@ export default class extends Controller {
|
|
4
4
|
static targets = [ "list" ]
|
5
5
|
connect() {
|
6
6
|
this.element.classList.add("twiddle")
|
7
|
+
|
8
|
+
// If a child facet-value is selected, then expand the node
|
9
|
+
if (this.element.querySelector(':scope > span.selected')) {
|
10
|
+
this.element.classList.add('twiddle-open')
|
11
|
+
this.element.querySelectorAll(':scope > .collapse')
|
12
|
+
.forEach((collapsable) => collapsable.classList.add('show'))
|
13
|
+
}
|
7
14
|
}
|
8
15
|
|
9
16
|
toggle() {
|
@@ -19,7 +19,7 @@ Blacklight.onLoad(function(){
|
|
19
19
|
$(Blacklight.do_hierarchical_facet_expand_contract_behavior.list, this).each(function() {
|
20
20
|
if($('span.selected', this).length != 0){
|
21
21
|
li.addClass('twiddle-open');
|
22
|
-
li.children('.collapse').addClass('
|
22
|
+
li.children('.collapse').addClass('show');
|
23
23
|
}
|
24
24
|
});
|
25
25
|
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "blacklight-hierarchy",
|
3
|
-
"version": "6.1
|
3
|
+
"version": "6.2.1",
|
4
4
|
"description": "[![Build Status](https://github.com/sul-dlss/blacklight-hierarchy/workflows/CI/badge.svg)](https://github.com/sul-dlss/blacklight-hierarchy/actions?query=branch%3Amain)",
|
5
5
|
"main": "app/assets/javascripts/blacklight/hierarchy/hierarchy.js",
|
6
6
|
"files": [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-hierarchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.2.
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael B. Klein
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.4
|
203
|
+
rubygems_version: 3.5.4
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Hierarchical Facets for Blacklight
|